porousBafflePressureFvPatchField< Type > Class Template Reference

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...

Inheritance diagram for porousBafflePressureFvPatchField< Type >:
Collaboration diagram for porousBafflePressureFvPatchField< Type >:

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...
 

Detailed Description

template<class Type>
class Foam::porousBafflePressureFvPatchField< Type >

This boundary condition provides a porous baffle pressure jump condition, using the cyclic condition as a base. The jump in pressure is defined by:

\[ \Delta p = -(D \mu U + 0.5 I \rho |U|^2 )L \]

where

$ p $ = pressure [Pa]
$ \rho $ = density [kg/m^3]
$ \mu $ = laminar viscosity [Pa s]
$ D $ = Darcy coefficient
$ I $ = inertial coefficient
$ L $ = porous media length in the flow direction
Usage
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;
    }
Source files

Definition at line 158 of file porousBafflePressureFvPatchField.H.

Constructor & Destructor Documentation

◆ porousBafflePressureFvPatchField() [1/4]

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().

Here is the caller graph for this function:

◆ porousBafflePressureFvPatchField() [2/4]

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.

◆ porousBafflePressureFvPatchField() [3/4]

Disallow copy without setting internal field reference.

◆ porousBafflePressureFvPatchField() [4/4]

porousBafflePressureFvPatchField ( const porousBafflePressureFvPatchField< Type > &  ptf,
const DimensionedField< scalar, volMesh > &  iF 
)

Copy constructor setting internal field reference.

Definition at line 100 of file porousBafflePressureFvPatchField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "porousBafflePressure"  )

Runtime type information.

◆ clone()

virtual tmp<fvPatchField<scalar> > clone ( const DimensionedField< scalar, volMesh > &  iF) const
inlinevirtual

Construct and return a clone setting internal field reference.

Definition at line 226 of file porousBafflePressureFvPatchField.H.

References porousBafflePressureFvPatchField< Type >::porousBafflePressureFvPatchField().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
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().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 183 of file porousBafflePressureFvPatchField.C.

References Foam::vtkWriteOps::write(), Foam::writeEntry(), and Foam::writeEntryIfDifferent().

Here is the call graph for this function:

The documentation for this class was generated from the following files: