48 db().time().userUnits(),
53 alphaName_(
dict.lookup(
"alpha"))
57 valueFraction() = 0.0;
59 if (
dict.found(
"value"))
83 UnMean_(ptf.UnMean_, false),
84 alphaName_(ptf.alphaName_)
96 UnMean_(ptf.UnMean_, false),
97 alphaName_(ptf.alphaName_)
113 alphap =
max(alphap, scalar(0));
114 alphap =
min(alphap, scalar(1));
120 const scalar UnzgMean =
121 gSum(alphap*(patch().Sf() & Uzg))
122 /
gSum(alphap*patch().magSf());
126 const scalar UnMean = UnMean_->value(db().time().value());
127 if (UnzgMean >= UnMean)
130 valueFraction() = 1.0 - UnMean/UnzgMean;
134 refValue() = (UnMean + UnzgMean)*patch().nf();
135 valueFraction() = 1.0 - UnzgMean/UnMean;
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionSet & dimensions() const
Return dimensions.
Run-time selectable general function of one variable.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base class for field mapping.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
friend Ostream & operator(Ostream &, const fvPatchField< Type > &)
virtual void operator=(const UList< Type > &)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a base class for 'mixed' type boundary conditions,...
This boundary condition adjusts the velocity for the given phase to achieve the specified mean thus c...
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
outletPhaseMeanVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
Type gSum(const FieldField< Field, Type > &f)
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
VolField< scalar > volScalarField
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
Field< vector > vectorField
Specialisation of Field<T> for vector.
const dimensionSet dimVelocity
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)