54 if (oldPoints.size() != currPoints.size())
57 <<
"Old and current points sizes must be the same. " 58 <<
"Old points:" << oldPoints.size()
59 <<
" Current points:" << currPoints.size()
66 auto tmeshPhi(const_cast<fvMesh&>(
mesh_).setPhi());
70 auto& meshPhii =
meshPhi.primitiveFieldRef();
73 const face&
f = faces[facei];
74 meshPhii[facei] =
f.sweptVol(oldPoints, currPoints)*rdt;
77 auto& meshPhiBf =
meshPhi.boundaryFieldRef();
78 for (
auto& meshPhip : meshPhiBf)
86 const auto& pp = meshPhip.patch().patch();
90 const face&
f = pp[facei];
91 meshPhip[facei] =
f.sweptVol(oldPoints, currPoints)*rdt;
106 const word& defaultScheme
110 const word schemeName
119 auto* ctorPtr = dictConstructorTable(schemeName);
128 *dictConstructorTablePtr_
const fvMesh & mesh_
Hold reference to mesh.
scalar deltaTValue() const noexcept
Return time step value.
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
bool setMeshPhi() const
Set the mesh motion flux.
List< face > faceList
A List of faces.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual void updateMesh(const mapPolyMesh &mpm)
Update mesh for topology changes.
const Time & time() const
Return the top-level database.
virtual const pointField & points() const
Return raw points.
#define forAll(list, i)
Loop across all elements in list.
vectorField pointField
pointField is a vectorField.
void clearGeom()
Clear geometry.
A class for handling words, derived from Foam::string.
#define DebugInFunction
Report an information message using Foam::Info.
virtual const pointField & oldPoints() const
Return old points (mesh motion)
virtual const faceList & faces() const
Return raw faces.
errorManip< error > abort(error &err)
static tmp< fvGeometryScheme > New(const fvMesh &mesh, const dictionary &dict, const word &defaultScheme)
Return new tmp interpolation scheme.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
bool moving() const noexcept
Is mesh moving.
Mesh data needed to do the Finite Volume discretisation.
tmp< surfaceScalarField > meshPhi(const volVectorField &U)
virtual void movePoints()
Update basic geometric properties from provided points.
const entry * findEntry(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find an entry (const access) with the given keyword.
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T, or return the given default value. FatalIOError if it is found and the number of...
virtual ITstream & stream() const =0
Return token stream, if entry is a primitive entry.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
Abstract base class for geometry calculation schemes.
A keyword and a list of tokens is an 'entry'.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...