37 template<
class Type,
class CombineOp>
56 elems[i] = pointData[meshPoints[i]];
65 Type& elem = elems[i];
72 cop(elem, elems[slavePoints[j]]);
78 elems[slavePoints[j]] = elem;
88 pointData[meshPoints[i]] = elems[i];
105 refCast<valuePointPatchField<Type> >(ppf) =
118 forAll(patchPatchPointConstraintPoints_, pointi)
120 pf[patchPatchPointConstraintPoints_[pointi]] =
transform 122 patchPatchPointConstraintTensors_[pointi],
123 pf[patchPatchPointConstraintPoints_[pointi]]
133 const bool overrideFixedValue
145 constrainCorners(pf);
147 if (overrideFixedValue)
void constrain(GeometricField< Type, pointPatchField, pointMesh > &pf, const bool overrideValue=false) const
Apply boundary conditions (single-patch constraints) and.
const mapDistribute & globalCoPointSlavesMap() const
const indirectPrimitivePatch & coupledPatch() const
Return patch of all coupled faces.
static void distribute(const Pstream::commsTypes commsType, const List< labelPair > &schedule, const label constructSize, const labelListList &subMap, const labelListList &constructMap, List< T > &, const int tag=UPstream::msgType())
Distribute data. Note:schedule only used for Pstream::scheduled.
GeometricBoundaryField & boundaryField()
Return reference to GeometricBoundaryField.
Class containing processor-to-processor mapping information.
const labelListList & globalCoPointSlaves() const
InternalField & internalField()
Return internal field.
void constrainCorners(GeometricField< Type, pointPatchField, pointMesh > &pf) const
Apply patch-patch constraints only.
static void syncUntransformedData(const polyMesh &mesh, List< Type > &pointData, const CombineOp &cop)
Helper: sync data on collocated points only.
static void setPatchFields(GeometricField< Type, pointPatchField, pointMesh > &)
Helper: set patchField values from internal values (on.
void reverseDistribute(const label constructSize, List< T > &, const bool dummyTransform=true, const int tag=UPstream::msgType()) const
Reverse distribute data using default commsType.
Abstract base class for point-mesh patch fields.
dimensionSet transform(const dimensionSet &)
const labelList & meshPoints() const
Return labelList of mesh points in patch. They are constructed.
A list of faces which address into the list of points.
Various mesh related information for a parallel run. Upon construction, constructs all info using par...
Generic GeometricField class.
Mesh consisting of general polyhedral cells.
tmp< Field< Type > > patchInternalField() const
Return field created from appropriate internal field values.
void correctBoundaryConditions()
Correct boundary field.
Foam::valuePointPatchField.
bool isA(const Type &t)
Check if a dynamic_cast to typeid is possible.
const globalMeshData & globalData() const
Return parallel info.
label constructSize() const
Constructed data size.