Application of (multi-)patch point constraints. More...
Public Member Functions | |
ClassName ("pointConstraints") | |
pointConstraints (const pointMesh &) | |
Constructor from pointMesh. More... | |
~pointConstraints () | |
Destructor. More... | |
const labelList & | patchPatchPointConstraintPoints () const |
Mesh points on which to apply special constraints. More... | |
const tensorField & | patchPatchPointConstraintTensors () 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 |
![]() | |
MeshObject (const pointMesh &mesh) | |
Construct on Mesh type. More... | |
virtual | ~MeshObject ()=default |
Destructor. More... | |
const pointMesh & | mesh () 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 const pointConstraints & | New (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 | |
![]() | |
const pointMesh & | mesh_ |
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.
Definition at line 64 of file pointConstraints.H.
|
explicit |
Constructor from pointMesh.
Definition at line 339 of file pointConstraints.C.
References Foam::endl(), and Foam::Pout.
~pointConstraints | ( | ) |
Destructor.
Definition at line 356 of file pointConstraints.C.
References Foam::endl(), and Foam::Pout.
ClassName | ( | "pointConstraints" | ) |
|
inline |
Mesh points on which to apply special constraints.
Definition at line 113 of file pointConstraints.H.
|
inline |
Special constraints.
Definition at line 119 of file pointConstraints.H.
|
inline |
Actual constraints.
Definition at line 125 of file pointConstraints.H.
void updateMesh | ( | const mapPolyMesh & | ) |
Update mesh topology using the morph engine.
Definition at line 367 of file pointConstraints.C.
bool movePoints | ( | ) |
Correct weighting factors for moving mesh.
Definition at line 373 of file pointConstraints.C.
|
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().
|
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().
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().
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().
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().
void constrainCorners | ( | GeometricField< scalar, pointPatchField, pointMesh > & | pf | ) | const |
void constrainCorners | ( | GeometricField< label, pointPatchField, pointMesh > & | pf | ) | const |