Go to the documentation of this file.
41 gradient_(
p.size(),
Zero)
54 gradient_(
"gradient",
dict,
p.size())
70 gradient_(ptf.gradient_, mapper)
75 <<
"On field " << iF.name() <<
" patch " <<
p.name()
76 <<
" patchField " << this->
type()
77 <<
" : mapper does not map all values." <<
nl
78 <<
" To avoid this warning fully specify the mapping in derived"
79 <<
" patch fields." <<
endl;
87 const fixedGradientFvPatchField<Type>& ptf
91 gradient_(ptf.gradient_)
103 gradient_(ptf.gradient_)
116 gradient_.autoMap(m);
130 refCast<const fixedGradientFvPatchField<Type>>(ptf);
132 gradient_.
rmap(fgptf.gradient_, addr);
139 if (!this->updated())
141 this->updateCoeffs();
146 this->patchInternalField() + gradient_/this->
patch().deltaCoeffs()
171 return gradient()/this->
patch().deltaCoeffs();
195 gradient_.writeEntry(
"gradient",
os);
virtual void write(Ostream &) const
A class for managing temporary objects.
static constexpr const zero Zero
virtual void write(Ostream &) const
friend Ostream & operator(Ostream &, const Field< Type > &)
Ostream & endl(Ostream &os)
virtual bool hasUnmapped() const =0
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Generic templated field type.
virtual tmp< Field< Type > > valueBoundaryCoeffs(const tmp< scalarField > &) const
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void autoMap(const fvPatchFieldMapper &)
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
bool notNull(const T *ptr)
virtual void rmap(const fvPatchField< Type > &, const labelList &)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
virtual tmp< Field< Type > > valueInternalCoeffs(const tmp< scalarField > &) const
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
fixedGradientFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
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.
fileName::Type type(const fileName &name, const bool followLink=true)
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
This boundary condition supplies a fixed gradient condition, such that the patch values are calculate...
virtual void rmap(const fvPatchField< Type > &, const labelList &)
#define WarningInFunction
virtual void autoMap(const fvPatchFieldMapper &)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual tmp< Field< Type > > gradientBoundaryCoeffs() const
string evaluate(label fieldWidth, const std::string &s, size_t pos=0, size_t len=std::string::npos)
virtual tmp< Field< Type > > gradientInternalCoeffs() const