48 else if (cmptName ==
"y")
52 else if (cmptName ==
"z")
59 <<
"Given component name " << cmptName <<
" should be x, y or z" 69 Foam::componentDisplacementMotionSolver::componentDisplacementMotionSolver
77 cmptName_(coeffDict().
lookup(
"component")),
78 cmpt_(cmpt(cmptName_)),
99 "pointDisplacement" + cmptName_,
108 if (points0_.size() != mesh.
nPoints())
111 <<
"Number of points in mesh " << mesh.
nPoints()
112 <<
" differs from number of points " << points0_.size()
113 <<
" read from file " 114 << typeFilePath<pointIOField>
171 forAll(newPoints0, pointi)
179 if (masterPointi == pointi)
181 newPoints0[pointi] = points0_[oldPointi];
194 <<
"Cannot work out coordinates of introduced vertices." 195 <<
" New vertex " << pointi <<
" at coordinate " 199 points0_.transfer(newPoints0);
#define forAll(list, i)
Loop across all elements in list.
const labelList & reversePointMap() const
Reverse point map.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Type gMin(const FieldField< Field, Type > &f)
virtual void updateMesh(const mapPolyMesh &)
Update local data for topology changes.
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
void size(const label)
Override size to be inconsistent with allocated storage.
Virtual base class for mesh motion solver.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
bool hasMotionPoints() const
Has valid preMotionPoints?
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
static const pointMesh & New(const polyMesh &mesh)
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
virtual const pointField & points() const
Return raw points.
stressControl lookup("compactNormalStress") >> compactNormalStress
virtual void updateMesh(const mapPolyMesh &)=0
Update local data for topology changes.
A class for handling words, derived from string.
virtual void movePoints(const pointField &)
Update local data for geometry changes.
const word & constant() const
Return constant name.
tmp< Field< cmptType > > component(const direction) const
Return a component field of the field.
Type gMax(const FieldField< Field, Type > &f)
const Time & time() const
Return time.
defineTypeNameAndDebug(combustionModel, 0)
const labelList & pointMap() const
Old point map.
Mesh consisting of general polyhedral cells.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
A primitive field of type <T> with automated input and output.
const pointField & preMotionPoints() const
Pre-motion point positions.
virtual ~componentDisplacementMotionSolver()
Destructor.