50 <<
"face areas already exist" 84 <<
"mag face areas already exist" 117 <<
"cell centres already exist" 154 <<
"face centres already exist" 184 <<
"Constructing from primitiveMesh::cellVolumes()" <<
endl;
212 <<
"V0 is not available" 225 <<
"V0 is not available" 239 V00Ptr_ =
new DimensionedField<scalar, volMesh>
264 if (!steady() && moving() && time().subCycling())
266 const TimeState& ts = time();
267 const TimeState& ts0 = time().prevTimeState();
271 ts.value() - (ts0.value() - ts0.deltaTValue())
274 if (tFrac < (1 - SMALL))
276 return V0() + tFrac*(V() - V0());
286 if (!steady() && moving() && time().subCycling())
288 const TimeState& ts = time();
289 const TimeState& ts0 = time().prevTimeState();
293 (ts.value() - ts.deltaTValue())
294 - (ts0.value() - ts0.deltaTValue())
299 return V0() + t0Frac*(V() - V0());
345 (this->Sf() / this->magSf())
348 tunitVectors.ref().oriented() = this->Sf().oriented();
394 auto&
delta = tdelta.ref();
399 const labelUList& neighbour = this->neighbour();
403 delta[facei] =
C[neighbour[facei]] -
C[owner[facei]];
406 auto& deltabf =
delta.boundaryFieldRef();
422 <<
"mesh flux field does not exist, is the mesh actually moving?" 428 if (!time().subCycling() && phiPtr_->timeIndex() != time().timeIndex())
433 phiPtr_->setOriented();
444 phiref.
ref(phiPtr_.get());
const surfaceVectorField & Sf() const
Return cell face area vectors.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Specialisation of DimensionedField that holds a slice of a given field so that it acts as a Dimension...
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const surfaceVectorField & Cf() const
Return face centres as surfaceVectorField.
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
const surfaceScalarField & phi() const
Return cell face motion fluxes.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const DimensionedField< scalar, volMesh > & V00() const
Return old-old-time cell volumes.
Ignore writing from objectRegistry::writeObject()
const dimensionSet dimless
Dimensionless.
DimensionedField< scalar, volMesh > & setV0()
Return old-time cell volumes.
const DimensionedField< scalar, volMesh > & V() const
Return cell volumes.
GeometricField< vector, fvPatchField, volMesh > volVectorField
A class for managing references or pointers (no reference counting)
UList< label > labelUList
A UList of labels.
#define forAll(list, i)
Loop across all elements in list.
const dimensionSet dimVolume(pow3(dimLength))
tmp< DimensionedField< scalar, volMesh > > Vsc() const
Return sub-cycle cell volumes.
const fileName & pointsInstance() const
Return the current instance directory for points.
const DimensionedField< scalar, volMesh > & V0() const
Return old-time cell volumes.
SlicedGeometricField< vector, fvsPatchField, slicedFvsPatchField, surfaceMesh > slicedSurfaceVectorField
#define DebugInFunction
Report an information message using Foam::Info.
void setOriented(bool on=true) noexcept
Set the oriented flag: on/off.
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
refPtr< surfaceScalarField > setPhi()
Return cell face motion fluxes, if any (can be nullptr)
SlicedGeometricField< vector, fvPatchField, slicedFvPatchField, volMesh > slicedVolVectorField
errorManip< error > abort(error &err)
tmp< DimensionedField< scalar, volMesh > > Vsc0() const
Return sub-cycle old-time cell volumes.
const surfaceScalarField & magSf() const
Return cell face area magnitudes.
T & ref() const
Return non-const reference to the contents of a non-null managed pointer.
tmp< surfaceVectorField > delta() const
Return face deltas as surfaceVectorField.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const vectorField & faceAreas() const
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Automatically write from objectRegistry::writeObject()
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
slicedSurfaceVectorField * SfPtr_
Face area vectors.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
const volVectorField & C() const
Return cell centres as volVectorField.
A class for managing temporary objects.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Defines the attributes of an object for which implicit objectRegistry management is supported...
Request registration (bool: true)
tmp< surfaceVectorField > unitSf() const
Return cell face unit normals.
Do not request registration (bool: false)
const dimensionSet dimArea(sqr(dimLength))