Go to the documentation of this file.
48 weightFieldName_(
word::null)
71 weightFieldName_(
dict.getOrDefault<
word>(
"weightField",
word::null))
78 if (
dict.found(
"refValue"))
112 const mappedMixedFvPatchField<Type>& ptf,
114 const DimensionedField<Type, volMesh>& iF,
115 const fvPatchFieldMapper& mapper
118 mixedFvPatchField<Type>(ptf,
p, iF, mapper),
119 mappedPatchFieldBase<Type>
121 mappedFixedValueFvPatchField<Type>::mapper(
p, iF),
125 weightFieldName_(ptf.weightFieldName_)
137 weightFieldName_(ptf.weightFieldName_)
155 weightFieldName_(ptf.weightFieldName_)
187 const tmp<Field<Type>> nbrIntFld(this->mappedInternalField());
193 tmp<scalarField> myKDelta;
194 tmp<scalarField> nbrKDelta;
195 this->mappedWeightField(weightFieldName_, myKDelta, nbrKDelta);
212 this->refValue() = nbrIntFld;
213 this->refGrad() =
Zero;
214 this->valueFraction() = nbrKDelta()/(nbrKDelta() + myKDelta());
220 Info<< this->
patch().boundaryMesh().mesh().name() <<
':'
221 << this->
patch().name() <<
':'
222 << this->internalField().name() <<
" <- "
223 << this->mapper_.sampleRegion() <<
':'
224 << this->mapper_.samplePatch() <<
':'
225 << this->fieldName_ <<
" :"
227 <<
" min:" <<
gMin(*
this)
228 <<
" max:" <<
gMax(*
this)
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
virtual scalarField & valueFraction()
mappedMixedFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
A class for handling words, derived from Foam::string.
This boundary condition maps the value at a set of cells or patch faces back to *this.
virtual Field< Type > & refValue()
A class for managing temporary objects.
static constexpr const zero Zero
Type gAverage(const FieldField< Field, Type > &f)
virtual Field< Type > & refGrad()
Ostream & endl(Ostream &os)
virtual void write(Ostream &) const
virtual void autoMap(const fvPatchFieldMapper &)
virtual void updateCoeffs()
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void rmap(const fvPatchField< Type > &, const labelList &)
This boundary condition maps the value at a set of cells or patch faces back to *this.
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)
virtual void autoMap(const fvPatchFieldMapper &)
This boundary condition provides a base class for 'mixed' type boundary conditions,...
virtual void updateCoeffs()
virtual void write(Ostream &os) const
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
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...