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();
90 const alphaContactAngleTwoPhaseFvPatchScalarField& acpsf,
92 const DimensionedField<scalar, volMesh>& iF,
93 const fvPatchFieldMapper& mapper
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)
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
commsTypes
Types of communications.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
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.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
OBJstream os(runTime.globalPath()/outputName)
void operator=(const Field< scalar > &)
Copy assignment.
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
virtual void operator=(const UList< Type > &)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const std::string patch
OpenFOAM patch number as a std::string.