This boundary condition can be applied to assign either a pressure inlet or outlet total pressure condition for a fan. More...
Public Types | |
enum | fanFlowDirection { ffdIn, ffdOut } |
Fan flow direction. More... | |
Public Member Functions | |
TypeName ("fanPressure") | |
Runtime type information. More... | |
fanPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. More... | |
fanPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
fanPressureFvPatchScalarField (const fanPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given. More... | |
fanPressureFvPatchScalarField (const fanPressureFvPatchScalarField &) | |
Construct as copy. More... | |
virtual tmp< fvPatchScalarField > | clone () const |
Construct and return a clone. More... | |
fanPressureFvPatchScalarField (const fanPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< fvPatchScalarField > | clone (const DimensionedField< scalar, volMesh > &iF) const |
Construct and return a clone setting internal field reference. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
virtual void | write (Ostream &os) const |
Write. More... | |
Public Member Functions inherited from totalPressureFvPatchScalarField | |
TypeName ("totalPressure") | |
Runtime type information. More... | |
totalPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. More... | |
totalPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
totalPressureFvPatchScalarField (const totalPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given totalPressureFvPatchScalarField. More... | |
totalPressureFvPatchScalarField (const totalPressureFvPatchScalarField &) | |
Construct as copy. More... | |
totalPressureFvPatchScalarField (const totalPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
const word & | UName () const |
Return the name of the velocity field. More... | |
word & | UName () |
Return reference to the name of the velocity field. More... | |
const word & | phiName () const |
Return the name of the flux field. More... | |
word & | phiName () |
Return reference to the name of the flux field. More... | |
const word & | rhoName () const |
Return the name of the density field. More... | |
word & | rhoName () |
Return reference to the name of the density field. More... | |
const word & | psiName () const |
Return the name of the compressibility field. More... | |
word & | psiName () |
Return reference to the name of the compressibility field. More... | |
scalar | gamma () const |
Return the heat capacity ratio. More... | |
scalar & | gamma () |
Return reference to the heat capacity ratio to allow adjustment. More... | |
const scalarField & | p0 () const |
Return the total pressure. More... | |
scalarField & | p0 () |
Return reference to the total pressure to allow adjustment. More... | |
virtual void | autoMap (const fvPatchFieldMapper &) |
Map (and resize as needed) from self given a mapping object. More... | |
virtual void | rmap (const fvPatchScalarField &, const labelList &) |
Reverse map the given fvPatchField onto this fvPatchField. More... | |
virtual void | updateCoeffs (const scalarField &p0p, const vectorField &Up) |
Update the coefficients associated with the patch field. More... | |
Static Public Attributes | |
static const Enum< fanFlowDirection > | fanFlowDirectionNames_ |
Fan flow direction names. More... | |
This boundary condition can be applied to assign either a pressure inlet or outlet total pressure condition for a fan.
The switch nonDimensional can be used for a non-dimensional table. It needs inputs rpm and dm of the fan.
The nonDimensional flux for the table is calculate as :
phi = 4.0*mDot/(rho*sqr(PI)*dm^3*omega) where: dm is the mean diameter. omega is rad/sec.
The nonDimensinal pressure :
Psi = 2 deltaP/(rho*(sqr(PI*omega*dm))) where: deltaP is the pressure drop
The non-dimensional table should be given as Psi = F(phi).
Property | Description | Required | Default value |
---|---|---|---|
file | fan curve file name | yes | |
outOfBounds | out of bounds handling | yes | |
direction | direction of flow through fan [in/out] | yes | |
p0 | environmental total pressure | yes | |
nonDimensional | uses non-dimensional table | no | false |
rpm | fan rpm for non-dimensional table | no | 0.0 |
dm | mean diameter for non-dimensional table | no | 0.0 |
Example of the boundary condition specification:
inlet { type fanPressure; file "fanCurve"; outOfBounds clamp; direction in; p0 uniform 0; value uniform 0; } outlet { type fanPressure; file "fanCurve"; outOfBounds clamp; direction out; p0 uniform 0; value uniform 0; }
Definition at line 154 of file fanPressureFvPatchScalarField.H.
enum fanFlowDirection |
Fan flow direction.
Enumerator | |
---|---|
ffdIn | |
ffdOut |
Definition at line 162 of file fanPressureFvPatchScalarField.H.
fanPressureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 50 of file fanPressureFvPatchScalarField.C.
Referenced by fanPressureFvPatchScalarField::clone().
fanPressureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 82 of file fanPressureFvPatchScalarField.C.
References dict.
fanPressureFvPatchScalarField | ( | const fanPressureFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given.
fanPressureFvPatchScalarField onto a new patch
Definition at line 65 of file fanPressureFvPatchScalarField.C.
fanPressureFvPatchScalarField | ( | const fanPressureFvPatchScalarField & | pfopsf | ) |
Construct as copy.
Definition at line 104 of file fanPressureFvPatchScalarField.C.
fanPressureFvPatchScalarField | ( | const fanPressureFvPatchScalarField & | pfopsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 118 of file fanPressureFvPatchScalarField.C.
TypeName | ( | "fanPressure" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Reimplemented from totalPressureFvPatchScalarField.
Definition at line 233 of file fanPressureFvPatchScalarField.H.
References fanPressureFvPatchScalarField::fanPressureFvPatchScalarField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Reimplemented from totalPressureFvPatchScalarField.
Definition at line 250 of file fanPressureFvPatchScalarField.H.
|
virtual |
Update the coefficients associated with the patch field.
Reimplemented from totalPressureFvPatchScalarField.
Definition at line 134 of file fanPressureFvPatchScalarField.C.
References Foam::dimArea, Foam::dimDensity, Foam::dimVelocity, Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::gSum(), Foam::max(), Foam::nl, totalPressureFvPatchScalarField::p0(), Foam::foamVersion::patch, phi, totalPressureFvPatchScalarField::phiName(), Foam::constant::mathematical::pi(), Foam::pow3(), Foam::pow4(), totalPressureFvPatchScalarField::rhoName(), Foam::sqr(), totalPressureFvPatchScalarField::UName(), and totalPressureFvPatchScalarField::updateCoeffs().
|
virtual |
Write.
Reimplemented from totalPressureFvPatchScalarField.
Definition at line 197 of file fanPressureFvPatchScalarField.C.
References totalPressureFvPatchScalarField::write(), and Ostream::writeEntry().
|
static |
Fan flow direction names.
Definition at line 169 of file fanPressureFvPatchScalarField.H.