40 valueFraction_(p.
size())
53 refValue_(
"refValue", dict, p.
size()),
54 refGrad_(
"refGradient", dict, p.
size()),
55 valueFraction_(
"valueFraction", dict, p.
size())
68 const bool mappingRequired
72 refValue_(mapper(ptf.refValue_)),
73 refGrad_(mapper(ptf.refGrad_)),
74 valueFraction_(mapper(ptf.valueFraction_))
86 refValue_(ptf.refValue_),
87 refGrad_(ptf.refGrad_),
88 valueFraction_(ptf.valueFraction_)
101 m(refValue_, refValue_);
102 m(refGrad_, refGrad_);
103 m(valueFraction_, valueFraction_);
117 refCast<const mixedFvPatchField<Type>>(ptf);
119 refValue_.
rmap(mptf.refValue_, addr);
120 refGrad_.rmap(mptf.refGrad_, addr);
121 valueFraction_.rmap(mptf.valueFraction_, addr);
128 if (!this->updated())
130 this->updateCoeffs();
135 valueFraction_*refValue_
137 (1.0 - valueFraction_)*
139 this->patchInternalField()
140 + refGrad_/this->patch().deltaCoeffs()
154 *(refValue_ - this->patchInternalField())
155 *this->patch().deltaCoeffs()
156 + (1.0 - valueFraction_)*refGrad_;
180 valueFraction_*refValue_
181 + (1.0 - valueFraction_)*refGrad_/this->patch().deltaCoeffs();
198 valueFraction_*this->patch().deltaCoeffs()*refValue_
199 + (1.0 - valueFraction_)*refGrad_;
209 writeEntry(os,
"valueFraction", valueFraction_);
void evaluate(GeometricField< Type, PatchField, GeoMesh > &result, const Function1< Type > &func, const GeometricField< Type, PatchField, GeoMesh > &x)
A list of keyword definitions, which are a keyword followed by any number of values (e...
commsTypes
Types of communications.
void size(const label)
Override size to be inconsistent with allocated storage.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Traits class for primitives.
virtual tmp< Field< Type > > snGrad() const
Return gradient at boundary.
This boundary condition provides a base class for 'mixed' type boundary conditions, i.e. conditions that mix fixed value and patch-normal gradient conditions.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual tmp< Field< Type > > gradientInternalCoeffs() const
Return the matrix diagonal coefficients corresponding to the.
Pre-declare SubField and related Field type.
virtual tmp< Field< Type > > gradientBoundaryCoeffs() const
Return the matrix source coefficients corresponding to the.
Foam::fvPatchFieldMapper.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
virtual tmp< Field< Type > > valueInternalCoeffs(const tmp< scalarField > &) const
Return the matrix diagonal coefficients corresponding to the.
virtual tmp< Field< Type > > valueBoundaryCoeffs(const tmp< scalarField > &) const
Return the matrix source coefficients corresponding to the.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
mixedFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual void write(Ostream &) const
Write.
A class for managing temporary objects.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.