38#ifndef Foam_pointPatch_H
39#define Foam_pointPatch_H
134 const word& patchType
214 virtual label
size()
const = 0;
219 return boundaryMesh_;
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Buffers for inter-processor communications streams (UOPstream, UIPstream).
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const word & physicalType() const noexcept
The (optional) physical type of the patch.
const wordList & inGroups() const noexcept
The (optional) groups that the patch belongs to.
label index() const noexcept
The index of this patch in the boundaryMesh.
const word & name() const noexcept
The patch name.
patchIdentifier(const patchIdentifier &)=default
Copy construct.
A pointBoundaryMesh is a pointPatch list with registered IO, a reference to the associated pointMesh,...
Accumulates point constraints through successive applications of the applyConstraint function.
Basic pointPatch represents a set of points from the mesh.
virtual void movePoints(PstreamBuffers &, const pointField &)
Correct patches after moving points.
virtual void applyConstraint(const label pointi, pointConstraint &) const
Accumulate the effect of constraint direction of this patch.
virtual const labelList & meshPoints() const =0
Return mesh points.
pointPatch(const word &name, const dictionary &dict, const label index, const pointBoundaryMesh &bm)
Construct from dictionary.
friend Ostream & operator<<(Ostream &, const pointPatch &)
virtual bool coupled() const
Return true if this patch field is coupled.
virtual void initGeometry(PstreamBuffers &)
Initialise the calculation of the patch geometry.
virtual autoPtr< pointPatch > clone(const pointBoundaryMesh &bm, const label index, const labelUList &mapAddressing, const labelUList &reversePointMap) const =0
Construct and return a subset clone, resetting the point list and boundary mesh.
virtual const word & constraintType() const
Return the constraint type this pointPatch implements.
virtual const vectorField & localPoints() const =0
Return pointField of points in patch.
pointPatch(const word &name, const label index, const pointBoundaryMesh &bm, const word &physicalType, const wordList &inGroups)
Construct from components.
declareRunTimeSelectionTable(autoPtr, pointPatch, dictionary,(const word &name, const dictionary &dict, const label index, const pointBoundaryMesh &bm, const word &patchType),(name, dict, index, bm, patchType))
const pointBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
friend class pointBoundaryMesh
TypeName("basePatch")
Runtime type information.
virtual void initUpdateMesh(PstreamBuffers &)
Initialise the update of the patch topology.
virtual ~pointPatch()=default
Destructor.
virtual label size() const =0
Return size.
pointPatch(const pointPatch &)=delete
No copy construct.
pointPatch(const pointPatch &pp, const pointBoundaryMesh &bm, const label index, const labelUList &mapAddressing, const labelUList &reversePointMap)
Construct given the original patch and a map.
void operator=(const pointPatch &)=delete
No copy assignment.
virtual void calcGeometry(PstreamBuffers &)
Calculate the patch geometry.
static autoPtr< pointPatch > New(const word &name, const dictionary &dict, const label index, const pointBoundaryMesh &)
Return a pointer to a new patch created on freestore. Returns null if not found.
virtual void updateMesh(PstreamBuffers &)
Update of the patch topology.
virtual void initMovePoints(PstreamBuffers &, const pointField &)
Initialise the patches for moving points.
virtual const vectorField & pointNormals() const =0
Return point unit normals.
A class for handling words, derived from Foam::string.
static const word null
An empty word.
List< word > wordList
List of word.
List< label > labelList
A List of labels.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
PtrList< pointPatch > pointPatchList
Store lists of pointPatch as a PtrList.
Field< vector > vectorField
Specialisation of Field<T> for vector.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
vectorField pointField
pointField is a vectorField.
UList< label > labelUList
A UList of labels.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes).
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.