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_;
443 const labelUList& neighbour = this->neighbour();
447 delta[facei] =
C[neighbour[facei]] -
C[owner[facei]];
451 delta.boundaryFieldRef();
467 <<
"mesh flux field does not exist, is the mesh actually moving?"
473 if (!time().subCycling() && phiPtr_->timeIndex() != time().
timeIndex())
487 <<
"mesh flux field does not exist, is the mesh actually moving?"
#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.
static tmp< GeometricField< Type, GeoMesh, PrimitiveField > > New(const word &name, const Internal &, const PtrList< Patch > &, const HashPtrTable< Source > &=HashPtrTable< Source >())
Return a temporary field constructed from name,.
tmp< GeometricField< Type, GeoMesh, PrimitiveField > > cloneUnSliced() const
Clone un-sliced.
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.
tmp< surfaceVectorField > nf() const
Return cell face normal vectors.
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.
static const coefficient C("C", dimTemperature, 234.5)
Ostream & endl(Ostream &os)
Add newline and flush stream.
SlicedGeometricField< vector, volMesh > slicedVolVectorField
void deleteDemandDrivenData(DataType *&dataPtr)
errorManip< error > abort(error &err)
const dimensionSet dimLength
const dimensionSet dimTime
const dimensionSet dimVolume
SlicedGeometricField< vector, surfaceMesh > slicedSurfaceVectorField
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
bool isNull(const T &t)
Return true if t is a reference to the nullObject of type T.
SlicedGeometricField< scalar, surfaceMesh > slicedSurfaceScalarField
const dimensionSet dimArea
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
faceListList boundary(nPatches)