52 gradient_(
"gradient", dict, p.
size())
68 gradient_(mapper(ptf.gradient_))
73 <<
"On field " << iF.name() <<
" patch " << p.name()
74 <<
" patchField " << this->
type()
75 <<
" : mapper does not map all values." <<
nl 76 <<
" To avoid this warning fully specify the mapping in derived" 77 <<
" patch fields." <<
endl;
89 gradient_(ptf.gradient_)
101 gradient_(ptf.gradient_)
114 m(gradient_, gradient_);
128 refCast<const fixedGradientFvPatchField<Type>>(ptf);
130 gradient_.
rmap(fgptf.gradient_, addr);
137 if (!this->updated())
139 this->updateCoeffs();
144 this->patchInternalField() + gradient_/this->patch().deltaCoeffs()
169 return gradient()/this->patch().deltaCoeffs();
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
A list of keyword definitions, which are a keyword followed by any number of values (e...
commsTypes
Types of communications.
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Traits class for primitives.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual tmp< Field< Type > > gradientBoundaryCoeffs() const
Return the matrix source coefficients corresponding to the.
virtual void write(Ostream &) const
Write.
virtual tmp< Field< Type > > valueInternalCoeffs(const tmp< scalarField > &) const
Return the matrix diagonal coefficients corresponding to the.
fixedGradientFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
Pre-declare SubField and related Field type.
Foam::fvPatchFieldMapper.
virtual tmp< Field< Type > > valueBoundaryCoeffs(const tmp< scalarField > &) const
Return the matrix source coefficients corresponding to the.
virtual bool hasUnmapped() const =0
Are there unmapped values? I.e. do all size() elements get.
virtual tmp< Field< Type > > gradientInternalCoeffs() const
Return the matrix diagonal coefficients corresponding to the.
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 evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
bool notNull(const T &t)
Return true if t is not a reference to the nullObject of type T.
#define WarningInFunction
Report a warning using Foam::Warning.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
A class for managing temporary objects.