Go to the documentation of this file.
45 valueFraction_(
p.size())
66 <<
"On field " << iF.name() <<
" patch " <<
p.name()
67 <<
" patchField " << this->
type()
68 <<
" : mapper does not map all values." <<
nl
69 <<
" To avoid this warning fully specify the mapping in derived"
70 <<
" patch fields." <<
endl;
84 refValue_(
"refValue",
dict,
p.size()),
85 refGrad_(
"refGradient",
dict,
p.size()),
86 valueFraction_(
"valueFraction",
dict,
p.size())
128 refValue_.autoMap(m);
130 valueFraction_.autoMap(m);
144 refCast<const mixedFvPatchField<Type> >(ptf);
155 if (!this->updated())
157 this->updateCoeffs();
162 valueFraction_*refValue_
164 (1.0 - valueFraction_)*
166 this->patchInternalField()
167 + refGrad_/this->patch().deltaCoeffs()
180 *(refValue_ - this->patchInternalField())
181 *this->patch().deltaCoeffs()
182 + (1.0 - valueFraction_)*refGrad_;
204 valueFraction_*refValue_
205 + (1.0 - valueFraction_)*refGrad_/this->patch().deltaCoeffs();
220 valueFraction_*this->patch().deltaCoeffs()*refValue_
221 + (1.0 - valueFraction_)*refGrad_;
229 refValue_.writeEntry(
"refValue", os);
230 refGrad_.writeEntry(
"refGradient", os);
231 valueFraction_.writeEntry(
"valueFraction", os);
232 this->writeEntry(
"value", os);
virtual void write(Ostream &) const
Write.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::blocking)
Evaluate the patch field, sets Updated to false.
A class for managing temporary objects.
bool notNull(const T &t)
Return true if t is not a reference to the nullObject of type T.
virtual tmp< Field< Type > > gradientInternalCoeffs() const
Return the matrix diagonal coefficients corresponding to the.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual bool hasUnmapped() const =0
Are there unmapped values? I.e. do all size() elements get.
virtual tmp< Field< Type > > snGrad() const
Return gradient at boundary.
scalarField valueFraction_
Fraction (0-1) of value used for boundary condition.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
Pre-declare SubField and related Field type.
mixedFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
Field< Type > refValue_
Value field.
virtual tmp< Field< Type > > valueBoundaryCoeffs(const tmp< scalarField > &) const
Return the matrix source coefficients corresponding to the.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void write(Ostream &) const
Write.
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
Field< Type > refGrad_
Normal gradient field.
A list of keyword definitions, which are a keyword followed by any number of values (e....
virtual tmp< Field< Type > > gradientBoundaryCoeffs() const
Return the matrix source coefficients corresponding to the.
This boundary condition provides a base class for 'mixed' type boundary conditions,...
commsTypes
Types of communications.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Traits class for primitives.
virtual tmp< Field< Type > > valueInternalCoeffs(const tmp< scalarField > &) const
Return the matrix diagonal coefficients corresponding to the.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::blocking)
Evaluate the patch field.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
#define WarningInFunction
Report a warning using Foam::Warning.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...