ASL 0.1.7
Advanced Simulation Library
Loading...
Searching...
No Matches
asl::Block Class Reference

#include <aslBlocks.h>

Public Types

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

Public Member Functions

 Block ()
 the size is taken 1, the position is taken to be 0
 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
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

Member Typedef Documentation

◆ DV

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

Discrete Vector.

Examples
acousticWaves.cc, multicomponent_flow.cc, multiphase_flow.cc, and pitot_tube_ice.cc.

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, locomotive_laminar.cc, and testABDFormat.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

◆ position

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

Definition at line 65 of file aslBlocks.h.


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