Go to the documentation of this file.
62 cellCentresPtr_(NULL),
63 faceCentresPtr_(NULL),
64 cellVolumesPtr_(NULL),
74 const label nInternalFaces,
81 nInternalFaces_(nInternalFaces),
103 cellCentresPtr_(NULL),
104 faceCentresPtr_(NULL),
105 cellVolumesPtr_(NULL),
123 const label nInternalFaces,
133 nInternalFaces_ = nInternalFaces;
139 Pout<<
"primitiveMesh::reset : mesh reset to"
140 <<
" nPoints:" << nPoints_
141 <<
" nEdges:" << nEdges_
142 <<
" nInternalFaces:" << nInternalFaces_
143 <<
" nFaces:" << nFaces_
144 <<
" nCells:" << nCells_
153 const label nInternalFaces,
174 const label nInternalFaces,
202 "primitiveMesh::movePoints(const pointField& newPoints, "
203 "const pointField& oldPoints)"
204 ) <<
"Cannot move points: size of given point list smaller "
205 <<
"than the number of active points" <<
nl
206 <<
"newPoints: " << newPoints.size()
207 <<
" oldPoints: " << oldPoints.size()
220 sweptVols[faceI] =
f[faceI].sweptVol(oldPoints, newPoints);
237 return *cellShapesPtr_;
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
defineTypeNameAndDebug(Foam::primitiveMesh, 0)
primitiveMesh()
Construct null.
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
Template functions to aid in the implementation of demand driven data.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A simple container for copying or transferring objects of type <T>.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
List< cell > cellList
list of cells
errorManip< error > abort(error &err)
const cellShapeList & cellShapes() const
Return cell shapes.
prefixOSstream Pout(cout, "Pout")
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
tmp< scalarField > movePoints(const pointField &p, const pointField &oldP)
Move points, returns volumes swept by faces in motion.
void reset(const label nPoints, const label nInternalFaces, const label nFaces, const label nCells)
Reset this primitiveMesh given the primitive array sizes.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
void size(const label)
Override size to be inconsistent with allocated storage.
Cell-face mesh analysis engine.