Go to the documentation of this file.
48 else if (cmptName ==
"y")
52 else if (cmptName ==
"z")
59 <<
"Given component name " << cmptName <<
" should be x, y or z"
77 cmptName_(coeffDict().
lookup(
"component")),
78 cmpt_(cmpt(cmptName_)),
99 "pointDisplacement" + cmptName_,
100 mesh.time().timeName(),
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 "
118 mesh.time().constant(),
119 polyMesh::meshSubDir,
169 forAll(newPoints0, pointI)
177 if (masterPointI == pointI)
179 newPoints0[pointI] = points0_[oldPointI];
192 <<
"Cannot work out coordinates of introduced vertices."
193 <<
" New vertex " << pointI <<
" at coordinate "
197 points0_.transfer(newPoints0);
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
fileName filePath() const
Return complete path + object name if the file exists.
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 string.
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
#define forAll(list, i)
Loop across all elements in list.
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.
Constant dispersed-phase particle diameter model.
virtual void updateMesh(const mapPolyMesh &)
Update local data for topology changes.
direction cmpt(const word &cmptName) const
Return the component corresponding to the given component name.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
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.
componentDisplacementMotionSolver(const componentDisplacementMotionSolver &)
Disallow default bitwise copy construct.
const labelList & pointMap() const
Old point map.
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?
void size(const label)
Override size to be inconsistent with allocated storage.
Type gMin(const FieldField< Field, Type > &f)
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
defineTypeNameAndDebug(combustionModel, 0)
Type gMax(const FieldField< Field, Type > &f)
PtrList< volScalarField > & Y
stressControl lookup("compactNormalStress") >> compactNormalStress