88 points0_(points0IO(
mesh))
111 ).typeFilePath<pointIOField>()
117 <<
" read from file " << fName <<
nl 125 const polyMesh&
mesh,
126 const IOdictionary&
dict,
132 zoneMotion(
mesh, coeffDict()),
140 <<
" read from file " <<
points0.filePath()
178 forAll(newPoints0, pointi)
180 label oldPointi = mpm.
pointMap()[pointi];
186 if (masterPointi == pointi)
188 newPoints0[pointi] = points0_[oldPointi];
203 <<
"Cannot determine coordinates of introduced vertices." 204 <<
" New vertex " << pointi <<
" at coordinate " 209 twoDCorrectPoints(newPoints0);
211 points0_.transfer(newPoints0);
214 points0_.rename(
"points0");
216 points0_.instance() = time().timeName();
void size(const label n)
Older name for setAddressableSize.
errorManipArg< error, int > exit(error &err, const int errNo=1)
label nPoints() const noexcept
Number of mesh points.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
vectorIOField pointIOField
pointIOField is a vectorIOField.
constexpr char nl
The newline '\n' character (0x0a)
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
Virtual base class for mesh motion solver.
A bounding box defined in terms of min/max extrema points.
Ignore writing from objectRegistry::writeObject()
Intermediate class for handling "zonified" motion. Can select motion for the entire mesh...
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.
#define forAll(list, i)
Loop across all elements in list.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
static IOobject points0IO(const polyMesh &mesh)
Return IO object for points0.
virtual void updateMesh(const mapPolyMesh &)=0
Update local data for topology changes.
word findInstance(const fileName &directory, const word &name=word::null, IOobjectOption::readOption rOpt=IOobjectOption::MUST_READ, const word &stopInstance=word::null, const bool constant_fallback=true) const
Return time instance (location) of directory containing the file name (eg, used in reading mesh data)...
A class for handling words, derived from Foam::string.
const Time & time() const noexcept
Return time registry.
virtual void movePoints(const pointField &)
Update local data for geometry changes.
const labelList & pointMap() const noexcept
Old point map.
Reading is optional [identical to LAZY_READ].
points0MotionSolver(const points0MotionSolver &)=delete
No copy construct.
virtual void updateMesh(const mapPolyMesh &)
Update local data for topology changes.
const labelList & reversePointMap() const noexcept
Reverse point map.
const Time & time() const noexcept
Return Time associated with the objectRegistry.
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
const word & constant() const noexcept
Return constant name.
defineTypeNameAndDebug(combustionModel, 0)
Expression::UniformListWrap< scalar > constant
Wrap of constant as a list expression.
const fileName & instance() const noexcept
Read access to instance path component.
bool hasMotionPoints() const noexcept
Has valid preMotionPoints?
pointField points0(pointIOField(IOobject("points", mesh.time().constant(), polyMesh::meshSubDir, mesh, IOobject::MUST_READ, IOobject::NO_WRITE, IOobject::NO_REGISTER)))
Virtual base class for displacement motion solvers, where the point motion is relative to a set of fi...
fileName meshDir() const
Return the local mesh directory (dbDir()/meshSubDir)
pointIOField points0_
Starting points.
Automatically write from objectRegistry::writeObject()
vector span() const
The bounding box span (from minimum to maximum)
pointField & points0() noexcept
The reference ('0') pointField.
Mesh consisting of general polyhedral cells.
const polyMesh & mesh() const
Return reference to mesh.
static bool allowConstructFromLargerSize
Permit read construct from a larger size.
Defines the attributes of an object for which implicit objectRegistry management is supported...
A primitive field of type <T> with automated input and output.
const pointField & preMotionPoints() const noexcept
Pre-motion point positions.
Do not request registration (bool: false)