88 points0_(points0IO(
mesh))
103 <<
" read from file " 104 << typeFilePath<pointIOField>
124 const polyMesh&
mesh,
125 const IOdictionary&
dict,
131 zoneMotion(coeffDict(),
mesh),
139 <<
" read from file " <<
points0.filePath()
177 forAll(newPoints0, pointi)
179 label oldPointi = mpm.
pointMap()[pointi];
185 if (masterPointi == pointi)
187 newPoints0[pointi] = points0_[oldPointi];
202 <<
"Cannot determine coordinates of introduced vertices." 203 <<
" New vertex " << pointi <<
" at coordinate " 208 twoDCorrectPoints(newPoints0);
210 points0_.transfer(newPoints0);
213 points0_.rename(
"points0");
215 points0_.instance() = time().timeName();
void size(const label n)
Older name for setAddressableSize.
const labelList & reversePointMap() const
Reverse point map.
errorManipArg< error, int > exit(error &err, const int errNo=1)
word findInstance(const fileName &dir, const word &name=word::null, IOobjectOption::readOption rOpt=IOobjectOption::MUST_READ, const word &stopInstance=word::null) const
Return time instance (location) of dir that contains the file name (eg, used in reading mesh data)...
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.
pointField points0(pointIOField(IOobject("points", mesh.time().constant(), polyMesh::meshSubDir, mesh, IOobject::MUST_READ, IOobject::NO_WRITE, false)))
vectorIOField pointIOField
pointIOField is a vectorIOField.
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()
bool hasMotionPoints() const
Has valid preMotionPoints?
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.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
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.
points0MotionSolver(const points0MotionSolver &)=delete
No copy construct.
virtual void updateMesh(const mapPolyMesh &)
Update local data for topology changes.
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)
const labelList & pointMap() const
Old point map.
const fileName & instance() const noexcept
Read access to instance path component.
const Time & time() const
Return Time associated with the objectRegistry.
Virtual base class for displacement motion solvers, where the point motion is relative to a set of fi...
IOobject(const IOobject &)=default
Copy construct.
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
Return reference to 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
Pre-motion point positions.