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;
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);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
virtual void write(Ostream &) const
Write.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual bool hasUnmapped() const =0
Are there unmapped values? I.e. do all size() elements get.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
Generic templated field type.
virtual tmp< Field< Type > > valueBoundaryCoeffs(const tmp< scalarField > &) const
Return the matrix source coefficients corresponding to the.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
bool notNull(const T *ptr)
True if ptr is not a pointer (of type T) to the nullObject.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual tmp< Field< Type > > valueInternalCoeffs(const tmp< scalarField > &) const
Return the matrix diagonal coefficients corresponding to the.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
fixedGradientFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
commsTypes
Types of communications.
const std::string patch
OpenFOAM patch number as a std::string.
Traits class for primitives.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
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 &)
Reverse map the given fvPatchField onto this fvPatchField.
#define WarningInFunction
Report a warning using Foam::Warning.
string evaluate(const std::string &s, size_t pos=0, size_t len=std::string::npos)
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.
virtual tmp< Field< Type > > gradientInternalCoeffs() const
Return the matrix diagonal coefficients corresponding to the.