This boundary condition provides a fan pressure jump condition, using the cyclic
condition as a base. The jump is specified as a Function1
, which returns the pressure jump as a function of the total volumetric flow rate through the patch.
More...
Public Member Functions | |
TypeName ("fanPressureJump") | |
Runtime type information. More... | |
fanPressureJumpFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
fanPressureJumpFvPatchScalarField (const fanPressureJumpFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fieldMapper &) | |
Construct by mapping given patch onto a new patch. More... | |
fanPressureJumpFvPatchScalarField (const fanPressureJumpFvPatchScalarField &)=delete | |
Disallow copy without setting internal field reference. More... | |
fanPressureJumpFvPatchScalarField (const fanPressureJumpFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Copy constructor setting internal field reference. More... | |
virtual tmp< fvPatchField< scalar > > | 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 &) const |
Write. More... | |
This boundary condition provides a fan pressure jump condition, using the cyclic
condition as a base. The jump is specified as a Function1
, which returns the pressure jump as a function of the total volumetric flow rate through the patch.
A backwards-compatibility option is also provided to specify the pressure jump as a function of local velocity. In this mode the boundary condition serves as a direct replacement for the old fanFvPatchField.
Property | Description | Required | Default value |
---|---|---|---|
patchType | underlying patch type (should be cyclic ) | yes | |
fanCurve | fan curve function | yes | |
jumpTable | jump table function (backward compatibility mode) | no | |
reverse | reverse jump direction | no | false |
phi | flux field name | no | phi |
rho | density field name | no | rho |
Example of the boundary condition specification:
<patchName> { type fanPressureJump; patchType cyclic; fanCurve table; fanCurveCoeffs { file "$FOAM_CASE/constant/pressureVsQ"; format csv; nHeaderLine 1; columns (0 1); separator ","; mergeSeparators no; outOfBounds clamp; interpolationScheme linear; } value uniform 0; }
Definition at line 127 of file fanPressureJumpFvPatchScalarField.H.
fanPressureJumpFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 33 of file fanPressureJumpFvPatchScalarField.C.
References dict, DimensionedField< Type, GeoMesh >::dimensions(), Foam::dimVelocity, Foam::dimVolumetricFlux, and Function1< Type >::New().
Referenced by fanPressureJumpFvPatchScalarField::clone().
fanPressureJumpFvPatchScalarField | ( | const fanPressureJumpFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fieldMapper & | mapper | ||
) |
Construct by mapping given patch onto a new patch.
Definition at line 87 of file fanPressureJumpFvPatchScalarField.C.
|
delete |
Disallow copy without setting internal field reference.
fanPressureJumpFvPatchScalarField | ( | const fanPressureJumpFvPatchScalarField & | ptf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Copy constructor setting internal field reference.
Definition at line 104 of file fanPressureJumpFvPatchScalarField.C.
TypeName | ( | "fanPressureJump" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 189 of file fanPressureJumpFvPatchScalarField.H.
References fanPressureJumpFvPatchScalarField::fanPressureJumpFvPatchScalarField().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 121 of file fanPressureJumpFvPatchScalarField.C.
References Foam::dimMassFlux, Foam::dimVolumetricFlux, Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::gSum(), fvsPatchField< Type >::internalField(), Foam::max(), Foam::nl, and Foam::sign().
|
virtual |
Write.
Definition at line 205 of file fanPressureJumpFvPatchScalarField.C.
References Foam::vtkWriteOps::write(), and Foam::writeEntry().