42 valueFraction_(
p.size())
56 refValue_(ptf.refValue_, mapper),
57 refGrad_(ptf.refGrad_, mapper),
58 valueFraction_(ptf.valueFraction_, mapper)
71 refValue_(
"refValue",
dict,
p.size()),
72 refGrad_(
"refGradient",
dict,
p.size()),
73 valueFraction_(
"valueFraction",
dict,
p.size())
86 refValue_(ptf.refValue_),
87 refGrad_(ptf.refGrad_),
88 valueFraction_(ptf.valueFraction_)
100 refValue_(ptf.refValue_),
101 refGrad_(ptf.refGrad_),
102 valueFraction_(ptf.valueFraction_)
115 refValue_.autoMap(m);
117 valueFraction_.autoMap(m);
131 refCast<const mixedFaPatchField<Type>>(ptf);
133 refValue_.
rmap(mptf.refValue_, addr);
134 refGrad_.rmap(mptf.refGrad_, addr);
135 valueFraction_.rmap(mptf.valueFraction_, addr);
142 if (!this->updated())
144 this->updateCoeffs();
149 valueFraction_*refValue_
151 (1.0 - valueFraction_)*
153 this->patchInternalField()
154 + refGrad_/this->patch().deltaCoeffs()
167 *(refValue_ - this->patchInternalField())
168 *this->patch().deltaCoeffs()
169 + (1.0 - valueFraction_)*refGrad_;
190 valueFraction_*refValue_
191 + (1.0 - valueFraction_)*refGrad_/this->patch().deltaCoeffs();
208 valueFraction_*this->patch().deltaCoeffs()*refValue_
209 + (1.0 - valueFraction_)*refGrad_;
217 refValue_.writeEntry(
"refValue",
os);
218 refGrad_.writeEntry(
"refGradient",
os);
219 valueFraction_.writeEntry(
"valueFraction",
os);
220 this->writeEntry(
"value",
os);
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic templated field type.
void autoMap(const FieldMapper &map, const bool applyFlip=true)
Map from self.
void evaluate()
Evaluate boundary conditions.
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 a number of values (eg,...
A FieldMapper for finite-area patch fields.
faPatchField<Type> abstract base class. This class gives a fat-interface to all derived classes cover...
virtual void rmap(const faPatchField< Type > &, const labelList &)
Reverse map the given faPatchField onto this faPatchField.
Finite area patch class. Used for 2-D non-Euclidian finite area method.
virtual bool write()
Write the output fields.
Author Zeljko Tukovic, FMENA Hrvoje Jasak, Wikki Ltd.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
virtual tmp< Field< Type > > gradientInternalCoeffs() const
Return the matrix diagonal coefficients corresponding to the.
virtual void rmap(const faPatchField< Type > &, const labelList &)
Reverse map the given faPatchField onto this faPatchField.
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 tmp< Field< Type > > valueBoundaryCoeffs(const tmp< scalarField > &) const
Return the matrix source coefficients corresponding to the.
virtual void autoMap(const faPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to b...
A class for managing temporary objects.
OBJstream os(runTime.globalPath()/outputName)