Go to the documentation of this file.
80 Foam::points0MotionSolver::points0MotionSolver
89 points0_(points0IO(
mesh))
103 <<
" differs from number of points " << points0_.size()
104 <<
" read from file "
105 << typeFilePath<pointIOField>
123 Foam::points0MotionSolver::points0MotionSolver
139 <<
" differs from number of points " << points0_.size()
140 <<
" read from file " <<
points0.filePath()
184 forAll(newPoints0, pointi)
186 label oldPointi = mpm.
pointMap()[pointi];
192 if (masterPointi == pointi)
194 newPoints0[pointi] = points0_[oldPointi];
209 <<
"Cannot determine coordinates of introduced vertices."
210 <<
" New vertex " << pointi <<
" at coordinate "
215 twoDCorrectPoints(newPoints0);
217 points0_.transfer(newPoints0);
220 points0_.rename(
"points0");
222 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 > &)
static bool allowConstructFromLargerSize
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.
const fileName & instance() const
const Time & time() const
Return time.
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.
#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.
label nPoints() const
Number of mesh points.
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)