77 fanCurve_(ptf.fanCurve_),
78 direction_(ptf.direction_)
91 direction_(fanFlowDirectionNames_.read(dict.
lookup(
"direction")))
101 fanCurve_(pfopsf.fanCurve_),
102 direction_(pfopsf.direction_)
113 fanCurve_(pfopsf.fanCurve_),
114 direction_(pfopsf.direction_)
134 int dir = 2*direction_ - 1;
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()
154 <<
" of field " << internalField().name()
155 <<
" in file " << internalField().objectPath() <<
nl 160 const scalar pdFan = fanCurve_(
max(volFlowRate, 0.0));
165 patch().lookupPatchField<volVectorField, vector>(UName())
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
errorManipArg< error, int > exit(error &err, const int errNo=1)
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 > &)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual void write(Ostream &) const
Write.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition can be applied to assign either a pressure inlet or outlet total pressure con...
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Initialise the NamedEnum HashTable from the static list of names.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Macros for easy insertion into run-time selection tables.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
Type gSum(const FieldField< Field, Type > &f)
Foam::fvPatchFieldMapper.
const dimensionSet & dimensions() const
Return dimensions.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
fanFlowDirection
Fan flow direction.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
const dimensionSet dimDensity
virtual void write(Ostream &) const
Write.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
static const NamedEnum< fanFlowDirection, 2 > fanFlowDirectionNames_
Fan flow directions names.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
const dimensionSet dimArea(sqr(dimLength))
fanPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
const dimensionSet dimVelocity
This boundary condition provides a total pressure condition. Four variants are possible: ...