37Foam::outletPhaseMeanVelocityFvPatchVectorField
38::outletPhaseMeanVelocityFvPatchVectorField
50 valueFraction() = 0.0;
54Foam::outletPhaseMeanVelocityFvPatchVectorField
55::outletPhaseMeanVelocityFvPatchVectorField
65 alphaName_(ptf.alphaName_)
69Foam::outletPhaseMeanVelocityFvPatchVectorField
70::outletPhaseMeanVelocityFvPatchVectorField
78 Umean_(
dict.get<scalar>(
"Umean")),
85 valueFraction() = 0.0;
101Foam::outletPhaseMeanVelocityFvPatchVectorField
102::outletPhaseMeanVelocityFvPatchVectorField
109 alphaName_(ptf.alphaName_)
113Foam::outletPhaseMeanVelocityFvPatchVectorField
114::outletPhaseMeanVelocityFvPatchVectorField
122 alphaName_(ptf.alphaName_)
138 alphap =
max(alphap, scalar(0));
139 alphap =
min(alphap, scalar(1));
146 gSum(alphap*(patch().Sf() & Uzg))
147 /
gSum(alphap*patch().magSf());
151 if (Uzgmean >= Umean_)
154 valueFraction() = 1.0 - Umean_/Uzgmean;
158 refValue() = (Umean_ + Uzgmean)*patch().nf();
159 valueFraction() = 1.0 - Uzgmean/Umean_;
175 writeEntry(
"value",
os);
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...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
void size(const label n)
Older name for setAddressableSize.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
virtual void operator=(const UList< vector > &)
friend Ostream & operator(Ostream &, const fvPatchField< vector > &)
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 updateCoeffs()
Update the coefficients associated with the patch field.
Lookup type of boundary radiation properties.
A class for handling words, derived from Foam::string.
static const word null
An empty word.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Type gSum(const FieldField< Field, Type > &f)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
Field< vector > vectorField
Specialisation of Field<T> for vector.
static constexpr const zero Zero
Global zero (0)