34template<
class Type,
class CombineOp>
53 elems[i] = pointData[meshPoints[i]];
62 Type& elem = elems[i];
69 cop(elem, elems[slavePoints[j]]);
75 elems[slavePoints[j]] = elem;
85 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
142 syncUntransformedData
150 constrainCorners(pf);
152 if (overrideFixedValue)
Generic GeometricField class.
Internal::FieldType & primitiveFieldRef(const bool updateAccessTime=true)
Return a reference to the internal field.
Boundary & boundaryFieldRef(const bool updateAccessTime=true)
Return a reference to the boundary field.
void correctBoundaryConditions()
Correct boundary field.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const pointMesh & mesh() const
A list of faces which address into the list of points.
const labelList & meshPoints() const
Return labelList of mesh points in patch.
void size(const label n)
Older name for setAddressableSize.
Various mesh related information for a parallel run. Upon construction, constructs all info using par...
const mapDistribute & globalCoPointSlavesMap() const
const labelListList & globalCoPointSlaves() const
const indirectPrimitivePatch & coupledPatch() const
Return patch of all coupled faces.
label constructSize() const noexcept
Constructed data size.
Class containing processor-to-processor mapping information.
void reverseDistribute(const label constructSize, List< T > &fld, const bool dummyTransform=true, const int tag=UPstream::msgType()) const
Reverse distribute data using default commsType.
void distribute(List< T > &fld, const bool dummyTransform=true, const int tag=UPstream::msgType()) const
Distribute data using default commsType.
void constrain(GeometricField< Type, pointPatchField, pointMesh > &pf, const bool overrideValue=false) const
Apply boundary conditions (single-patch constraints) and.
static void setPatchFields(GeometricField< Type, pointPatchField, pointMesh > &)
Helper: set patchField values from internal values (on.
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.
const globalMeshData & globalData() const
Return parallel info.
Abstract base class for point-mesh patch fields.
tmp< Field< Type > > patchInternalField() const
Return field created from appropriate internal field values.
Mesh consisting of general polyhedral cells.
Foam::valuePointPatchField.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
const TargetType * isA(const Type &t)
Check if dynamic_cast to TargetType is possible.
#define forAll(list, i)
Loop across all elements in list.