Go to the documentation of this file.
45 refValue() = vector::zero;
46 refGrad() = vector::zero;
47 valueFraction() = 0.0;
76 alphaName_(
dict.lookup(
"alpha"))
78 refValue() = vector::zero;
79 refGrad() = vector::zero;
80 valueFraction() = 0.0;
82 if (
dict.found(
"value"))
84 fvPatchVectorField::operator=
91 fvPatchVectorField::operator=(patchInternalField());
133 alphap =
max(alphap, scalar(0));
134 alphap =
min(alphap, scalar(1));
141 gSum(alphap*(patch().Sf() & Uzg))
142 /
gSum(alphap*patch().magSf());
149 valueFraction() = 1.0 -
Umean_/Uzgmean;
153 refValue() = (
Umean_ + Uzgmean)*patch().nf();
154 valueFraction() = 1.0 - Uzgmean/
Umean_;
172 writeEntry(
"value", os);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
Type gSum(const FieldField< Field, Type > &f)
outletPhaseMeanVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
Pre-declare SubField and related Field type.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
volVectorField vectorField(fieldObject, mesh)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
This boundary condition provides a base class for 'mixed' type boundary conditions,...
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
This boundary condition adjusts the velocity for the given phase to achieve the specified mean thus c...
Foam::fvPatchFieldMapper.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
word alphaName_
Name of the phase-fraction field.
virtual void write(Ostream &) const
Write.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
scalar Umean_
Inlet integral flow rate.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...