Go to the documentation of this file.
35 if (sampleRegion_.empty())
37 if (!coupleGroup_.valid())
40 <<
"Supply either a regionName or a coupleGroup"
41 <<
" for patch " << patch_.name()
42 <<
" in region " << patch_.boundaryMesh().mesh().name()
47 label samplePatchID = coupleGroup_.findOtherPatchID
53 samplePatch_ = sampleMesh().boundaryMesh()[samplePatchID].name();
61 if (samplePatch_.empty())
63 if (!coupleGroup_.valid())
66 <<
"Supply either a patchName or a coupleGroup"
67 <<
" for patch " << patch_.name()
68 <<
" in region " << patch_.boundaryMesh().mesh().name()
73 label samplePatchID = coupleGroup_.findOtherPatchID
79 samplePatch_ = sampleMesh().boundaryMesh()[samplePatchID].name();
87 return coupleGroup_.name();
95 case NEARESTPATCHFACEAMI:
97 return samplePolyPatch().size();
101 return sampleMesh().nCells();
103 case NEARESTPATCHFACE:
105 return samplePolyPatch().size();
107 case NEARESTPATCHPOINT:
109 return samplePolyPatch().nPoints();
160 if (forceUpdate || AMIPtr_.empty())
A class for handling words, derived from string.
const mapDistribute & map() const
Return reference to the parallel distribution map.
const sampleMode mode_
What to sample.
Mesh consisting of general polyhedral cells.
const vector & offset() const
Offset vector (from patch faces to destination mesh objects)
label sampleSize() const
Return size of mapped mesh/patch/boundary.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
Class containing processor-to-processor mapping information.
const sampleMode & mode() const
What to sample.
label nInternalFaces() const
errorManip< error > abort(error &err)
const word & coupleGroup() const
PatchGroup (only if NEARESTPATCHFACE)
const word & sampleRegion() const
Region to sample.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Interpolation class dealing with transfer of data between two primitive patches with an arbitrary mes...
const AMIPatchToPatchInterpolation & AMI(const bool forceUpdate=false) const
Return reference to the AMI interpolator.
bool sameRegion() const
Cached sampleRegion != mesh.name()
sampleMode
Mesh items to sample.
const vectorField & offsets() const
Offset vector (from patch faces to destination mesh objects)
const word & samplePatch() const
Patch (only if NEARESTPATCHFACE)