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())
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);
faPatchField<Type> abstract base class. This class gives a fat-interface to all derived classes cover...
A class for managing temporary objects.
virtual tmp< Field< Type > > valueInternalCoeffs(const tmp< scalarField > &) const
Return the matrix diagonal coefficients corresponding to the.
virtual void autoMap(const faPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual tmp< Field< Type > > valueBoundaryCoeffs(const tmp< scalarField > &) const
Return the matrix source coefficients corresponding to the.
virtual void rmap(const faPatchField< Type > &, const labelList &)
Reverse map the given faPatchField onto this faPatchField.
Generic templated field type.
virtual tmp< Field< Type > > gradientBoundaryCoeffs() const
Return the matrix source coefficients corresponding to the.
mixedFaPatchField(const faPatch &, const DimensionedField< Type, areaMesh > &)
Construct from patch and internal field.
virtual tmp< Field< Type > > gradientInternalCoeffs() const
Return the matrix diagonal coefficients corresponding to the.
virtual void write(Ostream &) const
Write.
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)
commsTypes
Types of communications.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
const std::string patch
OpenFOAM patch number as a std::string.
A traits class, which is primarily used for primitives.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
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
Return gradient at boundary.
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)
String evaluation with specified (positive, non-zero) field width.