48 else if (cmptName ==
"y")
52 else if (cmptName ==
"z")
59 <<
"Given component name " << cmptName <<
" should be x, y or z"
78 cmptName_(
dict.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);
200 pointDisplacement_ ==
Zero;
#define forAll(list, i)
Loop across all elements in list.
tmp< Field< cmptType > > component(const direction) const
Return a component field of the field.
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 keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
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.
virtual const pointField & points() const
Return raw points.
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.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#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.
void component(LagrangianPatchField< typename LagrangianPatchField< Type >::cmptType > &sf, const LagrangianPatchField< Type > &f, const direction d)
defineTypeNameAndDebug(combustionModel, 0)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
Type gMin(const FieldField< Field, Type > &f)
tmp< DimensionedField< TypeR, GeoMesh, Field > > New(const tmp< DimensionedField< TypeR, GeoMesh, Field >> &tdf1, const word &name, const dimensionSet &dimensions)
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.