Maps a geometry to a set of cell primitives, which 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. More...
Public Member Functions  
cellModel (Istream &)  
Construct from Istream. More...  
autoPtr< cellModel >  clone () const 
Return clone. More...  
const word &  name () const 
Return model name. More...  
label  index () const 
Return index of model in the model list. More...  
label  nPoints () const 
Return number of points. More...  
label  nEdges () const 
Return number of edges. More...  
label  nFaces () const 
Return number of faces. More...  
edgeList  edges (const labelList &pointLabels) const 
Return list of edges. More...  
const faceList &  modelFaces () const 
Return a raw list of model faces. More...  
faceList  faces (const labelList &pointLabels) const 
Return list of faces. More...  
vector  centre (const labelList &pointLabels, const pointField &points) const 
Vector centroid. More...  
scalar  mag (const labelList &pointLabels, const pointField &points) const 
Cell volume. More...  
InfoProxy< cellModel >  info () const 
Return info proxy. More...  
bool  writeData (Ostream &os) const 
WriteData member function required by regIOobject. More...  
Static Public Member Functions  
static autoPtr< cellModel >  New (Istream &is) 
Return a new cellModel on freestore created from Istream. More...  
Friends  
bool  operator== (const cellModel &, const cellModel &) 
Equality operator: true => ptr to models are equal ! More...  
bool  operator!= (const cellModel &, const cellModel &) 
Inequality operator: true => ptr to models are not equal ! More...  
Ostream &  operator<< (Ostream &, const cellModel &) 
Maps a geometry to a set of cell primitives, which 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.
Definition at line 64 of file cellModel.H.
Construct from Istream.
Definition at line 31 of file cellModelIO.C.
References entry::keyword(), dictionary::lookup(), and dictionary::null.
Referenced by cellModel::clone(), and cellModel::New().
Return a new cellModel on freestore created from Istream.
Definition at line 92 of file cellModel.H.
References cellModel::cellModel().
Return clone.
Definition at line 98 of file cellModel.H.
References cellModel::cellModel(), cellModel::centre(), cellModel::edges(), cellModel::faces(), cellModel::index(), cellModel::info(), cellModel::mag(), cellModel::modelFaces(), cellModel::name(), cellModel::nEdges(), cellModel::nFaces(), cellModel::nPoints(), pointLabels(), and points.

inline 
Return model name.
Definition at line 38 of file cellModelI.H.
Referenced by cellModel::clone(), and Foam::operator<<().

inline 
Return index of model in the model list.
Definition at line 44 of file cellModelI.H.
Referenced by cellModel::clone(), Foam::operator<<(), and STARCD::readBoundary().

inline 
Return number of points.
Definition at line 50 of file cellModelI.H.
Referenced by cellModel::clone(), and Foam::operator<<().

inline 
Return number of edges.
Definition at line 56 of file cellModelI.H.
References List< T >::size().
Referenced by cellModel::clone(), cellShape::nEdges(), and Foam::operator<<().

inline 
Return number of faces.
Definition at line 62 of file cellModelI.H.
References List< T >::size().
Referenced by cellModel::clone(), cellShape::nFaces(), and Foam::operator<<().
Return list of edges.
Definition at line 70 of file cellModelI.H.
References Foam::e, forAll, and List< T >::size().
Referenced by cellModel::clone(), and cellShape::edges().

inline 
Return a raw list of model faces.
Definition at line 90 of file cellModelI.H.
Referenced by cellModel::clone().
Return list of faces.
Definition at line 97 of file cellModelI.H.
References f(), forAll, Foam::labelI, List< T >::setSize(), and List< T >::size().
Referenced by cellModel::clone(), and cellShape::faces().
Foam::vector centre  (  const labelList &  pointLabels, 
const pointField &  points  
)  const 
Vector centroid.
Definition at line 32 of file cellModel.C.
References Foam::endl(), forAll, cellModel::mag(), Foam::mag(), List< T >::size(), and WarningIn.
Referenced by cellShape::centre(), and cellModel::clone().
Foam::scalar mag  (  const labelList &  pointLabels, 
const pointField &  points  
)  const 
Cell volume.
Definition at line 89 of file cellModel.C.
References Foam::endl(), forAll, Foam::mag(), List< T >::size(), and WarningIn.
Referenced by cellModel::centre(), cellModel::clone(), and cellShape::mag().
Return info proxy.
Used to print token information to a stream
Definition at line 149 of file cellModel.H.
Referenced by cellModel::clone(), and Foam::operator<<().

inline 
WriteData member function required by regIOobject.
Definition at line 155 of file cellModel.H.
References IOstream::good(), cellModel::operator!=, cellModel::operator<<, and cellModel::operator==.
Equality operator: true => ptr to models are equal !
Definition at line 123 of file cellModelI.H.
Referenced by cellModel::writeData().
Inequality operator: true => ptr to models are not equal !
Definition at line 129 of file cellModelI.H.
Referenced by cellModel::writeData().
Referenced by cellModel::writeData().