44 alphaName_(
dict.lookup(
"alpha"))
48 valueFraction() = 0.0;
50 if (
dict.found(
"value"))
74 UnMean_(ptf.UnMean_, false),
75 alphaName_(ptf.alphaName_)
87 UnMean_(ptf.UnMean_, false),
88 alphaName_(ptf.alphaName_)
101 const scalar t = this->db().time().userTimeValue();
106 alphap =
max(alphap, scalar(0));
107 alphap =
min(alphap, scalar(1));
113 const scalar UnzgMean =
114 gSum(alphap*(patch().Sf() & Uzg))
115 /
gSum(alphap*patch().magSf());
119 const scalar UnMean = UnMean_->value(t);
120 if (UnzgMean >= UnMean)
123 valueFraction() = 1.0 - UnMean/UnzgMean;
127 refValue() = (UnMean + UnzgMean)*patch().nf();
128 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...
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....
Foam::fvPatchFieldMapper.
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.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)