This boundary condition provides a porous baffle pressure jump condition, using the cyclic
condition as a base. The jump in pressure is defined by:
More...
Public Member Functions | |
TypeName ("porousBafflePressure") | |
Runtime type information. More... | |
porousBafflePressureFvPatchField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
porousBafflePressureFvPatchField (const porousBafflePressureFvPatchField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fieldMapper &) | |
Construct by mapping given porousBafflePressureFvPatchField. More... | |
porousBafflePressureFvPatchField (const porousBafflePressureFvPatchField &)=delete | |
Disallow copy without setting internal field reference. More... | |
porousBafflePressureFvPatchField (const porousBafflePressureFvPatchField &, 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 porous baffle pressure jump condition, using the cyclic
condition as a base. The jump in pressure is defined by:
where
![]() | = | pressure [Pa] |
![]() | = | density [kg/m^3] |
![]() | = | laminar viscosity [Pa s] |
![]() | = | Darcy coefficient |
![]() | = | inertial coefficient |
![]() | = | porous media length in the flow direction |
Property | Description | Required | Default value |
---|---|---|---|
patchType | underlying patch type (should be cyclic ) | yes | |
phi | flux field name | no | phi |
rho | density field name | no | rho |
D | Darcy coefficient | yes | |
I | inertial coefficient | yes | |
length | porous media length in the flow direction | yes | |
relaxation | relaxation factor for pressure jump | no | 1 |
Example of the boundary condition specification:
<patchName> { type porousBafflePressure; patchType cyclic; jump uniform 0; D 0.001; I 1000000; length 0.1; relaxation 0.2; value uniform 0; }
Definition at line 158 of file porousBafflePressureFvPatchField.H.
porousBafflePressureFvPatchField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 33 of file porousBafflePressureFvPatchField.C.
Referenced by porousBafflePressureFvPatchField< Type >::clone().
porousBafflePressureFvPatchField | ( | const porousBafflePressureFvPatchField< Type > & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fieldMapper & | mapper | ||
) |
Construct by mapping given porousBafflePressureFvPatchField.
onto a new patch
Definition at line 81 of file porousBafflePressureFvPatchField.C.
|
delete |
Disallow copy without setting internal field reference.
porousBafflePressureFvPatchField | ( | const porousBafflePressureFvPatchField< Type > & | ptf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Copy constructor setting internal field reference.
Definition at line 100 of file porousBafflePressureFvPatchField.C.
TypeName | ( | "porousBafflePressure" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 226 of file porousBafflePressureFvPatchField.H.
References porousBafflePressureFvPatchField< Type >::porousBafflePressureFvPatchField().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 119 of file porousBafflePressureFvPatchField.C.
References DimensionedField< Type, GeoMesh >::dimensions(), Foam::dimMassFlux, Foam::dimPressure, Foam::endl(), Foam::gAverage(), Foam::Info, Foam::mag(), momentumTransportModel::nu(), and Foam::sign().
|
virtual |
Write.
Definition at line 183 of file porousBafflePressureFvPatchField.C.
References Foam::vtkWriteOps::write(), Foam::writeEntry(), and Foam::writeEntryIfDifferent().