Go to the documentation of this file.
31 const label regionPatchI,
32 const label nbrPatchI,
37 int oldTag = UPstream::msgType();
38 UPstream::msgType() = oldTag + 1;
41 interRegionAMI(nbrRegion, regionPatchI, nbrPatchI, flip);
45 UPstream::msgType() = oldTag;
56 const word& fieldName,
57 const label regionPatchI,
65 if (nbrRegionMesh.
foundObject<fieldType>(fieldName))
67 const label nbrPatchI = nbrCoupledPatchID(nbrRegion, regionPatchI);
69 int oldTag = UPstream::msgType();
70 UPstream::msgType() = oldTag + 1;
73 interRegionAMI(nbrRegion, regionPatchI, nbrPatchI, flip);
75 const fieldType& nbrField =
78 const Field<Type>& nbrFieldp = nbrField.boundaryField()[nbrPatchI];
82 UPstream::msgType() = oldTag;
88 const polyPatch&
p = regionMesh().boundaryMesh()[regionPatchI];
108 const word& fieldName,
109 const label regionPatchI,
117 if (nbrRegionMesh.
foundObject<fieldType>(fieldName))
119 const label nbrPatchI = nbrCoupledPatchID(nbrRegion, regionPatchI);
121 int oldTag = UPstream::msgType();
122 UPstream::msgType() = oldTag + 1;
125 interRegionAMI(nbrRegion, regionPatchI, nbrPatchI, flip);
127 const fieldType& nbrField =
131 nbrField.boundaryField()[nbrPatchI];
138 UPstream::msgType() = oldTag;
144 const polyPatch&
p = regionMesh().boundaryMesh()[regionPatchI];
162 const label regionPatchI,
166 forAll(intCoupledPatchIDs_, i)
168 if (intCoupledPatchIDs_[i] == regionPatchI)
171 refCast<const mappedPatchBase>
181 <<
"Region patch ID " << regionPatchI <<
" not found in region mesh"
189 const label regionPatchI,
193 forAll(intCoupledPatchIDs_, i)
195 if (intCoupledPatchIDs_[i] == regionPatchI)
198 refCast<const mappedPatchBase>
208 <<
"Region patch ID " << regionPatchI <<
" not found in region mesh"
213 template<
class Type,
class CombineOp>
216 const label regionPatchI,
221 forAll(intCoupledPatchIDs_, i)
223 if (intCoupledPatchIDs_[i] == regionPatchI)
226 refCast<const mappedPatchBase>
236 <<
"Region patch ID " << regionPatchI <<
" not found in region mesh"
241 template<
class Type,
class CombineOp>
244 const label regionPatchI,
249 forAll(intCoupledPatchIDs_, i)
251 if (intCoupledPatchIDs_[i] == regionPatchI)
254 refCast<const mappedPatchBase>
264 <<
"Region patch ID " << regionPatchI <<
" not found in region mesh"
A class for handling words, derived from string.
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
Determines a mapping between patch face centres and mesh cell or face centres and processors they're ...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void interpolateToSource(const UList< Type > &fld, const CombineOp &cop, List< Type > &result, const UList< Type > &defaultValues=UList< Type >::null()) const
Interpolate from target to source with supplied op.
A patch is a list of labels that address the faces in the global face list.
void distribute(List< Type > &lst) const
Wrapper around map/interpolate data distribution.
void toRegion(const label regionPatchI, List< Type > &primaryFieldField) const
Convert a primary region field to the local region.
tmp< Foam::Field< Type > > mapRegionPatchField(const regionModel &nbrRegion, const label regionPatchI, const label nbrPatchI, const Field< Type > &nbrField, const bool flip=false) const
Map patch field from another region model to local patch.
Mesh data needed to do the Finite Volume discretisation.
errorManip< error > abort(error &err)
bool foundObject(const word &name) const
Is the named Type found?
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Traits class for primitives.
Interpolation class dealing with transfer of data between two primitive patches with an arbitrary mes...
void toPrimary(const label regionPatchI, List< Type > ®ionField) const
Convert a local region field to the primary region.
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface....
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
Generic GeometricField class.
tmp< Field< Type > > mapRegionPatchInternalField(const regionModel &nbrRegion, const word &fieldName, const label regionPatchI, const bool flip=false) const
Map patch internal field from another region model to local.
const fvMesh & regionMesh() const
Return the region mesh database.
void reverseDistribute(List< Type > &lst) const
Wrapper around map/interpolate data distribution.