73 weightFieldName_(
dict.getOrDefault<
word>(
"weightField",
word::null))
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());
221 Info<< this->patch().boundaryMesh().mesh().name() <<
':'
222 << this->patch().name() <<
':'
223 << this->internalField().name() <<
" <- "
224 << this->mapper_.sampleRegion() <<
':'
225 << this->mapper_.samplePatch() <<
':'
226 << this->fieldName_ <<
" :"
228 <<
" min:" <<
limits.min()
229 <<
" max:" <<
limits.max()
240 os.writeEntryIfDifferent<
word>(
"weightField",
word::null, weightFieldName_);
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
static const Field< Type > & null() noexcept
Return a null Field (reference to a nullObject). Behaves like an empty Field.
@ MUST_READ
Reading required.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual void readDict(const dictionary &dict)
Read dictionary entries.
const fvPatch & patch() const noexcept
Return the patch.
bool updated() const noexcept
True if the boundary condition has already been updated.
A FieldMapper for finite-volume patch fields.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
const DimensionedField< Type, volMesh > & internalField() const noexcept
Return const-reference to the dimensioned internal field.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
bool readValueEntry(const dictionary &dict, IOobjectOption::readOption readOpt=IOobjectOption::LAZY_READ)
Read the "value" entry into *this.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition maps the value at a set of cells or patch faces back to *this.
This boundary condition maps the value at a set of cells or patch faces back to *this.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
mappedMixedFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
Functionality for sampling fields using mappedPatchBase. Every call to mappedField() returns a sample...
const mappedPatchBase & mapper_
Mapping engine.
virtual void write(Ostream &os) const
Write.
static const mappedPatchBase & mapper(const fvPatch &p, const DimensionedField< Type, volMesh > &iF)
Check that patch is of correct type.
word fieldName_
Name of field to sample.
virtual tmp< scalarField > mappedWeightField() const
Map optional weightField onto *this patch. Default is deltaCoeffs.
virtual tmp< Field< Type > > mappedInternalField() const
Map internal of sampleField onto *this patch.
mappedPatchFieldBase(const mappedPatchBase &mapper, const fvPatchField< Type > &patchField, const word &fieldName, const bool setAverage, const Type average, const word &interpolationScheme)
Construct from components.
This boundary condition provides a base class for 'mixed' type boundary conditions,...
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
mixedFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
virtual void write(Ostream &) const
Write.
virtual Field< Type > & refGrad()
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
bool readMixedEntries(const dictionary &dict, IOobjectOption::readOption readOpt=IOobjectOption::LAZY_READ)
Read the 'refValue', 'refGradient' and 'valueFraction' entries into their respective places.
virtual Field< Type > & refValue()
virtual scalarField & valueFraction()
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
static const word null
An empty word.
OBJstream os(runTime.globalPath()/outputName)
Namespace for handling debugging switches.
Type gAverage(const FieldField< Field, Type > &f, const label comm)
The global arithmetic average of a FieldField.
List< label > labelList
A List of labels.
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
MinMax< Type > gMinMax(const FieldField< Field, Type > &f)
static constexpr const zero Zero
Global zero (0).