33 namespace pointMeshMovers
51 else if (cmptName ==
"y")
55 else if (cmptName ==
"z")
62 <<
"Given component name " << cmptName <<
" should be x, y or z"
81 cmpt_(cmpt(cmptName_)),
102 "pointDisplacement" + cmptName_,
116 <<
" read from file "
170 forAll(newPoints0, pointi)
178 if (masterPointi == pointi)
180 newPoints0[pointi] = points0_[oldPointi];
193 <<
"Cannot work out coordinates of introduced vertices."
194 <<
" New vertex " << pointi <<
" at coordinate "
198 points0_.transfer(newPoints0);
207 points0_ = poly().points().component(cmpt_);
208 pointDisplacement_ ==
Zero;
#define forAll(list, i)
Loop across all elements in list.
A primitive field of type <Type> with automated input and output.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
void size(const label)
Override size to be inconsistent with allocated storage.
static const word & constant()
Return constant name.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
const Time & time() const
Return the top-level database.
Abstract base class for pointMesh movers.
Abstract base class for component displacement pointMesh movers.
scalarField points0_
Reference point field for this component.
virtual void topoChange(const polyTopoChangeMap &)
Update local data for topology changes.
virtual void distribute(const polyDistributionMap &)
Update corresponding to the given distribution map.
virtual ~displacementComponent()
Destructor.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
virtual void movePoints(const pointField &)
Update local data for geometry changes.
displacementComponent(const polyMesh &, const dictionary &, const word &type)
Construct from polyMesh and dictionary and type.
Mesh representing a set of points created from polyMesh.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Mesh consisting of general polyhedral cells.
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const labelList & reversePointMap() const
Reverse point map.
const labelList & pointMap() const
Old point map.
Templated form of IOobject providing type information for file reading and header type checking.
fileName filePath() const
Return the path for the file for this Type.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
defineTypeNameAndDebug(externalDisplacement, 0)
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
Type gMin(const UList< Type > &f, const label comm)
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void component(GeometricField< typename GeometricField< Type, GeoMesh, PrimitiveField1 >::cmptType, GeoMesh, PrimitiveField1 > &gcf, const GeometricField< Type, GeoMesh, PrimitiveField2 > &gf, const direction d)
Type gMax(const UList< Type > &f, const label comm)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
tmp< DimensionedField< TypeR, GeoMesh, Field > > New(const tmp< DimensionedField< TypeR, GeoMesh, Field >> &tdf1, const word &name, const dimensionSet &dimensions)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.