96 int oldTag = UPstream::msgType();
97 UPstream::msgType() = oldTag + 1;
104 refCast<const mappedPatchBase>(this->patch().patch());
111 case mappedPatchBase::NEARESTCELL:
115 << mappedPatchBase::sampleModeNames_
117 mappedPatchBase::NEARESTCELL
119 <<
" mapping mode for patch " << this->patch().name()
124 case mappedPatchBase::NEARESTPATCHFACE:
125 case mappedPatchBase::NEARESTPATCHFACEAMI:
129 this->sampleField().boundaryField()[samplePatchi];
135 case mappedPatchBase::NEARESTFACE:
139 const FieldType& nbrField = this->sampleField();
150 allValues[faceStart++] = pif[facei];
155 nbrIntFld.transfer(allValues);
162 <<
"Unknown sampling mode: " << mpp.
mode()
168 UPstream::msgType() = oldTag;
#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.
const polyMesh & sampleMesh() const
Get the region mesh.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
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.
const sampleMode & mode() const
What to sample.
virtual void write(Ostream &) const
Write.
Pre-declare SubField and related Field type.
Foam::fvPatchFieldMapper.
Determines a mapping between patch face centres and mesh cell or face centres and processors they're ...
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
errorManip< error > abort(error &err)
const fvPatch & patch() const
Return patch.
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...
virtual tmp< Field< Type > > patchInternalField() const
Return internal field next to patch as patch field.
void distribute(List< Type > &lst) const
Wrapper around map/interpolate data distribution.
Mesh data needed to do the Finite Volume discretisation.
A List with indirect addressing.
label index() const
Return the index of this patch in the boundaryMesh.
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 polyPatch & samplePolyPatch() const
Get the patch on the region.
This boundary condition maps the boundary and internal values of a neighbour patch field to the bound...