37 void Foam::fvMesh::makeSf()
const
46 if (SfSlicePtr_ || SfPtr_)
49 <<
"face areas already exist"
72 void Foam::fvMesh::makeMagSf()
const
81 if (magSfSlicePtr_ || magSfPtr_)
84 <<
"mag face areas already exist"
107 void Foam::fvMesh::makeC()
const
116 if (CSlicePtr_ || CPtr_)
119 <<
"cell centres already exist"
147 void Foam::fvMesh::makeCf()
const
156 if (CfSlicePtr_ || CfPtr_)
159 <<
"face centres already exist"
212 CPtr_ =
C().cloneUnSliced().ptr();
243 <<
"Constructing from primitiveMesh::cellVolumes()" <<
endl;
272 <<
"Vc0 is not available"
284 V00Ptr_ = NullObjectPtr<DimensionedField<scalar, volMesh>>();
298 if (moving() && time().subCycling())
301 const TimeState& ts0 = time().prevTimeState();
308 if (tFrac < (1 - small))
310 return V0() + tFrac*(V() - V0());
326 if (moving() && time().subCycling())
329 const TimeState& ts0 = time().prevTimeState();
339 return V0() + t0Frac*(V() - V0());
381 return *magSfSlicePtr_;
437 const labelUList& neighbour = this->neighbour();
441 delta[facei] =
C[neighbour[facei]] -
C[owner[facei]];
445 delta.boundaryFieldRef();
461 <<
"mesh flux field does not exist, is the mesh actually moving?"
467 if (!time().subCycling() && phiPtr_->timeIndex() != time().
timeIndex())
481 <<
"mesh flux field does not exist, is the mesh actually moving?"
static const Foam::dimensionedScalar C("C", Foam::dimTemperature, 234.5)
#define forAll(list, i)
Loop across all elements in list.
Graphite solid properties.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic GeometricBoundaryField class.
Generic GeometricField class.
tmp< GeometricField< Type, PatchField, GeoMesh > > cloneUnSliced() const
Clone un-sliced.
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Internal &, const PtrList< PatchField< Type >> &, const HashPtrTable< Source > &=HashPtrTable< Source >())
Return a temporary field constructed from name,.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
IOobject(const word &name, const fileName &instance, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true)
Construct from name, instance, registry, io options.
Specialisation of DimensionedField which holds a slice of a given complete field in such a form that ...
The time value with time-stepping information, user-defined remapping, etc.
scalar deltaTValue() const
Return time step value.
const Type & value() const
Return const reference to value.
const volVectorField & C() const
Return cell centres.
const DimensionedField< scalar, volMesh > & V() const
Return cell volumes.
const DimensionedField< scalar, volMesh > & V00() const
Return old-old-time cell volumes.
const surfaceScalarField & phi() const
Return cell face motion fluxes.
const surfaceVectorField & Cf() const
Return face centres.
const DimensionedField< scalar, volMesh > & V0() const
Return old-time cell volumes.
const surfaceVectorField & Sf() const
Return cell face area vectors.
const surfaceScalarField & magSf() const
Return cell face area magnitudes.
tmp< DimensionedField< scalar, volMesh > > Vsc0() const
Return sub-cycle old-time cell volumes.
tmp< surfaceVectorField > delta() const
Return face deltas as surfaceVectorField.
tmp< DimensionedField< scalar, volMesh > > Vsc() const
Return sub-cycle cell volumes.
const fileName & pointsInstance() const
Return the current instance directory for points.
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
const vectorField & faceAreas() const
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define InfoInFunction
Report an information message using Foam::Info.
SlicedGeometricField< vector, fvsPatchField, slicedFvsPatchField, surfaceMesh > slicedSurfaceVectorField
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
SlicedGeometricField< scalar, fvsPatchField, slicedFvsPatchField, surfaceMesh > slicedSurfaceScalarField
void deleteDemandDrivenData(DataType *&dataPtr)
errorManip< error > abort(error &err)
const dimensionSet dimLength
SlicedGeometricField< vector, fvPatchField, slicedFvPatchField, volMesh > slicedVolVectorField
const dimensionSet dimTime
const dimensionSet dimVolume
bool isNull(const T &t)
Return true if t is a reference to the nullObject of type T.
const dimensionSet dimArea
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
faceListList boundary(nPatches)