47 valueFraction() = 0.0;
61 UnMean_(ptf.UnMean_,
false),
62 alphaName_(ptf.alphaName_)
76 alphaName_(dict.
lookup(
"alpha"))
80 valueFraction() = 0.0;
82 if (dict.
found(
"value"))
84 fvPatchVectorField::operator=
91 fvPatchVectorField::operator=(patchInternalField());
103 UnMean_(ptf.UnMean_,
false),
104 alphaName_(ptf.alphaName_)
116 UnMean_(ptf.UnMean_,
false),
117 alphaName_(ptf.alphaName_)
130 const scalar t = this->db().time().timeOutputValue();
135 alphap =
max(alphap, scalar(0));
136 alphap =
min(alphap, scalar(1));
142 const scalar UnzgMean =
143 gSum(alphap*(patch().
Sf() & Uzg))
144 /
gSum(alphap*patch().magSf());
148 const scalar UnMean = UnMean_->value(t);
149 if (UnzgMean >= UnMean)
152 valueFraction() = 1.0 - UnMean/UnzgMean;
156 refValue() = (UnMean + UnzgMean)*patch().nf();
157 valueFraction() = 1.0 - UnzgMean/UnMean;
outletPhaseMeanVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
virtual void write(Ostream &) const
Write.
A list of keyword definitions, which are a keyword followed by any number of values (e...
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
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.
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)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
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.