88 points0_(points0IO(
mesh))
103 <<
" read from file "
104 << typeFilePath<pointIOField>
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();
static bool allowConstructFromLargerSize
Permit read construct from a larger size.
A primitive field of type <T> with automated input and output.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const Time & time() const
Return Time associated with the objectRegistry.
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 noexcept
Read access to instance path component.
virtual void rename(const word &newName)
Rename the object.
const word & constant() const
Return constant name.
word findInstance(const fileName &dir, const word &name=word::null, const IOobject::readOption rOpt=IOobject::MUST_READ, const word &stopInstance=word::null) const
void size(const label n)
Older name for setAddressableSize.
A bounding box defined in terms of min/max extrema points.
vector span() const
The bounding box span (from minimum to maximum)
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const pointField & preMotionPoints() const
Pre-motion point positions.
const labelList & pointMap() const
Old point map.
const labelList & reversePointMap() const
Reverse point map.
bool hasMotionPoints() const
Has valid preMotionPoints?
void movePoints()
Update for new mesh geometry.
void updateMesh()
Update for new mesh topology.
Virtual base class for mesh motion solver.
const polyMesh & mesh() const
Return reference to mesh.
const Time & time() const noexcept
Return time registry.
constant condensation/saturation model.
Virtual base class for displacement motion solvers, where the point motion is relative to a set of fi...
pointField & points0() noexcept
Return reference to the reference ('0') pointField.
pointIOField points0_
Starting points.
static IOobject points0IO(const polyMesh &mesh)
Return IO object for points0.
Mesh consisting of general polyhedral cells.
fileName meshDir() const
Return the local mesh directory (dbDir()/meshSubDir)
virtual const pointField & points() const
Return raw points.
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
label nPoints() const noexcept
Number of mesh points.
A class for handling words, derived from Foam::string.
Intermediate class for handling "zonified" motion. Can select motion for the entire mesh,...
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
dimensioned< Type > cmptDivide(const dimensioned< Type > &, const dimensioned< Type > &)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define forAll(list, i)
Loop across all elements in list.
pointField points0(pointIOField(IOobject("points", mesh.time().constant(), polyMesh::meshSubDir, mesh, IOobject::MUST_READ, IOobject::NO_WRITE, false)))