asl::Block Class Reference
Numerics » Data Fileds

`#include <aslBlocks.h>`

Collaboration diagram for asl::Block:
[legend]

## Public Types

typedef AVec< int > | DV
| Discrete Vector. More...
typedef AVec | V
| Type of the position. More...
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 Block & | operator= (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 DV & | getSize () const
const V | getBPosition () const
acl::VectorOfElements | initACLPositionDiscrete ()
acl::VectorOfElements | initACLPosition ()
acl::VectorOfElements | getACLPositionDiscrete ()
acl::VectorOfElements | getACLPosition ()
| 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 Block & | operator= (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 DV & | getSize () 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 [1/2]

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

Discrete Vector.

Definition at line 59 of file aslBlocks.h.

## DV [2/2]

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

Discrete Vector.

Definition at line 59 of file aslBlocks.h.

## V [1/2]

typedef AVec asl::Block::V

Type of the position.

Definition at line 63 of file aslBlocks.h.

## V [2/2]

typedef AVec asl::Block::V

Type of the position.

Definition at line 63 of file aslBlocks.h.

## Constructor & Destructor Documentation

## Block() [1/10]

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/10]

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

inline explicit

Definition at line 132 of file aslBlocks.h.

## Block() [3/10]

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

inline

Definition at line 159 of file aslBlocks.h.

## Block() [4/10]

asl::Block::Block | ( | const DV & | s,
|  | double | dx = `1`
| ) |  |

inline explicit

Definition at line 150 of file aslBlocks.h.

## Block() [5/10]

asl::Block::Block | ( | const Block & | b | ) |

inline

Definition at line 170 of file aslBlocks.h.

## Block() [6/10]

asl::Block::Block | ( |  | ) |

inline

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

## Block() [7/10]

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

inline explicit

## Block() [8/10]

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

inline

## Block() [9/10]

asl::Block::Block | ( | const DV & | s,
|  | double | dx = `1`
| ) |  |

inline explicit

## Block() [10/10]

asl::Block::Block | ( | const Block & | b | ) |

inline

## Member Function Documentation

## c2i() [1/2]

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.

## c2i() [2/2]

int asl::Block::c2i | ( | const Block::DV & | c | ) | const

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

## getACLPosition() [1/2]

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

## getACLPosition() [2/2]

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

## getACLPositionDiscrete() [1/2]

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

## getACLPositionDiscrete() [2/2]

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

## getBPosition() [1/2]

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.

## getBPosition() [2/2]

const 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)

## getSize() [1/2]

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.

## getSize() [2/2]

const DV& asl::Block::getSize | ( |  | ) | const

inline

## initACLPosition() [1/2]

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

## initACLPosition() [2/2]

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

## initACLPositionDiscrete() [1/2]

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

## initACLPositionDiscrete() [2/2]

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

## operator=() [1/2]

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

inline

Definition at line 179 of file aslBlocks.h.

## operator=() [2/2]

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

inline

## setSize() [1/2]

void asl::Block::setSize | ( | const DV & | s | ) |

inline

Definition at line 199 of file aslBlocks.h.

## setSize() [2/2]

void asl::Block::setSize | ( | const DV & | s | ) |

inline

## Member Data Documentation

## c2iTransformVector

DV asl::Block::c2iTransformVector

Definition at line 67 of file aslBlocks.h.

## dx

double asl::Block::dx

Examples
  compressor.cc, flowKDPGrowth.cc, locomotive.cc, locomotive_laminar.cc, locomotive_stability.cc, poroelastic.cc, and testABDFormat.cc.

Definition at line 66 of file aslBlocks.h.

## 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:

- /build/asl-1Fw6fH/asl-0.1.7/debian/tmp/usr/include/ASL/data/aslBlocks.h