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"
311 if (moving() && time().subCycling())
314 const TimeState& ts0 = time().prevTimeState();
321 if (tFrac < (1 - small))
323 return V0() + tFrac*(V() - V0());
340 if (moving() && time().subCycling())
343 const TimeState& ts0 = time().prevTimeState();
353 return V0() + t0Frac*(V() - V0());
395 return *magSfSlicePtr_;
451 const labelUList& neighbour = this->neighbour();
455 delta[facei] =
C[neighbour[facei]] -
C[owner[facei]];
459 delta.boundaryFieldRef();
475 <<
"mesh flux field does not exist, is the mesh actually moving?"
481 if (!time().subCycling() && phiPtr_->timeIndex() != time().
timeIndex())
495 <<
"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 >> &)
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.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
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
errorManip< error > abort(error &err)
const dimensionSet dimLength
void deleteDemandDrivenData(DataPtr &dataPtr)
SlicedGeometricField< vector, fvPatchField, slicedFvPatchField, volMesh > slicedVolVectorField
const dimensionSet dimTime
const dimensionSet dimVolume
const dimensionSet dimArea
faceListList boundary(nPatches)