Go to the documentation of this file.
44 weightFieldName_(word::null)
46 this->refValue() =
Zero;
47 this->refGrad() =
Zero;
48 this->valueFraction() = 0.0;
63 weightFieldName_(
dict.getOrDefault<
word>(
"weightField", word::null))
70 if (
dict.found(
"refValue"))
80 this->refValue() = *
this;
81 this->refGrad() =
Zero;
82 this->valueFraction() = 1.0;
88 this->internalField().
name(),
93 this->internalField().
name() +
"_weights",
94 this->
patch().deltaCoeffs()
111 weightFieldName_(ptf.weightFieldName_)
124 weightFieldName_(ptf.weightFieldName_)
138 weightFieldName_(ptf.weightFieldName_)
151 mappedPatchBase::clearOut();
163 mappedPatchBase::clearOut();
183 this->mappedWeightField(weightFieldName_, myKDelta, nbrKDelta);
200 this->refValue() = nbrIntFld;
201 this->refGrad() =
Zero;
202 this->valueFraction() = nbrKDelta()/(nbrKDelta() + myKDelta());
208 Info<< this->
patch().boundaryMesh().mesh().name() <<
':'
209 << this->
patch().name() <<
':'
210 << this->internalField().name() <<
" <- "
211 << this->mapper_.sampleRegion() <<
':'
212 << this->mapper_.samplePatch() <<
':'
213 << this->fieldName_ <<
" :"
215 <<
" min:" <<
gMin(*
this)
216 <<
" max:" <<
gMax(*
this)
int debug
Static debugging option.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
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.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
Type gAverage(const FieldField< Field, Type > &f)
virtual void write(Ostream &) const
Write.
mappedMixedFieldFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
Ostream & endl(Ostream &os)
Add newline and flush stream.
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 &)
Reverse map the given fvPatchField onto this fvPatchField.
Generic templated field type.
messageStream Info
Information stream (uses stdout - output is on the master only)
word name(const complex &c)
Return string representation of complex.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
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,...
This boundary condition provides a base class for 'mixed' type boundary conditions,...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
This boundary condition provides a self-contained version of e.g. mapped 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...