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" 89 const_cast<primitiveMesh&
>(*this).updateGeom();
92 return *cellCentresPtr_;
101 const_cast<primitiveMesh&
>(*this).updateGeom();
104 return *cellVolumesPtr_;
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
void calcCellCentresAndVols() const
Calculate cell centres and volumes.
const vectorField & cellCentres() const
errorManip< error > abort(error &err)
int debug
Static debugging option.
const scalarField & cellVols
const vectorField & faceCentres() const
label nCells() const noexcept
Number of mesh cells.
const vectorField & faceAreas() const
Field< vector > vectorField
Specialisation of Field<T> for vector.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
const scalarField & cellVolumes() const
static constexpr const zero Zero
Global zero (0)