Go to the documentation of this file.
41 { limitControls::lcNone,
"none" },
42 { limitControls::lcGradient,
"gradient" },
43 { limitControls::lcZeroGradient,
"zeroGradient" },
44 { limitControls::lcAlpha,
"alpha" },
57 fixedGradientFvPatchScalarField(
p, iF),
58 limit_(lcZeroGradient)
70 fixedGradientFvPatchScalarField(
p, iF),
71 limit_(limitControlNames_.get(
"limit",
dict))
73 if (
dict.found(
"gradient"))
76 fixedGradientFvPatchScalarField::updateCoeffs();
96 fixedGradientFvPatchScalarField(acpsf,
p, iF, mapper),
107 fixedGradientFvPatchScalarField(acpsf),
119 fixedGradientFvPatchScalarField(acpsf, iF),
131 if (limit_ == lcGradient)
134 patch().deltaCoeffs()
138 *
this + gradient()/
patch().deltaCoeffs(),
139 scalar(1)), scalar(0)
143 else if (limit_ == lcZeroGradient)
150 if (limit_ == lcAlpha)
152 scalarField::operator=(
max(
min(*
this, scalar(1)), scalar(0)));
163 os.writeEntry(
"limit", limitControlNames_[limit_]);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
commsTypes
Types of communications.
const std::string patch
OpenFOAM patch number as a std::string.
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,...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
string evaluate(label fieldWidth, const std::string &s, size_t pos=0, size_t len=std::string::npos)
String evaluation with specified (positive, non-zero) field width.