pointConstraints Class Reference

Application of (multi-)patch point constraints. More...

Inheritance diagram for pointConstraints:
[legend]
Collaboration diagram for pointConstraints:
[legend]

Public Member Functions

 ClassName ("pointConstraints")
 
 pointConstraints (const pointMesh &)
 Constructor from pointMesh. More...
 
 ~pointConstraints ()
 Destructor. More...
 
const labelListpatchPatchPointConstraintPoints () const
 Mesh points on which to apply special constraints. More...
 
const tensorFieldpatchPatchPointConstraintTensors () const
 Special constraints. More...
 
const List< pointConstraint > & patchPatchPointConstraints () const
 Actual constraints. More...
 
void updateMesh (const mapPolyMesh &)
 Update mesh topology using the morph engine. More...
 
bool movePoints ()
 Correct weighting factors for moving mesh. More...
 
template<class Type >
void constrainCorners (GeometricField< Type, pointPatchField, pointMesh > &pf) const
 Apply patch-patch constraints only. More...
 
template<class Type >
void constrain (GeometricField< Type, pointPatchField, pointMesh > &pf, const bool overrideValue=false) const
 Apply boundary conditions (single-patch constraints) and. More...
 
void constrainDisplacement (pointVectorField &displacement, const bool overrideValue=false) const
 Apply boundary conditions (single-patch constraints),. More...
 
template<>
void constrainCorners (GeometricField< scalar, pointPatchField, pointMesh > &pf) const
 
template<>
void constrainCorners (GeometricField< label, pointPatchField, pointMesh > &pf) const
 
- Public Member Functions inherited from MeshObject< pointMesh, UpdateableMeshObject, pointConstraints >
 MeshObject (const pointMesh &mesh)
 Construct on Mesh type. More...
 
virtual ~MeshObject ()=default
 Destructor. More...
 
const pointMeshmesh () const
 
virtual bool writeData (Ostream &os) const
 

Static Public Member Functions

template<class Type , class CombineOp >
static void syncUntransformedData (const polyMesh &mesh, List< Type > &pointData, const CombineOp &cop)
 Helper: sync data on collocated points only. More...
 
template<class Type >
static void setPatchFields (GeometricField< Type, pointPatchField, pointMesh > &)
 Helper: set patchField values from internal values (on. More...
 
- Static Public Member Functions inherited from MeshObject< pointMesh, UpdateableMeshObject, pointConstraints >
static const pointConstraintsNew (const pointMesh &mesh, Args &&... args)
 Get existing or create a new MeshObject. More...
 
static bool Delete (const pointMesh &mesh)
 Static destructor. More...
 

Additional Inherited Members

- Protected Attributes inherited from MeshObject< pointMesh, UpdateableMeshObject, pointConstraints >
const pointMeshmesh_
 

Detailed Description

Application of (multi-)patch point constraints.

Note: includes all points which are on the boundary of a patch with a constraint. It includes them (even though the constraint will already be implemented through the patch evaluation) since these points might be coupled to points which are not on any constraint patch and we don't want to get inconsistency between the two points.

Source files

Definition at line 64 of file pointConstraints.H.

Constructor & Destructor Documentation

◆ pointConstraints()

pointConstraints ( const pointMesh pm)
explicit

Constructor from pointMesh.

Definition at line 339 of file pointConstraints.C.

References Foam::endl(), and Foam::Pout.

Here is the call graph for this function:

◆ ~pointConstraints()

Destructor.

Definition at line 356 of file pointConstraints.C.

References Foam::endl(), and Foam::Pout.

Here is the call graph for this function:

Member Function Documentation

◆ ClassName()

ClassName ( "pointConstraints"  )

◆ patchPatchPointConstraintPoints()

const labelList & patchPatchPointConstraintPoints ( ) const
inline

Mesh points on which to apply special constraints.

Definition at line 113 of file pointConstraints.H.

◆ patchPatchPointConstraintTensors()

const tensorField & patchPatchPointConstraintTensors ( ) const
inline

Special constraints.

Definition at line 119 of file pointConstraints.H.

◆ patchPatchPointConstraints()

const List< pointConstraint > & patchPatchPointConstraints ( ) const
inline

Actual constraints.

Definition at line 125 of file pointConstraints.H.

◆ updateMesh()

void updateMesh ( const mapPolyMesh )

Update mesh topology using the morph engine.

Definition at line 367 of file pointConstraints.C.

◆ movePoints()

bool movePoints ( )

Correct weighting factors for moving mesh.

Definition at line 373 of file pointConstraints.C.

◆ syncUntransformedData()

void syncUntransformedData ( const polyMesh mesh,
List< Type > &  pointData,
const CombineOp &  cop 
)
static

Helper: sync data on collocated points only.

Definition at line 35 of file pointConstraintsTemplates.C.

References mapDistributeBase::constructSize(), globalMeshData::coupledPatch(), mapDistribute::distribute(), forAll, globalMeshData::globalCoPointSlaves(), globalMeshData::globalCoPointSlavesMap(), pointMesh::globalData(), MeshObject< pointMesh, UpdateableMeshObject, pointConstraints >::mesh(), PrimitivePatch< FaceList, PointField >::meshPoints(), mapDistribute::reverseDistribute(), and UList< T >::size().

Referenced by volPointInterpolation::interpolateBoundaryField(), and volPointInterpolation::interpolateDimensionedInternalField().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setPatchFields()

void setPatchFields ( GeometricField< Type, pointPatchField, pointMesh > &  pf)
static

Helper: set patchField values from internal values (on.

valuePointPatchFields). Opposite of pointPatchField::setInInternalField

Definition at line 91 of file pointConstraintsTemplates.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryFieldRef(), forAll, Foam::isA(), and pointPatchField< Type >::patchInternalField().

Here is the call graph for this function:

◆ constrainCorners() [1/3]

void constrainCorners ( GeometricField< Type, pointPatchField, pointMesh > &  pf) const

Apply patch-patch constraints only.

Definition at line 113 of file pointConstraintsTemplates.C.

References forAll, and Foam::transform().

Here is the call graph for this function:

◆ constrain()

void constrain ( GeometricField< Type, pointPatchField, pointMesh > &  pf,
const bool  overrideValue = false 
) const

Apply boundary conditions (single-patch constraints) and.

patch-patch constraints on generic pointField. Optionally override valuePointPatchFields with constrained values (see setPatchFields above)

Definition at line 130 of file pointConstraintsTemplates.C.

References GeometricField< Type, PatchField, GeoMesh >::correctBoundaryConditions(), mesh, and GeometricField< Type, PatchField, GeoMesh >::primitiveFieldRef().

Referenced by volPointInterpolation::interpolateBoundaryField().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ constrainDisplacement()

void constrainDisplacement ( pointVectorField displacement,
const bool  overrideValue = false 
) const

Apply boundary conditions (single-patch constraints),.

patch-patch constraints and two-D constraints on displacement field

Definition at line 379 of file pointConstraints.C.

References GeometricField< Type, PatchField, GeoMesh >::correctBoundaryConditions(), mesh, DimensionedField< Type, GeoMesh >::mesh(), Time::New(), points, and GeometricField< Type, PatchField, GeoMesh >::primitiveFieldRef().

Referenced by volPointInterpolation::interpolateDisplacement(), and displacementLayeredMotionMotionSolver::solve().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ constrainCorners() [2/3]

void constrainCorners ( GeometricField< scalar, pointPatchField, pointMesh > &  pf) const

◆ constrainCorners() [3/3]

void constrainCorners ( GeometricField< label, pointPatchField, pointMesh > &  pf) const

The documentation for this class was generated from the following files: