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
75 const IOdictionary&
dict,
80 cmptName_(coeffDict().
get<word>(
"component")),
81 cmpt_(cmpt(cmptName_)),
102 "pointDisplacement" + cmptName_,
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);
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
void size(const label n)
Older name for setAddressableSize.
const labelList & reversePointMap() const
Reverse point map.
errorManipArg< error, int > exit(error &err, const int errNo=1)
label nPoints() const noexcept
Number of mesh points.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Type gMin(const FieldField< Field, Type > &f)
vectorIOField pointIOField
pointIOField is a vectorIOField.
virtual void updateMesh(const mapPolyMesh &)
Update local data for topology changes.
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
Ignore writing from objectRegistry::writeObject()
bool hasMotionPoints() const
Has valid preMotionPoints?
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
virtual const pointField & points() const
Return raw points.
#define forAll(list, i)
Loop across all elements in list.
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.
const Time & time() const noexcept
Return time registry.
virtual void movePoints(const pointField &)
Update local data for geometry changes.
tmp< Field< cmptType > > component(const direction) const
Return a component field of the field.
const word & constant() const noexcept
Return constant name.
Type gMax(const FieldField< Field, Type > &f)
defineTypeNameAndDebug(combustionModel, 0)
const labelList & pointMap() const
Old point map.
PtrList< volScalarField > & Y
const polyMesh & mesh() const
Return reference to mesh.
scalarField points0_
Reference point field for this component.
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
Do not request registration (bool: false)
const pointField & preMotionPoints() const
Pre-motion point positions.
virtual ~componentDisplacementMotionSolver()
Destructor.