Go to the documentation of this file.
48 weightFieldName_(word::null)
50 this->refValue() =
Zero;
51 this->refGrad() =
Zero;
52 this->valueFraction() = 0.0;
71 weightFieldName_(
dict.getOrDefault<
word>(
"weightField", word::null))
78 if (
dict.found(
"refValue"))
88 this->refValue() = *
this;
89 this->refGrad() =
Zero;
90 this->valueFraction() = 1.0;
125 weightFieldName_(ptf.weightFieldName_)
137 weightFieldName_(ptf.weightFieldName_)
155 weightFieldName_(ptf.weightFieldName_)
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)
239 os.writeEntryIfDifferent<
word>(
"weightField", word::null, weightFieldName_);
int debug
Static debugging option.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
mappedMixedFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
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.
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
Type gAverage(const FieldField< Field, Type > &f)
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual void write(Ostream &) const
Write.
Generic templated field type.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
messageStream Info
Information stream (stdout output on master, null elsewhere)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
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.
Functionality for sampling fields using mappedPatchBase. Every call to mappedField() returns a sample...
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 &)
Map (and resize as needed) from self given a mapping object.
This boundary condition provides a base class for 'mixed' type boundary conditions,...
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)
Foam::fvPatchFieldMapper.
const fvPatch & patch() const
Return patch.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Type gMin(const FieldField< Field, Type > &f)
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...