ASL  0.1.7
Advanced Simulation Library
Public Types | Public Member Functions | Public Attributes | List of all members
asl::Block Class Reference

#include <aslBlocks.h>

Collaboration diagram for asl::Block:
Collaboration graph
[legend]

Public Types

typedef AVec< int > DV
 Discrete Vector. More...
 
typedef AVec V
 Type of the position. More...
 

Public Member Functions

 Block ()
 the size is taken 1, the position is taken to be 0 More...
 
 Block (unsigned int nd)
 
 Block (const DV &s, double dx, const V &p)
 
 Block (const DV &s, double dx=1)
 
 Block (const Block &b)
 
const Blockoperator= (const Block &b)
 
int c2i (const Block::DV &c) const
 defines convertion rule of 1D/2D/3D index i into container one More...
 
void setSize (const DV &s)
 
const DVgetSize () const
 
const V getBPosition () const
 
acl::VectorOfElements initACLPositionDiscrete ()
 
acl::VectorOfElements initACLPosition ()
 
acl::VectorOfElements getACLPositionDiscrete ()
 
acl::VectorOfElements getACLPosition ()
 

Public Attributes

V position
 
double dx
 
DV c2iTransformVector
 

Detailed Description

Simple block with position

The Block describes the simulation grid and is defined by the position and by the size.

Examples
acousticWaves.cc, bus_wind.cc, compressor.cc, cubeGravity.cc, cubeIncompressibleGravity.cc, cubePoroelasticGravity.cc, flow.cc, flow2.cc, flow3.cc, flowKDPGrowth.cc, flowRotatingCylinders.cc, jumpingBox.cc, levelSetBasic.cc, levelSetFacetedGrowth.cc, levelSetNormalGrowth.cc, locomotive.cc, locomotive_laminar.cc, locomotive_stability.cc, multicomponent_flow.cc, multiphase_flow.cc, pitot_tube_ice.cc, poroelastic.cc, surfaceFlux.cc, testABDFormat.cc, testASLData.cc, testDistanceFunction.cc, testSMDiff.cc, testSMDiff3C.cc, testSMPhi.cc, and testSMPhiBV.cc.

Definition at line 56 of file aslBlocks.h.

Member Typedef Documentation

◆ DV

typedef AVec<int> asl::Block::DV

Discrete Vector.

Definition at line 59 of file aslBlocks.h.

◆ V

Type of the position.

Definition at line 63 of file aslBlocks.h.

Constructor & Destructor Documentation

◆ Block() [1/5]

asl::Block::Block ( )
inline

the size is taken 1, the position is taken to be 0

Definition at line 141 of file aslBlocks.h.

◆ Block() [2/5]

asl::Block::Block ( unsigned int  nd)
inlineexplicit

Definition at line 132 of file aslBlocks.h.

◆ Block() [3/5]

asl::Block::Block ( const DV s,
double  dx,
const V p 
)
inline

Definition at line 159 of file aslBlocks.h.

◆ Block() [4/5]

asl::Block::Block ( const DV s,
double  dx = 1 
)
inlineexplicit

Definition at line 150 of file aslBlocks.h.

◆ Block() [5/5]

asl::Block::Block ( const Block b)
inline

Definition at line 170 of file aslBlocks.h.

Member Function Documentation

◆ c2i()

int asl::Block::c2i ( const Block::DV c) const
inline

defines convertion rule of 1D/2D/3D index i into container one

Definition at line 189 of file aslBlocks.h.

◆ getACLPosition()

acl::VectorOfElements asl::Block::getACLPosition ( )

◆ getACLPositionDiscrete()

acl::VectorOfElements asl::Block::getACLPositionDiscrete ( )

◆ getBPosition()

const Block::V asl::Block::getBPosition ( ) const
inline

returns position of the point diagonal to (0) one returns Body Diagonal (or space diagonal) that starts at (0)

Examples
compressor.cc, locomotive.cc, and locomotive_laminar.cc.

Definition at line 214 of file aslBlocks.h.

◆ getSize()

const Block::DV & asl::Block::getSize ( ) const
inline
Examples
flow3.cc, flowKDPGrowth.cc, and locomotive_laminar.cc.

Definition at line 208 of file aslBlocks.h.

◆ initACLPosition()

acl::VectorOfElements asl::Block::initACLPosition ( )

◆ initACLPositionDiscrete()

acl::VectorOfElements asl::Block::initACLPositionDiscrete ( )

◆ operator=()

const Block & asl::Block::operator= ( const Block b)
inline

Definition at line 179 of file aslBlocks.h.

◆ setSize()

void asl::Block::setSize ( const DV s)
inline

Definition at line 199 of file aslBlocks.h.

Member Data Documentation

◆ c2iTransformVector

DV asl::Block::c2iTransformVector

Definition at line 67 of file aslBlocks.h.

◆ dx

double asl::Block::dx

◆ position

V asl::Block::position
Examples
compressor.cc, locomotive.cc, and locomotive_laminar.cc.

Definition at line 65 of file aslBlocks.h.


The documentation for this class was generated from the following file: