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"
187 <<
"V0 is not available"
236 CPtr_ =
C().cloneUnSliced().ptr();
267 <<
"Constructing from primitiveMesh::cellVolumes()" <<
endl;
296 <<
"V0 is not available"
335 if (moving() && time().subCycling())
338 const TimeState& ts0 = time().prevTimeState();
345 if (tFrac < (1 - small))
347 return V0() + tFrac*(V() - V0());
364 if (moving() && time().subCycling())
367 const TimeState& ts0 = time().prevTimeState();
377 return V0() + t0Frac*(V() - V0());
419 return *magSfSlicePtr_;
475 const labelUList& neighbour = this->neighbour();
479 delta[facei] =
C[neighbour[facei]] -
C[owner[facei]];
483 delta.boundaryFieldRef();
499 <<
"mesh flux field does not exist, is the mesh actually moving?"
505 if (!time().subCycling() && phiPtr_->timeIndex() != time().
timeIndex())
519 <<
"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.
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
const fileName & pointsInstance() const
Return the current instance directory for points.
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.
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
word name(const complex &)
Return a string representation of a complex.
faceListList boundary(nPatches)