Go to the documentation of this file.
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();
152 forAll(nbrField.boundaryField(), patchI)
161 allValues[faceStart++] = pif[faceI];
166 nbrIntFld.transfer(allValues);
173 <<
"Unknown sampling mode: " << mpp.
mode()
179 UPstream::msgType() = oldTag;
This boundary condition maps the value at a set of cells or patch faces back to *this.
#define forAll(list, i)
Loop across all elements in list.
virtual void write(Ostream &) const
Write.
const polyPatch & samplePolyPatch() const
Get the patch on the region.
Determines a mapping between patch face centres and mesh cell or face centres and processors they're ...
This boundary condition maps the boundary and internal values of a neighbour patch field to the bound...
const polyMesh & sampleMesh() const
Get the region mesh.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void distribute(List< Type > &lst) const
Wrapper around map/interpolate data distribution.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual tmp< Field< Type > > patchInternalField() const
Return internal field next to patch as patch field.
const sampleMode & mode() const
What to sample.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Mesh data needed to do the Finite Volume discretisation.
errorManip< error > abort(error &err)
mappedFixedInternalValueFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
errorManipArg< error, int > exit(error &err, const int errNo=1)
conserve internalField()+
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Traits class for primitives.
label start() const
Return start label of this patch in the polyMesh face list.
A List with indirect addressing.
Foam::fvPatchFieldMapper.
const fvPatch & patch() const
Return patch.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Generic GeometricField class.
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...