42 Pout<<
"primitiveMesh::calcCellCentresAndVols() : "
43 <<
"Calculating cell centres and volumes"
48 if (cellCentresPtr_ || cellVolumesPtr_)
51 <<
"Cell centres or volumes already calculated"
75 Pout<<
"primitiveMesh::calcCellCentresAndVols() : "
76 <<
"Finished calculating cell centres and volumes"
92 return *cellCentresPtr_;
104 return *cellVolumesPtr_;
Cell-face mesh analysis engine.
const vectorField & faceCentres() const
const scalarField & cellVolumes() const
const vectorField & cellCentres() const
void calcCellCentresAndVols() const
Calculate cell centres and volumes.
label nCells() const noexcept
Number of mesh cells.
const vectorField & faceAreas() const
virtual void updateGeom()
Update all geometric data.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
Field< vector > vectorField
Specialisation of Field<T> for vector.
static constexpr const zero Zero
Global zero (0)
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
const scalarField & cellVols