52 if (instance != time().constant())
109 Foam::displacementMotionSolver::displacementMotionSolver
131 if (points0_.size() != mesh.
nPoints())
135 "displacementMotionSolver::" 136 "displacementMotionSolver\n" 138 " const polyMesh&,\n" 139 " const IOdictionary&,\n" 142 ) <<
"Number of points in mesh " << mesh.
nPoints()
143 <<
" differs from number of points " << points0_.size()
144 <<
" read from file " 201 forAll(newPoints0, pointI)
209 if (masterPointI == pointI)
211 newPoints0[pointI] = points0_[oldPointI];
219 points[pointI] - points[masterPointI]
227 "displacementMotionSolver::updateMesh" 228 "(const mapPolyMesh&)" 229 ) <<
"Cannot determine co-ordinates of introduced vertices." 230 <<
" New vertex " << pointI <<
" at co-ordinate " 235 twoDCorrectPoints(newPoints0);
237 points0_.transfer(newPoints0);
240 points0_.rename(
"points0");
242 points0_.instance() = time().timeName();
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
const pointField & points
virtual ~displacementMotionSolver()
Destructor.
virtual void updateMesh(const mapPolyMesh &)
Update local data for topology changes.
fileName filePath() const
Return complete path + object name if the file exists.
virtual void updateMesh(const mapPolyMesh &)=0
Update local data for topology changes.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const labelList & reversePointMap() const
Reverse point map.
static const pointMesh & New(const polyMesh &mesh)
bool hasMotionPoints() const
Has valid preMotionPoints?
vector span() const
The bounding box span (from minimum to maximum)
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void size(const label)
Override size to be inconsistent with allocated storage.
errorManipArg< error, int > exit(error &err, const int errNo=1)
vectorIOField pointIOField
pointIOField is a vectorIOField.
Virtual base class for mesh motion solver.
const pointField & preMotionPoints() const
Pre-motion point positions.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
dimensioned< Type > cmptDivide(const dimensioned< Type > &, const dimensioned< Type > &)
virtual const pointField & points() const
Return raw points.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
A bounding box defined in terms of the points at its extremities.
virtual void movePoints(const pointField &)
Update local data for geometry changes.
Mesh consisting of general polyhedral cells.
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
Constant dispersed-phase particle diameter model.
const labelList & pointMap() const
Old point map.
fileName meshDir() const
Return the local mesh directory (dbDir()/meshSubDir)
bool headerOk()
Read and check header info.
IOobject points0IO(const polyMesh &mesh) const
Return IO object for points0.
defineTypeNameAndDebug(combustionModel, 0)