52 if (instance != time().constant())
109 Foam::points0MotionSolver::points0MotionSolver
119 if (points0_.size() != mesh.
nPoints())
122 <<
"Number of points in mesh " << mesh.
nPoints()
123 <<
" differs from number of points " << points0_.size()
124 <<
" read from file " 125 << typeFilePath<pointIOField>
181 forAll(newPoints0, pointi)
189 if (masterPointi == pointi)
191 newPoints0[pointi] = points0_[oldPointi];
199 points[pointi] - points[masterPointi]
206 <<
"Cannot determine co-ordinates of introduced vertices." 207 <<
" New vertex " << pointi <<
" at co-ordinate " 212 twoDCorrectPoints(newPoints0);
214 points0_.transfer(newPoints0);
217 points0_.rename(
"points0");
219 points0_.instance() = time().timeName();
#define forAll(list, i)
Loop across all elements in list.
const labelList & reversePointMap() const
Reverse point map.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool typeHeaderOk(const bool checkType=true)
Read header (uses typeFilePath to find file) and check header.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
vectorIOField pointIOField
pointIOField is a vectorIOField.
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
void size(const label)
Override size to be inconsistent with allocated storage.
Virtual base class for mesh motion solver.
A bounding box defined in terms of the points at its extremities.
bool hasMotionPoints() const
Has valid preMotionPoints?
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
dimensioned< Type > cmptDivide(const dimensioned< Type > &, const dimensioned< Type > &)
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
virtual const pointField & points() const
Return raw points.
virtual void updateMesh(const mapPolyMesh &)=0
Update local data for topology changes.
IOobject points0IO(const polyMesh &mesh) const
Return IO object for points0.
A class for handling words, derived from string.
virtual void movePoints(const pointField &)
Update local data for geometry changes.
virtual void updateMesh(const mapPolyMesh &)
Update local data for topology changes.
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
defineTypeNameAndDebug(combustionModel, 0)
const labelList & pointMap() const
Old point map.
Constant dispersed-phase particle diameter model.
fileName meshDir() const
Return the local mesh directory (dbDir()/meshSubDir)
vector span() const
The bounding box span (from minimum to maximum)
virtual ~points0MotionSolver()
Destructor.
Mesh consisting of general polyhedral cells.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A primitive field of type <T> with automated input and output.
const pointField & preMotionPoints() const
Pre-motion point positions.