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);
151 FatalErrorIn(
"fanPressureFvPatchScalarField::updateCoeffs()")
152 <<
"dimensions of phi are not correct" 153 <<
"\n on patch " << patch().name()
160 const scalar pdFan = fanCurve_(
max(volFlowRate, 0.0));
165 patch().lookupPatchField<volVectorField, vector>(UName())
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual void write(Ostream &) const
Write.
This boundary condition can be applied to assign either a pressure inlet or outlet total pressure con...
const dimensionSet dimArea(sqr(dimLength))
This boundary condition provides a total pressure condition. Four variants are possible: ...
errorManipArg< error, int > exit(error &err, const int errNo=1)
Foam::fvPatchFieldMapper.
fanFlowDirection
Fan flow direction.
const dimensionSet dimDensity
A list of keyword definitions, which are a keyword followed by any number of values (e...
Type gSum(const FieldField< Field, Type > &f)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
static const NamedEnum< fanFlowDirection, 2 > fanFlowDirectionNames_
Fan flow directions names.
Macros for easy insertion into run-time selection tables.
const dimensionSet & dimensions() const
Return dimensions.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
Initialise the NamedEnum HashTable from the static list of names.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
rDeltaT dimensionedInternalField()
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
fanPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
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...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
const dimensionSet dimVelocity
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...