40 valueFraction_(
p.size())
50 const bool valuesRequired
56 valueFraction_(
p.size())
60 if (
dict.found(
"refValue"))
74 <<
"Essential entry 'refValue' missing"
78 if (
dict.found(
"refGradient"))
92 <<
"Essential entry 'refGradient' missing"
96 if (
dict.found(
"valueFraction"))
104 <<
"Essential entry 'valueFraction' missing"
120 const bool mappingRequired
126 valueFraction_(
p.size())
130 mapper(refValue_, ptf.refValue_);
131 mapper(refGrad_, ptf.refGrad_);
132 mapper(valueFraction_, ptf.valueFraction_);
145 refValue_(ptf.refValue_),
146 refGrad_(ptf.refGrad_),
147 valueFraction_(ptf.valueFraction_)
163 refCast<const mixedFvPatchField<Type>>(ptf);
165 mapper(refValue_, mptf.refValue_);
166 mapper(refGrad_, mptf.refGrad_);
167 mapper(valueFraction_, mptf.valueFraction_);
177 refCast<const mixedFvPatchField<Type>>(ptf);
179 refValue_.
reset(mptf.refValue_);
180 refGrad_.reset(mptf.refGrad_);
181 valueFraction_.reset(mptf.valueFraction_);
188 if (!this->updated())
190 this->updateCoeffs();
195 valueFraction_*refValue_
197 (1.0 - valueFraction_)*
199 this->patchInternalField()
200 + refGrad_/this->patch().deltaCoeffs()
214 *(refValue_ - this->patchInternalField())
215 *this->patch().deltaCoeffs()
216 + (1.0 - valueFraction_)*refGrad_;
239 valueFraction_*refValue_
240 + (1.0 - valueFraction_)*refGrad_/this->patch().deltaCoeffs();
257 valueFraction_*this->patch().deltaCoeffs()*refValue_
258 + (1.0 - valueFraction_)*refGrad_;
268 writeEntry(os,
"valueFraction", valueFraction_);
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionSet & dimensions() const
Return dimensions.
Pre-declare SubField and related Field type.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
commsTypes
Types of communications.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base class for field mapping.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field, sets Updated to false.
virtual void write(Ostream &) const
Write.
virtual void reset(const fvPatchField< Type > &)
Reset the fvPatchField to the given fvPatchField.
virtual void map(const fvPatchField< Type > &, const fieldMapper &)
Map the given fvPatchField onto this fvPatchField.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a base class for 'mixed' type boundary conditions,...
mixedFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
virtual void write(Ostream &) const
Write.
virtual tmp< Field< Type > > gradientInternalCoeffs() const
Return the matrix diagonal coefficients corresponding to the.
virtual tmp< Field< Type > > snGrad() const
Return gradient at boundary.
virtual tmp< Field< Type > > valueInternalCoeffs(const tmp< scalarField > &) const
Return the matrix diagonal coefficients corresponding to the.
virtual tmp< Field< Type > > gradientBoundaryCoeffs() const
Return the matrix source coefficients corresponding to the.
virtual void reset(const fvPatchField< Type > &)
Reset the fvPatchField to the given fvPatchField.
virtual tmp< Field< Type > > valueBoundaryCoeffs(const tmp< scalarField > &) const
Return the matrix source coefficients corresponding to the.
virtual void map(const fvPatchField< Type > &, const fieldMapper &)
Map the given fvPatchField onto this fvPatchField.
Traits class for primitives.
A class for managing temporary objects.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const dimensionSet dimLength
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
const unitConversion unitFraction