48 valueFraction() = 0.0;
63 ramp_(ptf.ramp_,
false),
64 alphaName_(ptf.alphaName_)
84 alphaName_(dict.
lookup(
"alpha"))
88 valueFraction() = 0.0;
90 if (dict.
found(
"value"))
92 fvPatchVectorField::operator=
99 fvPatchVectorField::operator=(patchInternalField());
112 ramp_(ptf.ramp_,
false),
113 alphaName_(ptf.alphaName_)
126 ramp_(ptf.ramp_,
false),
127 alphaName_(ptf.alphaName_)
140 const scalar t = this->db().time().timeOutputValue();
145 alphap =
max(alphap, scalar(0));
146 alphap =
min(alphap, scalar(1));
153 gSum(alphap*(patch().Sf() & Uzg))
154 /
gSum(alphap*patch().magSf());
158 const scalar Umean = (ramp_.valid() ? ramp_->value(t) : 1)*Umean_;
159 if (Uzgmean >= Umean)
162 valueFraction() = 1.0 - Umean/Uzgmean;
166 refValue() = (Umean + Uzgmean)*patch().nf();
167 valueFraction() = 1.0 - Uzgmean/Umean;
184 ramp_->writeData(os);
187 writeEntry(
"value", os);
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.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
stressControl lookup("compactNormalStress") >> compactNormalStress
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...
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
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...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.