Go to the documentation of this file.
45 mixedFvPatchScalarField(
p, iF),
46 phaseFraction_(
"alpha"),
51 this->refValue() = 0.0;
52 this->refGrad() = 0.0;
53 this->valueFraction() = 0.0;
65 mixedFvPatchScalarField(
p, iF),
66 phaseFraction_(
dict.getOrDefault<
word>(
"phaseFraction",
"alpha")),
68 pRefValue_(
dict.
get<scalar>(
"pRefValue")),
75 if (
dict.found(
"value"))
87 this->refGrad() = 0.0;
88 this->valueFraction() = 0.0;
101 mixedFvPatchScalarField(ptf,
p, iF, mapper),
102 phaseFraction_(ptf.phaseFraction_),
104 pRefValue_(ptf.pRefValue_),
105 pRefPoint_(ptf.pRefPoint_)
115 mixedFvPatchScalarField(ptf),
116 phaseFraction_(ptf.phaseFraction_)
127 mixedFvPatchScalarField(ptf, iF),
128 phaseFraction_(ptf.phaseFraction_),
130 pRefValue_(ptf.pRefValue_),
131 pRefPoint_(ptf.pRefPoint_)
156 valueFraction() =
max(
min(alphap, scalar(1)), scalar(0));
162 mixedFvPatchScalarField::updateCoeffs();
173 writeEntry(
"value",
os);
179 void Foam::phaseHydrostaticPressureFvPatchScalarField::operator=
186 valueFraction()*refValue() + (1 - valueFraction())*ptf
198 phaseHydrostaticPressureFvPatchScalarField
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
fvPatchField< scalar > fvPatchScalarField
virtual void write(Ostream &) const
virtual void operator=(const UList< Type > &)
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A class for handling words, derived from Foam::string.
static constexpr const zero Zero
friend Ostream & operator(Ostream &, const fvPatchField< Type > &)
const Type & value() const
label min(const labelHashSet &set, label minValue=labelMax)
Generic templated field type.
UniformDimensionedField< vector > uniformDimensionedVectorField
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a phase-based hydrostatic pressure condition, calculated as:
GeometricField< scalar, fvPatchField, volMesh > volScalarField
label max(const labelHashSet &set, label maxValue=labelMin)
Lookup type of boundary radiation properties.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
phaseHydrostaticPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
const uniformDimensionedVectorField & g
virtual void updateCoeffs()
Ostream & writeEntry(const keyType &key, const T &value)
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
virtual void write(Ostream &) const
static const gravity & New(const Time &runTime)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...