52 if (instance != time().constant())
109 Foam::displacementMotionSolver::displacementMotionSolver
131 if (points0_.size() != mesh.
nPoints())
134 <<
"Number of points in mesh " << mesh.
nPoints()
135 <<
" differs from number of points " << points0_.size()
136 <<
" read from file " 193 forAll(newPoints0, pointi)
201 if (masterPointi == pointi)
203 newPoints0[pointi] = points0_[oldPointi];
211 points[pointi] - points[masterPointi]
218 <<
"Cannot determine co-ordinates of introduced vertices." 219 <<
" New vertex " << pointi <<
" at co-ordinate " 224 twoDCorrectPoints(newPoints0);
226 points0_.transfer(newPoints0);
229 points0_.rename(
"points0");
231 points0_.instance() = time().timeName();
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
IOobject points0IO(const polyMesh &mesh) const
Return IO object for points0.
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.
bool hasMotionPoints() const
Has valid preMotionPoints?
const labelList & pointMap() const
Old point map.
Virtual base class for mesh motion solver.
A bounding box defined in terms of the points at its extremities.
virtual void updateMesh(const mapPolyMesh &)
Update local data for topology changes.
fileName meshDir() const
Return the local mesh directory (dbDir()/meshSubDir)
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
dimensioned< Type > cmptDivide(const dimensioned< Type > &, const dimensioned< Type > &)
virtual const pointField & points() const
Return raw points.
static const pointMesh & New(const polyMesh &mesh)
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
virtual void movePoints(const pointField &)
Update local data for geometry changes.
virtual void updateMesh(const mapPolyMesh &)=0
Update local data for topology changes.
fileName filePath() const
Return complete path + object name if the file exists.
A class for handling words, derived from string.
vector span() const
The bounding box span (from minimum to maximum)
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
defineTypeNameAndDebug(combustionModel, 0)
virtual ~displacementMotionSolver()
Destructor.
Constant dispersed-phase particle diameter model.
bool headerOk()
Read and check header info.
const pointField & preMotionPoints() const
Pre-motion point positions.
Mesh consisting of general polyhedral cells.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const labelList & reversePointMap() const
Reverse point map.