OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

cellShape Class Reference

Inheritance diagram for cellShape:

Inheritance graph
[legend]
Collaboration diagram for cellShape:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 69 of file cellShape.H.


Public Member Functions

 cellShape ()
 Construct null.
 cellShape (const cellModel &, const labelList &, const bool doCollapse=false)
 Construct from components.
 cellShape (Istream &is)
 Construct from Istream.
autoPtr< cellShape > clone () const
 Clone.
pointField points (const pointField &meshPoints) const
 Return the points corresponding to this cellShape.
const cellModel & model () const
 Model reference.
labelList meshFaces (const faceList &allFaces, const cell &) const
 Mesh face labels of this cell (in order of model).
labelList meshEdges (const edgeList &allEdges, const labelList &) const
 Mesh edge labels of this cell (in order of model).
faceList faces () const
 Faces of this cell.
faceList collapsedFaces () const
 Collapsed faces of this cell.
label nFaces () const
 Number of faces.
edgeList edges () const
 Edges of this cellShape.
label nEdges () const
 Number of edges.
label nPoints () const
 Number of points.
point centre (const pointField &) const
 Centroid of the cell.
InfoProxy< cellShape > info () const
 Return info proxy.
scalar mag (const pointField &) const
 Scalar magnitude.
void collapse ()
 Collapse shape to correct one after removing duplicate vertices.

Friends

bool operator== (const cellShape &, const cellShape &)
Istream & operator>> (Istream &, cellShape &)
Ostream & operator<< (Ostream &, const cellShape &)

Constructor & Destructor Documentation

cellShape (  )  [inline]

Construct null.

Definition at line 49 of file cellShapeI.H.

Referenced by cellShape::cellShape().

Here is the caller graph for this function:

cellShape ( const cellModel &  ,
const labelList &  ,
const bool  doCollapse = false 
) [inline]

Construct from components.

Definition at line 57 of file cellShapeI.H.

cellShape ( Istream &  is  )  [inline]

Construct from Istream.

Definition at line 74 of file cellShapeI.H.

References cellShape::cellShape().

Here is the call graph for this function:


Member Function Documentation

autoPtr< cellShape > clone (  )  const [inline]

Clone.

Reimplemented from List.

Definition at line 81 of file cellShapeI.H.

References forAll, p, and UList::size().

Here is the call graph for this function:

pointField points ( const pointField &  meshPoints  )  const [inline]

Return the points corresponding to this cellShape.

Definition at line 90 of file cellShapeI.H.

References UList::operator[](), and p.

Referenced by cellShape::centre(), and cellShape::nPoints().

Here is the call graph for this function:

Here is the caller graph for this function:

const cellModel & model (  )  const [inline]

Model reference.

Definition at line 108 of file cellShapeI.H.

labelList meshFaces ( const faceList &  allFaces,
const cell &   
) const [inline]

Mesh face labels of this cell (in order of model).

Definition at line 116 of file cellShapeI.H.

References forAll.

labelList meshEdges ( const edgeList &  allEdges,
const labelList &   
) const [inline]

Mesh edge labels of this cell (in order of model).

Definition at line 151 of file cellShapeI.H.

References Foam::mathematicalConstant::e(), and forAll.

Here is the call graph for this function:

faceList faces (  )  const [inline]

Faces of this cell.

Definition at line 185 of file cellShapeI.H.

faceList collapsedFaces (  )  const [inline]

Collapsed faces of this cell.

Definition at line 191 of file cellShapeI.H.

References forAll, List::setSize(), and UList::size().

Here is the call graph for this function:

label nFaces (  )  const [inline]

Number of faces.

Definition at line 241 of file cellShapeI.H.

References cellModel::edges().

Here is the call graph for this function:

edgeList edges (  )  const [inline]

Edges of this cellShape.

Definition at line 248 of file cellShapeI.H.

References cellModel::nEdges().

Here is the call graph for this function:

label nEdges (  )  const [inline]

Number of edges.

Definition at line 255 of file cellShapeI.H.

References UList::size().

Here is the call graph for this function:

label nPoints (  )  const [inline]

Number of points.

Definition at line 262 of file cellShapeI.H.

References cellModel::centre(), and cellShape::points().

Here is the call graph for this function:

point centre ( const pointField &   )  const [inline]

Centroid of the cell.

Definition at line 269 of file cellShapeI.H.

References cellModel::mag(), and cellShape::points().

Here is the call graph for this function:

InfoProxy<cellShape> info (  )  const [inline]

Return info proxy.

Used to print token information to a stream

Definition at line 144 of file cellShape.H.

scalar mag ( const pointField &   )  const [inline]

Scalar magnitude.

Definition at line 276 of file cellShapeI.H.

void collapse (  ) 

Collapse shape to correct one after removing duplicate vertices.


Friends And Related Function Documentation

bool operator== ( const cellShape &  ,
const cellShape &   
) [friend]

Istream& operator>> ( Istream &  ,
cellShape &   
) [friend]

Ostream& operator<< ( Ostream &  ,
const cellShape &   
) [friend]


The documentation for this class was generated from the following files: Copyright © 2000-2007 OpenCFD Ltd