40 valueFraction_(
p.size())
50 const bool valuesRequired
56 valueFraction_(
p.size())
60 if (
dict.found(
"refValue"))
67 <<
"Essential entry 'refValue' missing"
71 if (
dict.found(
"refGradient"))
78 <<
"Essential entry 'refGradient' missing"
82 if (
dict.found(
"valueFraction"))
89 <<
"Essential entry 'valueFraction' missing"
105 const bool mappingRequired
109 refValue_(mapper(ptf.refValue_)),
110 refGrad_(mapper(ptf.refGrad_)),
111 valueFraction_(mapper(ptf.valueFraction_))
123 refValue_(ptf.refValue_),
124 refGrad_(ptf.refGrad_),
125 valueFraction_(ptf.valueFraction_)
141 refCast<const mixedFvPatchField<Type>>(ptf);
143 mapper(refValue_, mptf.refValue_);
144 mapper(refGrad_, mptf.refGrad_);
145 mapper(valueFraction_, mptf.valueFraction_);
155 refCast<const mixedFvPatchField<Type>>(ptf);
158 refGrad_.reset(mptf.refGrad_);
159 valueFraction_.reset(mptf.valueFraction_);
166 if (!this->updated())
168 this->updateCoeffs();
173 valueFraction_*refValue_
175 (1.0 - valueFraction_)*
177 this->patchInternalField()
178 + refGrad_/this->patch().deltaCoeffs()
192 *(refValue_ - this->patchInternalField())
193 *this->patch().deltaCoeffs()
194 + (1.0 - valueFraction_)*refGrad_;
217 valueFraction_*refValue_
218 + (1.0 - valueFraction_)*refGrad_/this->patch().deltaCoeffs();
235 valueFraction_*this->patch().deltaCoeffs()*refValue_
236 + (1.0 - valueFraction_)*refGrad_;
246 writeEntry(os,
"valueFraction", valueFraction_);
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
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....
Foam::fvPatchFieldMapper.
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 fvPatchFieldMapper &)
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 void map(const fvPatchField< Type > &, const fvPatchFieldMapper &)
Map the given fvPatchField onto this fvPatchField.
virtual tmp< Field< Type > > valueBoundaryCoeffs(const tmp< scalarField > &) const
Return the matrix source coefficients corresponding to the.
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)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)