48 weightFieldName_(
word::null)
73 weightFieldName_(
dict.getOrDefault<
word>(
"weightField",
word::null))
110 const mappedMixedFvPatchField<Type>& ptf,
112 const DimensionedField<Type, volMesh>& iF,
113 const fvPatchFieldMapper& mapper
116 mixedFvPatchField<Type>(ptf,
p, iF, mapper),
117 mappedPatchFieldBase<Type>
119 mappedFixedValueFvPatchField<Type>::mapper(
p, iF),
123 weightFieldName_(ptf.weightFieldName_)
135 weightFieldName_(ptf.weightFieldName_)
153 weightFieldName_(ptf.weightFieldName_)
185 const tmp<Field<Type>> nbrIntFld(this->mappedInternalField());
191 tmp<scalarField> myKDelta;
192 tmp<scalarField> nbrKDelta;
193 this->mappedWeightField(weightFieldName_, myKDelta, nbrKDelta);
210 this->refValue() = nbrIntFld;
211 this->refGrad() =
Zero;
212 this->valueFraction() = nbrKDelta()/(nbrKDelta() + myKDelta());
218 Info<< this->
patch().boundaryMesh().mesh().name() <<
':' 219 << this->
patch().name() <<
':' 220 << this->internalField().name() <<
" <- " 221 << this->mapper_.sampleRegion() <<
':' 222 << this->mapper_.samplePatch() <<
':' 223 << this->fieldName_ <<
" :" 225 <<
" min:" <<
gMin(*
this)
226 <<
" max:" <<
gMax(*
this)
bool readValueEntry(const dictionary &dict, IOobjectOption::readOption readOpt=IOobjectOption::LAZY_READ)
Read the "value" entry into *this.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Type gMin(const FieldField< Field, Type > &f)
virtual void write(Ostream &os) const
Write.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a base class for 'mixed' type boundary conditions, i.e. conditions that mix fixed value and patch-normal gradient conditions.
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...
virtual void readDict(const dictionary &dict)
Read dictionary entries.
virtual Field< Type > & refValue()
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
bool readMixedEntries(const dictionary &dict, IOobjectOption::readOption readOpt=IOobjectOption::LAZY_READ)
Read the 'refValue', 'refGradient' and 'valueFraction' entries into their respective places...
A class for handling words, derived from Foam::string.
virtual scalarField & valueFraction()
A FieldMapper for finite-volume patch fields.
mappedMixedFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
static const word null
An empty word.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
int debug
Static debugging option.
Type gMax(const FieldField< Field, Type > &f)
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
OBJstream os(runTime.globalPath()/outputName)
Functionality for sampling fields using mappedPatchBase. Every call to mappedField() returns a sample...
Type gAverage(const FieldField< Field, Type > &f)
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 std::string patch
OpenFOAM patch number as a std::string.
messageStream Info
Information stream (stdout output on master, null elsewhere)
virtual void write(Ostream &) const
Write.
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
This boundary condition maps the value at a set of cells or patch faces back to *this.
virtual Field< Type > & refGrad()
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
static constexpr const zero Zero
Global zero (0)
virtual void write(Ostream &) const
Write.