Go to the documentation of this file.
44 if (sampleRegion_.empty())
46 if (!coupleGroup_.valid())
49 <<
"Supply either a regionName or a coupleGroup"
50 <<
" for patch " << patch_.name()
51 <<
" in region " << patch_.boundaryMesh().mesh().name()
56 label samplePatchID = coupleGroup_.findOtherPatchID
62 samplePatch_ = sampleMesh().boundaryMesh()[samplePatchID].name();
70 if (samplePatch_.empty())
72 if (!coupleGroup_.valid())
75 <<
"Supply either a patchName or a coupleGroup"
76 <<
" for patch " << patch_.name()
77 <<
" in region " << patch_.boundaryMesh().mesh().name()
82 label samplePatchID = coupleGroup_.findOtherPatchID
88 samplePatch_ = sampleMesh().boundaryMesh()[samplePatchID].name();
96 return coupleGroup_.name();
104 case NEARESTPATCHFACEAMI:
106 return samplePolyPatch().size();
110 return sampleMesh().nCells();
112 case NEARESTPATCHFACE:
114 return samplePolyPatch().size();
116 case NEARESTPATCHPOINT:
118 return samplePolyPatch().nPoints();
171 (sameWorld() && sampleMesh().topoChanging())
176 mapPtr_.reset(
nullptr);
195 (sameWorld() && sampleMesh().topoChanging())
198 if (topoChange || forceUpdate)
200 AMIPtr_->upToDate() =
false;
bool topoChanging() const
Is mesh topology changing.
A class for handling words, derived from Foam::string.
const mapDistribute & map() const
Return reference to the parallel distribution map.
const sampleMode mode_
What to sample.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
bool sameWorld() const
Is world the local world.
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.
label comm() const
Communicator.
Class containing processor-to-processor mapping information.
const polyMesh & mesh() const
Return the mesh reference.
static const word & myWorld()
My world.
const word & sampleWorld() const
World to sample.
const sampleMode & mode() const
What to sample.
label nBoundaryFaces() const
Number of boundary faces (== nFaces - nInternalFaces)
static const wordList & allWorlds()
All worlds.
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)