58 gradient_(ptf.gradient_, mapper)
64 "fixedGradientFvPatchField<Type>::fixedGradientFvPatchField\n" 66 " const fixedGradientFvPatchField<Type>&,\n" 68 " const DimensionedField<Type, volMesh>&,\n" 69 " const fvPatchFieldMapper&\n" 71 ) <<
"On field " << iF.name() <<
" patch " << p.name()
72 <<
" patchField " << this->
type()
73 <<
" : mapper does not map all values." <<
nl 74 <<
" To avoid this warning fully specify the mapping in derived" 75 <<
" patch fields." <<
endl;
89 gradient_(
"gradient", dict, p.
size())
102 gradient_(ptf.gradient_)
114 gradient_(ptf.gradient_)
127 gradient_.autoMap(m);
141 refCast<const fixedGradientFvPatchField<Type> >(ptf);
143 gradient_.
rmap(fgptf.gradient_, addr);
150 if (!this->updated())
152 this->updateCoeffs();
157 this->patchInternalField() + gradient_/this->patch().deltaCoeffs()
180 return gradient()/this->patch().deltaCoeffs();
207 gradient_.writeEntry(
"gradient", os);
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
void size(const label)
Override size to be inconsistent with allocated storage.
Foam::fvPatchFieldMapper.
bool notNull(const T &t)
Return true if t is not a reference to the nullObject of type T.
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
fixedGradientFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual void write(Ostream &) const
Write.
virtual tmp< Field< Type > > gradientInternalCoeffs() const
Return the matrix diagonal coefficients corresponding to the.
Ostream & endl(Ostream &os)
Add newline and flush stream.
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 WarningIn(functionName)
Report a warning using Foam::Warning.
virtual tmp< Field< Type > > valueBoundaryCoeffs(const tmp< scalarField > &) const
Return the matrix source coefficients corresponding to the.
commsTypes
Types of communications.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Pre-declare SubField and related Field type.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::blocking)
Evaluate the patch field, sets Updated to false.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
Traits class for primitives.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void write(Ostream &) const
Write.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::blocking)
Evaluate the patch field.
virtual bool hasUnmapped() const =0
Are there unmapped values? I.e. do all size() elements get.
virtual tmp< Field< Type > > gradientBoundaryCoeffs() const
Return the matrix source coefficients corresponding to the.
A class for managing temporary objects.
virtual tmp< Field< Type > > valueInternalCoeffs(const tmp< scalarField > &) const
Return the matrix diagonal coefficients corresponding to the.