32 template<
class Type,
class CombineOp>
51 elems[i] = pointData[meshPoints[i]];
60 Type& elem = elems[i];
67 cop(elem, elems[slavePoints[j]]);
73 elems[slavePoints[j]] = elem;
83 pointData[meshPoints[i]] = elems[i];
103 refCast<valuePointPatchField<Type>>(ppf) =
116 forAll(patchPatchPointConstraintPoints_, pointi)
118 pf[patchPatchPointConstraintPoints_[pointi]] =
transform 120 patchPatchPointConstraintTensors_[pointi],
121 pf[patchPatchPointConstraintPoints_[pointi]]
131 const bool overrideFixedValue
140 syncUntransformedData
148 constrainCorners(pf);
150 if (overrideFixedValue)
bool isA(const Type &t)
Check if a dynamic_cast to typeid is possible.
#define forAll(list, i)
Loop across all elements in list.
Foam::valuePointPatchField.
void reverseDistribute(const label constructSize, List< T > &, const bool dummyTransform=true, const int tag=UPstream::msgType()) const
Reverse distribute data using default commsType.
Various mesh related information for a parallel run. Upon construction, constructs all info using par...
void distribute(List< T > &fld, const bool dummyTransform=true, const int tag=UPstream::msgType()) const
Distribute data using default commsType.
const labelList & meshPoints() const
Return labelList of mesh points in patch. They are constructed.
Abstract base class for point-mesh patch fields.
A list of faces which address into the list of points.
static void syncUntransformedData(const polyMesh &mesh, List< Type > &pointData, const CombineOp &cop)
Helper: sync data on collocated points only.
void constrainCorners(GeometricField< Type, pointPatchField, pointMesh > &pf) const
Apply patch-patch constraints only.
static void setPatchFields(GeometricField< Type, pointPatchField, pointMesh > &)
Helper: set patchField values from internal values (on.
const globalMeshData & globalData() const
Return parallel info.
tmp< Field< Type > > patchInternalField() const
Return field created from appropriate internal field values.
label constructSize() const
Constructed data size.
Internal::FieldType & primitiveFieldRef()
Return a reference to the internal field.
const indirectPrimitivePatch & coupledPatch() const
Return patch of all coupled faces.
Class containing processor-to-processor mapping information.
Boundary & boundaryFieldRef()
Return a reference to the boundary field.
void correctBoundaryConditions()
Correct boundary field.
Mesh consisting of general polyhedral cells.
void constrain(GeometricField< Type, pointPatchField, pointMesh > &pf, const bool overrideValue=false) const
Apply boundary conditions (single-patch constraints) and.
const distributionMap & globalCoPointSlavesMap() const
dimensionSet transform(const dimensionSet &)
const labelListList & globalCoPointSlaves() const