Maps a geometry to a set of cell primitives. More...
Public Types | |
enum | modelType { UNKNOWN = 0, HEX = 3, WEDGE = 4, PRISM = 5, PYR = 6, TET = 7, SPLITHEX = 8, TETWEDGE = 9 } |
Public Member Functions | |
cellModel (Istream &is) | |
autoPtr< cellModel > | clone () const |
const word & | name () const noexcept |
label | index () const noexcept |
label | nPoints () const noexcept |
label | nEdges () const noexcept |
label | nFaces () const noexcept |
const edgeList & | modelEdges () const noexcept |
const faceList & | modelFaces () const noexcept |
edgeList | edges (const labelUList &pointLabels) const |
faceList | faces (const labelUList &pointLabels) const |
Foam::edge | edge (const label modelEdgei, const labelUList &pointLabels) const |
Foam::face | face (const label modelFacei, const labelUList &pointLabels) const |
vector | centre (const labelList &pointLabels, const UList< point > &points) const |
scalar | mag (const labelList &pointLabels, const UList< point > &points) const |
InfoProxy< cellModel > | info () const |
bool | writeData (Ostream &os) const |
Static Public Member Functions | |
static const cellModel * | ptr (const modelType model) |
static const cellModel * | ptr (const word &modelName) |
static const cellModel * | ptr (const label modelIndex) |
static const cellModel & | ref (const modelType model) |
static const cellModel & | ref (const word &modelName) |
static const cellModel & | ref (const label modelIndex) |
static autoPtr< cellModel > | New (Istream &is) |
Static Public Attributes | |
static const Enum< modelType > | modelNames |
Friends | |
Ostream & | operator<< (Ostream &os, const cellModel &cm) |
Maps a geometry to a set of cell primitives.
This enables geometric cell data to be calculated without access to the primitive geometric level. This means mapping a 3D geometry to a set of pyramids which are each described by a cell face and the cell centre point.
Also includes a static collection of cell models (normally loaded from etc/cellModels), and a means of looking them up.
Definition at line 68 of file cellModel.H.
enum modelType |
Enumerator | |
---|---|
UNKNOWN | unknown |
HEX | hex |
WEDGE | wedge |
PRISM | prism |
PYR | pyr |
TET | tet |
SPLITHEX | splitHex |
TETWEDGE | tetWedge |
Definition at line 74 of file cellModel.H.
Definition at line 27 of file cellModelIO.C.
References dict, dictionaryEntry::dict(), entry::keyword(), and dictionary::null.
|
static |
Definition at line 113 of file cellModels.C.
Referenced by cellModeller::lookup(), cellMatcher::model(), STARCDMeshReader::readCells(), hexCell::shape(), tetCell::shape(), and shapeToCell::shapeToCell().
|
static |
Definition at line 119 of file cellModels.C.
References n, and Foam::name().
|
static |
Definition at line 139 of file cellModels.C.
|
static |
Definition at line 150 of file cellModels.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and p.
Referenced by voxelMeshSearch::makeMesh(), STARCDMeshReader::readBoundary(), STARCDMeshReader::readCells(), ABAQUSCore::readHelper::readSurfaceElements(), vtuSizing::reset(), vtuSizing::resetShapes(), and writer::writer().
|
static |
Definition at line 165 of file cellModels.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and p.
|
static |
Definition at line 180 of file cellModels.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and p.
Definition at line 156 of file cellModel.H.
References autoPtr::New().
Definition at line 162 of file cellModel.H.
References autoPtr::New().
|
inlinenoexcept |
Definition at line 24 of file cellModelI.H.
Referenced by Foam::operator<<().
|
inlinenoexcept |
Definition at line 30 of file cellModelI.H.
Referenced by Foam::operator<<(), STARCDMeshReader::readBoundary(), and writer::writer().
|
inlinenoexcept |
Definition at line 36 of file cellModelI.H.
Referenced by Foam::operator<<().
|
inlinenoexcept |
Definition at line 42 of file cellModelI.H.
Referenced by Foam::operator<<().
|
inlinenoexcept |
Definition at line 48 of file cellModelI.H.
Referenced by Foam::operator<<().
|
inlinenoexcept |
Definition at line 54 of file cellModelI.H.
Referenced by Foam::operator<<().
|
inlinenoexcept |
Definition at line 60 of file cellModelI.H.
Referenced by Foam::operator<<(), and ABAQUSCore::readHelper::readSurfaceElements().
|
inline |
Definition at line 67 of file cellModelI.H.
References forAll, and pointLabels().
|
inline |
Definition at line 95 of file cellModelI.H.
References forAll, and pointLabels().
|
inline |
Definition at line 84 of file cellModelI.H.
References pointLabels().
|
inline |
Definition at line 112 of file cellModelI.H.
References pointLabels().
Foam::vector centre | ( | const labelList & | pointLabels, |
const UList< point > & | points | ||
) | const |
Definition at line 28 of file cellModel.C.
References Foam::endl(), f(), forAll, pointLabels(), points, WarningInFunction, and Foam::Zero.
Definition at line 71 of file cellModel.C.
References Foam::endl(), f(), forAll, pointLabels(), points, WarningInFunction, and Foam::Zero.
Definition at line 228 of file cellModel.H.
Referenced by Foam::operator<<().
Definition at line 234 of file cellModel.H.
References os().
|
static |
Definition at line 88 of file cellModel.H.
Referenced by Foam::serializeHex().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.