Go to the documentation of this file.
37 if (sampleRegion_.empty())
39 if (!coupleGroup_.valid())
42 <<
"Supply either a regionName or a coupleGroup"
43 <<
" for patch " << patch_.name()
44 <<
" in region " << patch_.boundaryMesh().mesh().name()
49 label samplePatchID = coupleGroup_.findOtherPatchID
55 samplePatch_ = sampleMesh().boundaryMesh()[samplePatchID].name();
63 if (samplePatch_.empty())
65 if (!coupleGroup_.valid())
68 <<
"Supply either a patchName or a coupleGroup"
69 <<
" for patch " << patch_.name()
70 <<
" in region " << patch_.boundaryMesh().mesh().name()
75 label samplePatchID = coupleGroup_.findOtherPatchID
81 samplePatch_ = sampleMesh().boundaryMesh()[samplePatchID].name();
89 return coupleGroup_.name();
97 case NEARESTPATCHFACEAMI:
99 return samplePolyPatch().size();
103 return sampleMesh().nCells();
105 case NEARESTPATCHFACE:
107 return samplePolyPatch().size();
109 case NEARESTPATCHPOINT:
111 return samplePolyPatch().nPoints();
173 if (topoChange || forceUpdate)
175 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.
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.
Class containing processor-to-processor mapping information.
const polyMesh & mesh() const
Return the mesh reference.
const sampleMode & mode() const
What to sample.
label nBoundaryFaces() const
Number of boundary faces (== nFaces - nInternalFaces)
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)