67 fixedGradientFvPatchScalarField(p, iF),
68 limit_(lcZeroGradient)
79 fixedGradientFvPatchScalarField(p, iF),
80 limit_(limitControlNames_.read(dict.
lookup(
"limit")))
82 if (dict.
found(
"gradient"))
85 fixedGradientFvPatchScalarField::updateCoeffs();
104 fixedGradientFvPatchScalarField(acpsf, p, iF, mapper),
115 fixedGradientFvPatchScalarField(acpsf, iF),
127 if (limit_ == lcGradient)
130 patch().deltaCoeffs()
134 *
this + gradient()/patch().deltaCoeffs(),
135 scalar(1)), scalar(0)
139 else if (limit_ == lcZeroGradient)
146 if (limit_ == lcAlpha)
159 writeEntry(os,
"limit", limitControlNames_[limit_]);
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
void evaluate(GeometricField< Type, PatchField, GeoMesh > &result, const Function1< Type > &func, const GeometricField< Type, PatchField, GeoMesh > &x)
A list of keyword definitions, which are a keyword followed by any number of values (e...
commsTypes
Types of communications.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Initialise the NamedEnum HashTable from the static list of names.
Macros for easy insertion into run-time selection tables.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Foam::fvPatchFieldMapper.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
virtual label size() const
Return size.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void operator=(const Field< scalar > &)
defineTypeNameAndDebug(combustionModel, 0)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
virtual void operator=(const UList< Type > &)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.