Go to the documentation of this file.
109 int oldTag = UPstream::msgType();
110 UPstream::msgType() = oldTag + 1;
117 refCast<const mappedPatchBase>(this->
patch().
patch());
124 case mappedPatchBase::NEARESTCELL:
128 << mappedPatchBase::sampleModeNames_
130 mappedPatchBase::NEARESTCELL
132 <<
" mapping mode for patch " << this->
patch().name()
137 case mappedPatchBase::NEARESTPATCHFACE:
138 case mappedPatchBase::NEARESTPATCHFACEAMI:
142 this->sampleField().boundaryField()[samplePatchi];
148 case mappedPatchBase::NEARESTFACE:
152 const FieldType& nbrField = this->sampleField();
154 forAll(nbrField.boundaryField(), patchi)
159 label faceStart = pf.
patch().start();
163 allValues[faceStart++] = pif[facei];
168 nbrIntFld.transfer(allValues);
175 <<
"Unknown sampling mode: " << mpp.
mode()
181 UPstream::msgType() = oldTag;
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
This boundary condition maps the value at a set of cells or patch faces back to *this.
static constexpr const zero Zero
Global zero (0)
label nFaces() const
Number of mesh faces.
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...
#define forAll(list, i)
Loop across all elements in list.
const polyMesh & sampleMesh() const
Get the region mesh.
Generic templated field type.
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 a number of values (eg,...
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)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const std::string patch
OpenFOAM patch number as a std::string.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
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,...
virtual void write(Ostream &os) const
Write.
Smooth ATC in cells next to a set of patches supplied by type.
label index() const
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...