Go to the documentation of this file.
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())
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);
A class for managing temporary objects.
virtual tmp< Field< Type > > valueInternalCoeffs(const tmp< scalarField > &) const
friend Ostream & operator(Ostream &, const Field< Type > &)
virtual void autoMap(const faPatchFieldMapper &)
virtual tmp< Field< Type > > valueBoundaryCoeffs(const tmp< scalarField > &) const
virtual void rmap(const faPatchField< Type > &, const labelList &)
Generic templated field type.
virtual tmp< Field< Type > > gradientBoundaryCoeffs() const
mixedFaPatchField(const faPatch &, const DimensionedField< Type, areaMesh > &)
virtual tmp< Field< Type > > gradientInternalCoeffs() const
virtual void write(Ostream &) const
Author Zeljko Tukovic, FMENA Hrvoje Jasak, Wikki Ltd.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A traits class, which is primarily used for primitives.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Finite area patch class. Used for 2-D non-Euclidian finite area method.
virtual tmp< Field< Type > > snGrad() const
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
string evaluate(label fieldWidth, const std::string &s, size_t pos=0, size_t len=std::string::npos)