Go to the documentation of this file.
40 gradient_(
p.size(),
Zero)
54 gradient_(ptf.gradient_, mapper)
67 gradient_(
"gradient",
dict,
p.size())
80 gradient_(ptf.gradient_)
92 gradient_(ptf.gradient_)
105 gradient_.autoMap(m);
119 refCast<const fixedGradientFaPatchField<Type>>(ptf);
121 gradient_.
rmap(fgptf.gradient_, addr);
128 if (!this->updated())
130 this->updateCoeffs();
135 this->patchInternalField() + gradient_/this->
patch().deltaCoeffs()
160 return gradient()/this->
patch().deltaCoeffs();
184 gradient_.writeEntry(
"gradient",
os);
virtual tmp< Field< Type > > gradientInternalCoeffs() const
Return the matrix diagonal coefficients corresponding to the.
faPatchField<Type> abstract base class. This class gives a fat-interface to all derived classes cover...
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
virtual void write(Ostream &) const
Write.
fixedGradientFaPatchField(const faPatch &, const DimensionedField< Type, areaMesh > &)
Construct from patch and internal field.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
virtual tmp< Field< Type > > valueBoundaryCoeffs(const tmp< scalarField > &) const
Return the matrix source coefficients corresponding to the.
Generic templated field type.
Author Zeljko Tukovic, FMENA Hrvoje Jasak, Wikki Ltd.
virtual void autoMap(const faPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
commsTypes
Types of communications.
virtual tmp< Field< Type > > valueInternalCoeffs(const tmp< scalarField > &) const
Return the matrix diagonal coefficients corresponding to the.
const std::string patch
OpenFOAM patch number as a std::string.
A traits class, which is primarily used for primitives.
virtual void rmap(const faPatchField< Type > &, const labelList &)
Reverse map the given faPatchField onto this faPatchField.
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.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual tmp< Field< Type > > gradientBoundaryCoeffs() const
Return the matrix source coefficients corresponding to the.
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.