47 valueFraction() = 0.0;
61 alphaName_(dict.
lookup(
"alpha"))
65 valueFraction() = 0.0;
67 if (dict.
found(
"value"))
69 fvPatchVectorField::operator=
76 fvPatchVectorField::operator=(patchInternalField());
91 UnMean_(ptf.UnMean_,
false),
92 alphaName_(ptf.alphaName_)
104 UnMean_(ptf.UnMean_,
false),
105 alphaName_(ptf.alphaName_)
118 const scalar t = this->db().time().userTimeValue();
123 alphap =
max(alphap, scalar(0));
124 alphap =
min(alphap, scalar(1));
130 const scalar UnzgMean =
131 gSum(alphap*(patch().Sf() & Uzg))
132 /
gSum(alphap*patch().magSf());
136 const scalar UnMean = UnMean_->value(t);
137 if (UnzgMean >= UnMean)
140 valueFraction() = 1.0 - UnMean/UnzgMean;
144 refValue() = (UnMean + UnzgMean)*patch().nf();
145 valueFraction() = 1.0 - UnzgMean/UnMean;
outletPhaseMeanVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
Run-time selectable general function of one variable.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
virtual void write(Ostream &) const
Write.
A list of keyword definitions, which are a keyword followed by any number of values (e...
void size(const label)
Override size to be inconsistent with allocated storage.
This boundary condition adjusts the velocity for the given phase to achieve the specified mean thus c...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a base class for 'mixed' type boundary conditions, i.e. conditions that mix fixed value and patch-normal gradient conditions.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
volVectorField vectorField(fieldObject, mesh)
virtual void write(Ostream &) const
Write.
Macros for easy insertion into run-time selection tables.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Type gSum(const FieldField< Field, Type > &f)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Foam::fvPatchFieldMapper.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.