37 void Foam::fvMesh::makeSf()
const
43 if (SfSlicePtr_ || SfPtr_)
46 <<
"face areas already exist"
69 void Foam::fvMesh::makeMagSf()
const
75 if (magSfSlicePtr_ || magSfPtr_)
78 <<
"mag face areas already exist"
101 void Foam::fvMesh::makeC()
const
107 if (CSlicePtr_ || CPtr_)
110 <<
"cell centres already exist"
138 void Foam::fvMesh::makeCf()
const
144 if (CfSlicePtr_ || CfPtr_)
147 <<
"face centres already exist"
200 CPtr_ =
C().cloneUnSliced().ptr();
229 <<
"Constructing from primitiveMesh::cellVolumes()" <<
endl;
257 <<
"Vc0 is not available"
269 V00Ptr_ = NullObjectPtr<DimensionedField<scalar, fvMesh>>();
283 if (moving() &&
time().subCycling())
293 if (tFrac < (1 - small))
295 return V0() + tFrac*(V() - V0());
311 if (moving() &&
time().subCycling())
324 return V0() + t0Frac*(V() - V0());
366 return *magSfSlicePtr_;
425 const labelUList& neighbour = this->neighbour();
429 delta[facei] =
C[neighbour[facei]] -
C[owner[facei]];
433 delta.boundaryFieldRef();
449 <<
"mesh flux field does not exist, is the mesh actually moving?"
469 <<
"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, fvMesh > & V() const
Return cell volumes.
const DimensionedField< scalar, fvMesh > & 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, fvMesh > & 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, fvMesh > > Vsc0() const
Return sub-cycle old-time cell volumes.
tmp< surfaceVectorField > delta() const
Return face deltas as surfaceVectorField.
tmp< DimensionedField< scalar, fvMesh > > 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 DebugInFunction
Report an information message using Foam::Info.
static const coefficient C("C", dimTemperature, 234.5)
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dimensionSet & dimLength
void deleteDemandDrivenData(DataType *&dataPtr)
errorManip< error > abort(error &err)
const dimensionSet & dimVolume
const dimensionSet & dimTime
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.
SlicedGeometricField< vector, fvMesh > slicedVolVectorField
faceListList boundary(nPatches)