48 else if (cmptName ==
"y")
52 else if (cmptName ==
"z")
59 <<
"Given component name " << cmptName <<
" should be x, y or z"
78 cmptName_(coeffDict().lookup(
"component")),
79 cmpt_(cmpt(cmptName_)),
87 mesh.time().constant(),
100 "pointDisplacement" + cmptName_,
114 <<
" read from file "
165 forAll(newPoints0, pointi)
173 if (masterPointi == pointi)
175 newPoints0[pointi] = points0_[oldPointi];
188 <<
"Cannot work out coordinates of introduced vertices."
189 <<
" New vertex " << pointi <<
" at coordinate "
193 points0_.transfer(newPoints0);
199 points0_ = mesh().points().component(cmpt_);
200 pointDisplacement_ ==
Zero;
#define forAll(list, i)
Loop across all elements in list.
A primitive field of type <Type> with automated input and output.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
void size(const label)
Override size to be inconsistent with allocated storage.
static const word & constant()
Return constant name.
Virtual base class for displacement motion solver.
scalarField points0_
Reference point field for this component.
virtual void topoChange(const polyTopoChangeMap &)
Update local data for topology changes.
virtual void distribute(const polyDistributionMap &)
Update corresponding to the given distribution map.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
virtual void movePoints(const pointField &)
Update local data for geometry changes.
componentDisplacementMotionSolver(const word &name, const polyMesh &, const dictionary &, const word &type)
Construct from polyMesh and dictionary and type.
virtual ~componentDisplacementMotionSolver()
Destructor.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Virtual base class for mesh motion solver.
const polyMesh & mesh() const
Return reference to mesh.
const Time & time() const
Return time.
Mesh representing a set of points created from polyMesh.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Mesh consisting of general polyhedral cells.
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const labelList & reversePointMap() const
Reverse point map.
const labelList & pointMap() const
Old point map.
Templated form of IOobject providing type information for file reading and header type checking.
fileName filePath() const
Return the path for the file for this Type.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const bool)
Return a word representation of a bool.
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
defineTypeNameAndDebug(combustionModel, 0)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Type gMin(const FieldField< Field, Type > &f)
Type gMax(const FieldField< Field, Type > &f)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.