107 int oldTag = UPstream::msgType();
108 UPstream::msgType() = oldTag + 1;
115 refCast<const mappedPatchBase>(this->patch().patch());
122 case mappedPatchBase::NEARESTCELL:
126 << mappedPatchBase::sampleModeNames_
128 mappedPatchBase::NEARESTCELL
130 <<
" mapping mode for patch " << this->patch().name()
135 case mappedPatchBase::NEARESTPATCHFACE:
136 case mappedPatchBase::NEARESTPATCHFACEAMI:
140 this->sampleField().boundaryField()[samplePatchi];
146 case mappedPatchBase::NEARESTFACE:
150 const FieldType& nbrField = this->sampleField();
161 allValues[faceStart++] = pif[facei];
166 nbrIntFld.transfer(allValues);
173 <<
"Unknown sampling mode: " << mpp.
mode()
179 UPstream::msgType() = oldTag;
const fvPatch & patch() const
Return patch.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual tmp< Field< Type > > patchInternalField() const
Return internal field next to patch as patch field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
const polyMesh & sampleMesh() const
Get the region mesh.
This boundary condition maps the value at a set of cells or patch faces back to *this.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Generic GeometricField class.
Pre-declare SubField and related Field type.
Foam::fvPatchFieldMapper.
void distribute(List< Type > &lst) const
Wrapper around map/interpolate data distribution.
Determines a mapping between patch face centres and mesh cell or face centres and processors they're ...
errorManip< error > abort(error &err)
mappedFixedInternalValueFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const polyPatch & samplePolyPatch() const
Get the patch on the region.
Mesh data needed to do the Finite Volume discretisation.
A List with indirect addressing.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const sampleMode & mode() const
What to sample.
label index() const
Return the index of this patch in the boundaryMesh.
This boundary condition maps the boundary and internal values of a neighbour patch field to the bound...
virtual void write(Ostream &) const
Write.