Go to the documentation of this file.
44 weightFieldName_(
word::null)
63 weightFieldName_(
dict.getOrDefault<
word>(
"weightField",
word::null))
79 weightFieldName_(ptf.weightFieldName_)
92 weightFieldName_(ptf.weightFieldName_)
106 weightFieldName_(ptf.weightFieldName_)
143 const tmp<Field<Type>> nbrIntFld(this->mappedInternalField());
149 tmp<scalarField> myKDelta;
150 tmp<scalarField> nbrKDelta;
151 this->mappedWeightField(weightFieldName_, myKDelta, nbrKDelta);
168 this->refValue() = nbrIntFld;
169 this->refGrad() =
Zero;
170 this->valueFraction() = nbrKDelta()/(nbrKDelta() + myKDelta());
176 Info<< this->
patch().boundaryMesh().mesh().name() <<
':'
177 << this->
patch().name() <<
':'
178 << this->internalField().name() <<
" <- "
179 << this->mapper_.sampleRegion() <<
':'
180 << this->mapper_.samplePatch() <<
':'
181 << this->fieldName_ <<
" :"
183 <<
" min:" <<
gMin(*
this)
184 <<
" max:" <<
gMax(*
this)
virtual void autoMap(const fvPatchFieldMapper &)
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
virtual scalarField & valueFraction()
A class for handling words, derived from Foam::string.
virtual Field< Type > & refValue()
A class for managing temporary objects.
static constexpr const zero Zero
Type gAverage(const FieldField< Field, Type > &f)
virtual void write(Ostream &) const
mappedMixedFieldFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
virtual Field< Type > & refGrad()
Ostream & endl(Ostream &os)
Determines a mapping between patch face centres and mesh cell or face centres and processors they're ...
virtual void rmap(const fvPatchField< Type > &, const labelList &)
virtual void autoMap(const fvPatchFieldMapper &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Functionality for sampling fields using mappedPatchBase. Every call to mappedField() returns a sample...
virtual void write(Ostream &) const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
This boundary condition provides a base class for 'mixed' type boundary conditions,...
virtual void updateCoeffs()
virtual void updateCoeffs()
virtual void write(Ostream &os) const
This boundary condition provides a self-contained version of e.g. mapped boundary conditions.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual void write(Ostream &os) const
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Foam::fvPatchFieldMapper.
const fvPatch & patch() const
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Type gMin(const FieldField< Field, Type > &f)
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Type gMax(const FieldField< Field, Type > &f)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...