51 else if (cmptName ==
"y")
55 else if (cmptName ==
"z")
62 <<
"Given component name " << cmptName <<
" should be x, y or z"
80 cmptName_(coeffDict().get<
word>(
"component")),
81 cmpt_(cmpt(cmptName_)),
102 "pointDisplacement" + cmptName_,
116 <<
" read from file "
117 << typeFilePath<pointIOField>
174 forAll(newPoints0, pointi)
176 label oldPointi = mpm.
pointMap()[pointi];
182 if (masterPointi == pointi)
184 newPoints0[pointi] = points0_[oldPointi];
197 <<
"Cannot work out coordinates of introduced vertices."
198 <<
" New vertex " << pointi <<
" at coordinate "
202 points0_.transfer(newPoints0);
tmp< Field< cmptType > > component(const direction) const
Return a component field of the field.
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 word & constant() const
Return constant name.
void size(const label n)
Older name for setAddressableSize.
Virtual base class for displacement motion solver.
scalarField points0_
Reference point field for this component.
virtual ~componentDisplacementMotionSolver()
Destructor.
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.
Mesh representing a set of points created from polyMesh.
Mesh consisting of general polyhedral cells.
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.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
Type gMin(const FieldField< Field, Type > &f)
errorManipArg< error, int > exit(error &err, const int errNo=1)
Type gMax(const FieldField< Field, Type > &f)
#define forAll(list, i)
Loop across all elements in list.