74 direction_(fanFlowDirectionNames_.
read(
dict.lookup(
"direction")))
87 fanCurve_(pfopsf.fanCurve_, false),
88 direction_(pfopsf.direction_)
99 fanCurve_(pfopsf.fanCurve_, false),
100 direction_(pfopsf.direction_)
119 const int sign = direction_ ? +1 : -1;
122 scalar volFlowRate = 0;
140 <<
"dimensions of phi are not correct"
141 <<
"\n on patch " << patch().name()
142 <<
" of field " << internalField().name()
143 <<
" in file " << internalField().objectPath() <<
nl
148 const scalar dp0 = fanCurve_->value(
max(volFlowRate, scalar(0)));
162 writeEntry(os,
"direction", fanFlowDirectionNames_[direction_]);
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.
Initialise the NamedEnum HashTable from the static list of names.
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....
void updateCoeffs(const scalarField &p0p, const scalarField &K0mKp)
Update the coefficients associated with the patch field.
This boundary condition can be applied to assign either a pressure inlet or outlet total pressure con...
virtual void write(Ostream &) const
Write.
fanFlowDirection
Fan flow direction.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
fanPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
static const NamedEnum< fanFlowDirection, 2 > fanFlowDirectionNames_
Fan flow directions names.
Abstract base class for field mapping.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
const DimensionedField< Type, surfaceMesh > & internalField() const
Return dimensioned internal field reference.
Inflow, outflow and entrainment pressure boundary condition based on a constant total pressure assump...
virtual void write(Ostream &) const
Write.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
errorManipArg< error, int > exit(error &err, const int errNo=1)
Type gSum(const FieldField< Field, Type > &f)
VolField< vector > volVectorField
dimensionedScalar sign(const dimensionedScalar &ds)
const HashTable< dimensionSet > & dimensions()
Get the table of dimension sets.
const dimensionSet dimMassFlux
const dimensionSet dimVolumetricFlux
SurfaceField< scalar > surfaceScalarField
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
VolField< scalar > volScalarField
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
dimensionedScalar neg(const dimensionedScalar &ds)
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
dimensioned< scalar > magSqr(const dimensioned< Type > &)