33 const label regionPatchi,
37 forAll(intCoupledPatchIDs_, i)
39 if (intCoupledPatchIDs_[i] == regionPatchi)
42 refCast<const mappedPatchBase>
44 regionMesh().boundaryMesh()[regionPatchi]
52 <<
"Region patch ID " << regionPatchi <<
" not found in region mesh" 57 template<
class Type,
class CombineOp>
60 const label regionPatchi,
65 forAll(intCoupledPatchIDs_, i)
67 if (intCoupledPatchIDs_[i] == regionPatchi)
70 refCast<const mappedPatchBase>
72 regionMesh().boundaryMesh()[regionPatchi]
80 <<
"Region patch ID " << regionPatchi <<
" not found in region mesh" 88 const label regionPatchi,
92 forAll(intCoupledPatchIDs_, i)
94 if (intCoupledPatchIDs_[i] == regionPatchi)
97 refCast<const mappedPatchBase>
99 regionMesh().boundaryMesh()[regionPatchi]
107 <<
"Region patch ID " << regionPatchi <<
" not found in region mesh" 116 const label regionPatchi,
121 const mappedPatchBase& mpb = refCast<const mappedPatchBase>(regionPatch);
137 forAll(intCoupledPatchIDs_, i)
139 const label regionPatchi = intCoupledPatchIDs_[i];
140 const label primaryPatchi = primaryPatchIDs_[i];
142 toRegion(rf, regionPatchi, pBf[primaryPatchi]);
#define forAll(list, i)
Loop across all elements in list.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const polyBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
void toPrimary(const label regionPatchi, List< Type > ®ionField) const
Convert a local region field to the primary region.
const labelUList & faceCells() const
Return face-cell addressing.
Pre-declare SubField and related Field type.
Determines a mapping between patch face centres and mesh cell or face centres and processors they're ...
errorManip< error > abort(error &err)
Functionality for sampling fields using mappedPatchBase. Every call to mappedField() returns a sample...
Generic GeometricBoundaryField class.
void distribute(List< Type > &lst) const
Wrapper around map/interpolate data distribution.
A List with indirect addressing.
void toRegion(const label regionPatchi, List< Type > &primaryFieldField) const
Convert a primary region field to the local region.
void reverseDistribute(List< Type > &lst) const
Wrapper around map/interpolate data distribution.
A patch is a list of labels that address the faces in the global face list.