Go to the documentation of this file.
50 else if (cmptName ==
"y")
54 else if (cmptName ==
"z")
61 <<
"Given component name " << cmptName <<
" should be x, y or z"
71 Foam::componentDisplacementMotionSolver::componentDisplacementMotionSolver
79 cmptName_(coeffDict().
lookup(
"component")),
80 cmpt_(cmpt(cmptName_)),
101 "pointDisplacement" + cmptName_,
114 <<
" differs from number of points " << points0_.size()
115 <<
" read from file "
116 << typeFilePath<pointIOField>
173 forAll(newPoints0, pointi)
181 if (masterPointi == pointi)
183 newPoints0[pointi] = points0_[oldPointi];
196 <<
"Cannot work out coordinates of introduced vertices."
197 <<
" New vertex " << pointi <<
" at coordinate "
201 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.
#define forAll(list, i)
Loop across all elements in list.
virtual void updateMesh(const mapPolyMesh &)
Update local data for topology changes.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const cellModel * lookup(const word &modelName)
Deprecated(2017-11) equivalent to cellModel::ptr static method.
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.
label nPoints() const
Number of mesh points.
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)