Go to the documentation of this file.
79 Foam::points0MotionSolver::points0MotionSolver
88 points0_(points0IO(
mesh))
102 <<
" differs from number of points " << points0_.size()
103 <<
" read from file "
104 << typeFilePath<pointIOField>
122 Foam::points0MotionSolver::points0MotionSolver
138 <<
" differs from number of points " << points0_.size()
139 <<
" read from file " <<
points0.filePath()
183 forAll(newPoints0, pointi)
185 label oldPointi = mpm.
pointMap()[pointi];
191 if (masterPointi == pointi)
193 newPoints0[pointi] = points0_[oldPointi];
208 <<
"Cannot determine coordinates of introduced vertices."
209 <<
" New vertex " << pointi <<
" at coordinate "
214 twoDCorrectPoints(newPoints0);
216 points0_.transfer(newPoints0);
219 points0_.rename(
"points0");
221 points0_.instance() = time().timeName();
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
virtual const pointField & points() const
Return raw points.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for handling words, derived from Foam::string.
A primitive field of type <T> with automated input and output.
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
const fileName & instance() const noexcept
static bool allowConstructFromLargerSize
Permit read construct from a larger size.
bool typeHeaderOk(const bool checkType=true, const bool search=true, const bool verbose=true)
Read header (uses typeFilePath to find file) and check its info.
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
const pointField & preMotionPoints() const
Pre-motion point positions.
Mesh consisting of general polyhedral cells.
label nPoints() const noexcept
Number of mesh points.
#define forAll(list, i)
Loop across all elements in list.
static IOobject points0IO(const polyMesh &mesh)
Return IO object for points0.
vector span() const
The bounding box span (from minimum to maximum)
virtual ~points0MotionSolver()
Destructor.
virtual void rename(const word &newName)
Rename.
word findInstance(const fileName &dir, const word &name=word::null, const IOobject::readOption rOpt=IOobject::MUST_READ, const word &stopInstance=word::null) const
fileName meshDir() const
Return the local mesh directory (dbDir()/meshSubDir)
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< Type > cmptDivide(const dimensioned< Type > &, const dimensioned< Type > &)
pointField points0(pointIOField(IOobject("points", mesh.time().constant(), polyMesh::meshSubDir, mesh, IOobject::MUST_READ, IOobject::NO_WRITE, false)))
virtual void movePoints(const pointField &)
Update local data for geometry changes.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Virtual base class for mesh motion solver.
virtual void updateMesh(const mapPolyMesh &)
Update local data for topology changes.
const labelList & reversePointMap() const
Reverse point map.
const labelList & pointMap() const
Old point map.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
virtual void updateMesh(const mapPolyMesh &)=0
Update local data for topology changes.
const polyMesh & mesh() const
Return reference to mesh.
A bounding box defined in terms of min/max extrema points.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
bool hasMotionPoints() const
Has valid preMotionPoints?
const word & constant() const
Return constant name.
constant condensation/saturation model.
defineTypeNameAndDebug(combustionModel, 0)
const Time & time() const noexcept
Return time registry.