pointPatch with explicitly provided points instead of using the points of a polyPatch. More...
#include <meshPointPatch.H>


Public Member Functions | |
| TypeName ("meshPoint") | |
| Runtime type information. | |
| meshPointPatch (const word &name, const labelUList &meshPoints, const List< pointConstraint > &constraints, const label index, const pointBoundaryMesh &bm, const word &patchType) | |
| Construct from components. | |
| meshPointPatch (const word &name, const labelUList &meshPoints, const vectorField &pointNormals, const label index, const pointBoundaryMesh &bm, const word &patchType) | |
| Construct from single-constraint (i.e. slip, provided normals). | |
| meshPointPatch (const word &name, const dictionary &dict, const label index, const pointBoundaryMesh &bm, const word &patchType) | |
| Construct from dictionary. | |
| meshPointPatch (const meshPointPatch &pp, const pointBoundaryMesh &bm, const label index, const labelUList &mapAddressing, const labelUList &reversePointMap) | |
| Construct given the original patch and a map. | |
| virtual autoPtr< pointPatch > | clone (const pointBoundaryMesh &bm, const label index, const labelUList &mapAddressing, const labelUList &reversePointMap) const |
| Construct and return a subset clone, resetting the point list and boundary mesh. | |
| virtual | ~meshPointPatch ()=default |
| Destructor. | |
| virtual label | size () const |
| Return size. | |
| virtual const labelList & | meshPoints () const |
| Return mesh points. | |
| virtual const List< pointConstraint > & | constraints () const |
| Return constraints. | |
| virtual const pointField & | localPoints () const |
| Return pointField of points in patch. | |
| virtual const vectorField & | pointNormals () const |
| Return point unit normals. Assumes single constraint. | |
| virtual void | write (Ostream &) const |
| Write the pointPatch data as a dictionary. | |
| Public Member Functions inherited from pointPatch | |
| TypeName ("basePatch") | |
| Runtime type information. | |
| declareRunTimeSelectionTable (autoPtr, pointPatch, dictionary,(const word &name, const dictionary &dict, const label index, const pointBoundaryMesh &bm, const word &patchType),(name, dict, index, bm, patchType)) | |
| pointPatch (const word &name, const label index, const pointBoundaryMesh &bm, const word &physicalType, const wordList &inGroups) | |
| Construct from components. | |
| pointPatch (const word &name, const dictionary &dict, const label index, const pointBoundaryMesh &bm) | |
| Construct from dictionary. | |
| pointPatch (const pointPatch &pp, const pointBoundaryMesh &bm, const label index, const labelUList &mapAddressing, const labelUList &reversePointMap) | |
| Construct given the original patch and a map. | |
| virtual | ~pointPatch ()=default |
| Destructor. | |
| const pointBoundaryMesh & | boundaryMesh () const |
| Return boundaryMesh reference. | |
| virtual bool | coupled () const |
| Return true if this patch field is coupled. | |
| virtual const word & | constraintType () const |
| Return the constraint type this pointPatch implements. | |
| virtual void | applyConstraint (const label pointi, pointConstraint &) const |
| Accumulate the effect of constraint direction of this patch. | |
| Public Member Functions inherited from patchIdentifier | |
| patchIdentifier (const patchIdentifier &)=default | |
| Copy construct. | |
| patchIdentifier (patchIdentifier &&)=default | |
| Move construct. | |
| patchIdentifier & | operator= (const patchIdentifier &)=default |
| Copy assignment. | |
| patchIdentifier & | operator= (patchIdentifier &&)=default |
| Move assignment. | |
| virtual | ~patchIdentifier ()=default |
| Destructor. | |
| patchIdentifier () | |
| Default construct: name="", index=0. | |
| patchIdentifier (const word &name, const label index) | |
| Construct from mandatory components. | |
| patchIdentifier (const word &name, const label index, const word &physicalType, const wordList &inGroups=wordList()) | |
| Construct from components. | |
| patchIdentifier (const word &name, const dictionary &dict, const label index) | |
| Construct from dictionary. | |
| patchIdentifier (const patchIdentifier &ident, const label newIndex) | |
| Copy construct, resetting the index (if non-negative). | |
| patchIdentifier (patchIdentifier &&ident, const label newIndex) | |
| Move construct, resetting the index (if non-negative). | |
| const word & | name () const noexcept |
| The patch name. | |
| word & | name () noexcept |
| Modifiable patch name. | |
| label | index () const noexcept |
| The index of this patch in the boundaryMesh. | |
| label & | index () noexcept |
| Modifiable index of this patch in the boundaryMesh. | |
| const word & | physicalType () const noexcept |
| The (optional) physical type of the patch. | |
| word & | physicalType () noexcept |
| Modifiable (optional) physical type of the patch. | |
| const wordList & | inGroups () const noexcept |
| The (optional) groups that the patch belongs to. | |
| wordList & | inGroups () noexcept |
| Modifiable (optional) groups that the patch belongs to. | |
| bool | inGroup (const word &name) const |
| True if given name is in a group. | |
| void | addGroup (const word &name) |
| Add (unique) group for the patch. | |
| void | removeGroup (const word &name) |
| Remove group for the patch. | |
| void | write (Ostream &os) const |
| Write (physicalType, inGroups) dictionary entries (without surrounding braces). | |
Protected Member Functions | |
| virtual void | movePoints (PstreamBuffers &, const pointField &) |
| Correct patches after moving points. | |
| virtual void | updateMesh (PstreamBuffers &) |
| Update of the patch topology. | |
| Protected Member Functions inherited from pointPatch | |
| virtual void | initGeometry (PstreamBuffers &) |
| Initialise the calculation of the patch geometry. | |
| virtual void | calcGeometry (PstreamBuffers &) |
| Calculate the patch geometry. | |
| virtual void | initMovePoints (PstreamBuffers &, const pointField &) |
| Initialise the patches for moving points. | |
| virtual void | initUpdateMesh (PstreamBuffers &) |
| Initialise the update of the patch topology. | |
| pointPatch (const pointPatch &)=delete | |
| No copy construct. | |
| void | operator= (const pointPatch &)=delete |
| No copy assignment. | |
Protected Attributes | |
| const labelList | meshPoints_ |
| Explicit mesh points. | |
| const List< pointConstraint > | constraints_ |
| autoPtr< pointField > | localPointsPtr_ |
| Demand-driven local points. | |
| autoPtr< pointField > | pointNormalsPtr_ |
| Demand-driven local normals (assumes constructed with pointNormals. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from pointPatch | |
| 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. | |
| Static Public Member Functions inherited from patchIdentifier | |
| static word | defaultName (const label n=-1) |
| Default patch name: "patch" or "patchN". | |
pointPatch with explicitly provided points instead of using the points of a polyPatch.
Note: does not constrain displacement - is not a constraint patch.
Definition at line 53 of file meshPointPatch.H.
| meshPointPatch | ( | const word & | name, |
| const labelUList & | meshPoints, | ||
| const List< pointConstraint > & | constraints, | ||
| const label | index, | ||
| const pointBoundaryMesh & | bm, | ||
| const word & | patchType ) |
Construct from components.
Definition at line 65 of file meshPointPatch.C.
References constraints(), constraints_, patchIdentifier::index(), meshPoints(), meshPoints_, Foam::name(), pointPatch::pointBoundaryMesh, and pointPatch::pointPatch().

| meshPointPatch | ( | const word & | name, |
| const labelUList & | meshPoints, | ||
| const vectorField & | pointNormals, | ||
| const label | index, | ||
| const pointBoundaryMesh & | bm, | ||
| const word & | patchType ) |
Construct from single-constraint (i.e. slip, provided normals).
Definition at line 89 of file meshPointPatch.C.
References constraints_, patchIdentifier::index(), Foam::makeConstraints(), meshPoints(), meshPoints_, Foam::name(), pointPatch::pointBoundaryMesh, pointNormals(), and pointPatch::pointPatch().

| meshPointPatch | ( | const word & | name, |
| const dictionary & | dict, | ||
| const label | index, | ||
| const pointBoundaryMesh & | bm, | ||
| const word & | patchType ) |
Construct from dictionary.
Definition at line 113 of file meshPointPatch.C.
References constraints_, dict, patchIdentifier::index(), meshPoints_, Foam::name(), pointPatch::pointBoundaryMesh, and pointPatch::pointPatch().

| meshPointPatch | ( | const meshPointPatch & | pp, |
| const pointBoundaryMesh & | bm, | ||
| const label | index, | ||
| const labelUList & | mapAddressing, | ||
| const labelUList & | reversePointMap ) |
Construct given the original patch and a map.
Definition at line 128 of file meshPointPatch.C.
References constraints(), patchIdentifier::index(), meshPoints(), Foam::name(), pointPatch::pointBoundaryMesh, and pp().

|
virtualdefault |
Destructor.
|
protectedvirtual |
Correct patches after moving points.
Reimplemented from pointPatch.
Definition at line 151 of file meshPointPatch.C.
References localPointsPtr_, and p.
|
protectedvirtual |
Update of the patch topology.
Reimplemented from pointPatch.
Definition at line 174 of file meshPointPatch.C.
References localPointsPtr_, and pointNormalsPtr_.
| TypeName | ( | "meshPoint" | ) |
Runtime type information.
References constraints(), dict, patchIdentifier::index(), meshPoints(), Foam::name(), pointPatch::pointBoundaryMesh, pointNormals(), and pp().

|
inlinevirtual |
Construct and return a subset clone, resetting the point list and boundary mesh.
Implements pointPatch.
Definition at line 173 of file meshPointPatch.H.
References patchIdentifier::index(), autoPtr< T >::NewFrom(), and pointPatch::pointBoundaryMesh.

|
inlinevirtual |
Return size.
Implements pointPatch.
Definition at line 203 of file meshPointPatch.H.
References meshPoints(), and UList< T >::size().
Referenced by pointNormals().


|
inlinevirtual |
Return mesh points.
Implements pointPatch.
Definition at line 211 of file meshPointPatch.H.
References meshPoints_.
Referenced by localPoints(), meshPointPatch(), meshPointPatch(), meshPointPatch(), size(), TypeName(), and write().

|
inlinevirtual |
Return constraints.
Definition at line 219 of file meshPointPatch.H.
References constraints_.
Referenced by meshPointPatch(), meshPointPatch(), TypeName(), and write().

|
virtual |
Return pointField of points in patch.
Implements pointPatch.
Definition at line 182 of file meshPointPatch.C.
References pointPatch::boundaryMesh(), localPointsPtr_, mesh, meshPoints(), and points.

|
virtual |
Return point unit normals. Assumes single constraint.
Implements pointPatch.
Definition at line 199 of file meshPointPatch.C.
References constraints_, forAll, pointNormals(), pointNormalsPtr_, and size().
Referenced by meshPointPatch(), pointNormals(), and TypeName().


|
virtual |
Write the pointPatch data as a dictionary.
Reimplemented from pointPatch.
Definition at line 214 of file meshPointPatch.C.
References constraints(), meshPoints(), os(), and pointPatch::write().

|
protected |
Explicit mesh points.
Definition at line 79 of file meshPointPatch.H.
Referenced by meshPointPatch(), meshPointPatch(), meshPointPatch(), and meshPoints().
|
protected |
Definition at line 81 of file meshPointPatch.H.
Referenced by constraints(), meshPointPatch(), meshPointPatch(), meshPointPatch(), and pointNormals().
|
mutableprotected |
Demand-driven local points.
Definition at line 86 of file meshPointPatch.H.
Referenced by localPoints(), movePoints(), and updateMesh().
|
mutableprotected |
Demand-driven local normals (assumes constructed with pointNormals.
or normal-only-constraint)
Definition at line 93 of file meshPointPatch.H.
Referenced by pointNormals(), and updateMesh().