41 { limitControls::lcNone,
"none" },
42 { limitControls::lcGradient,
"gradient" },
43 { limitControls::lcZeroGradient,
"zeroGradient" },
44 { limitControls::lcAlpha,
"alpha" },
50Foam::alphaContactAngleTwoPhaseFvPatchScalarField::
51alphaContactAngleTwoPhaseFvPatchScalarField
57 fixedGradientFvPatchScalarField(
p, iF),
58 limit_(lcZeroGradient)
62Foam::alphaContactAngleTwoPhaseFvPatchScalarField::
63alphaContactAngleTwoPhaseFvPatchScalarField
70 fixedGradientFvPatchScalarField(
p, iF),
71 limit_(limitControlNames_.get(
"limit",
dict))
76 fixedGradientFvPatchScalarField::updateCoeffs();
77 fixedGradientFvPatchScalarField::evaluate();
87Foam::alphaContactAngleTwoPhaseFvPatchScalarField::
88alphaContactAngleTwoPhaseFvPatchScalarField
96 fixedGradientFvPatchScalarField(acpsf,
p, iF, mapper),
101Foam::alphaContactAngleTwoPhaseFvPatchScalarField::
102alphaContactAngleTwoPhaseFvPatchScalarField
107 fixedGradientFvPatchScalarField(acpsf),
112Foam::alphaContactAngleTwoPhaseFvPatchScalarField::
113alphaContactAngleTwoPhaseFvPatchScalarField
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)
148 fixedGradientFvPatchScalarField::evaluate();
150 if (limit_ == lcAlpha)
162 fixedGradientFvPatchScalarField::write(
os);
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
void operator=(const Field< scalar > &)
Copy assignment.
void evaluate()
Evaluate boundary conditions.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
void size(const label n)
Older name for setAddressableSize.
commsTypes
Types of communications.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
virtual void operator=(const UList< Type > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
OBJstream os(runTime.globalPath()/outputName)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.