Go to the documentation of this file.
91 direction_(fanFlowDirectionNames_.read(
dict.lookup(
"direction")))
137 scalar volFlowRate = 0;
141 volFlowRate = dir*
gSum(phip);
147 volFlowRate = dir*
gSum(phip/rhop);
152 <<
"dimensions of phi are not correct"
153 <<
"\n on patch " << patch().name()
165 patch().lookupPatchField<volVectorField, vector>(
UName())
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
This boundary condition can be applied to assign either a pressure inlet or outlet total pressure con...
static const NamedEnum< fanFlowDirection, 2 > fanFlowDirectionNames_
Fan flow directions names.
const dimensionSet dimVelocity
const dimensionSet dimDensity
rDeltaT dimensionedInternalField()
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
interpolationTable< scalar > fanCurve_
Tabulated fan curve.
Type gSum(const FieldField< Field, Type > &f)
fanPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
This boundary condition provides a total pressure condition. Four variants are possible:
const dimensionSet dimArea(sqr(dimLength))
Pre-declare SubField and related Field type.
const word & phiName() const
Return the name of the flux field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
const word & UName() const
Return the name of the velocity field.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
A list of keyword definitions, which are a keyword followed by any number of values (e....
fanFlowDirection
Fan flow direction.
Macros for easy insertion into run-time selection tables.
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
const word & rhoName() const
Return the name of the density field.
const scalarField & p0() const
Return the total pressure.
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
fanFlowDirection direction_
Direction of flow through the fan relative to patch.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void write(Ostream &) const
Write.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Generic GeometricField class.
virtual void write(Ostream &) const
Write.
Initialise the NamedEnum HashTable from the static list of names.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...