Go to the documentation of this file.
51 else if (cmptName ==
"y")
55 else if (cmptName ==
"z")
62 <<
"Given component name " << cmptName <<
" should be x, y or z"
72 Foam::componentDisplacementMotionSolver::componentDisplacementMotionSolver
80 cmptName_(coeffDict().get<word>(
"component")),
81 cmpt_(cmpt(cmptName_)),
102 "pointDisplacement" + cmptName_,
115 <<
" differs from number of points " << points0_.size()
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);
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
virtual const pointField & points() const
Return raw points.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
A class for handling words, derived from Foam::string.
A primitive field of type <T> with automated input and output.
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
static const pointMesh & New(const polyMesh &mesh, Args &&... args)
Get existing or create a new MeshObject.
static word timeName(const scalar t, const int precision=precision_)
const pointField & preMotionPoints() const
Pre-motion point positions.
virtual void movePoints(const pointField &)
Update local data for geometry changes.
Mesh consisting of general polyhedral cells.
label nPoints() const noexcept
Number of mesh points.
#define forAll(list, i)
Loop across all elements in list.
virtual void updateMesh(const mapPolyMesh &)
Update local data for topology changes.
virtual ~componentDisplacementMotionSolver()
Destructor.
tmp< Field< cmptType > > component(const direction) const
Return a component field of the field.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Virtual base class for mesh motion solver.
const labelList & reversePointMap() const
Reverse point map.
const labelList & pointMap() const
Old point map.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
virtual void updateMesh(const mapPolyMesh &)=0
Update local data for topology changes.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
bool hasMotionPoints() const
Has valid preMotionPoints?
const Time & time() const
Return the top-level database.
Type gMin(const FieldField< Field, Type > &f)
const word & constant() const
Return constant name.
constant condensation/saturation model.
defineTypeNameAndDebug(combustionModel, 0)
Type gMax(const FieldField< Field, Type > &f)