Public Member Functions | List of all members
porousBafflePressureFvPatchField< Type > Class Template Reference

This boundary condition provides a jump condition, using the cyclic condition as a base. More...

Inheritance diagram for porousBafflePressureFvPatchField< Type >:
Inheritance graph
[legend]
Collaboration diagram for porousBafflePressureFvPatchField< Type >:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("porousBafflePressure")
 
 porousBafflePressureFvPatchField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 
 porousBafflePressureFvPatchField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 
 porousBafflePressureFvPatchField (const porousBafflePressureFvPatchField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 
 porousBafflePressureFvPatchField (const porousBafflePressureFvPatchField &)
 
virtual tmp< fvPatchField< scalar > > clone () const
 
 porousBafflePressureFvPatchField (const porousBafflePressureFvPatchField &, const DimensionedField< scalar, volMesh > &)
 
virtual tmp< fvPatchField< scalar > > clone (const DimensionedField< scalar, volMesh > &iF) const
 
virtual void updateCoeffs ()
 
virtual void write (Ostream &) const
 
- Public Member Functions inherited from fixedJumpFvPatchField< scalar >
 TypeName ("fixedJump")
 
 fixedJumpFvPatchField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 
 fixedJumpFvPatchField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &, const bool valueRequired=true)
 
 fixedJumpFvPatchField (const fixedJumpFvPatchField< scalar > &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 
 fixedJumpFvPatchField (const fixedJumpFvPatchField< scalar > &)
 
 fixedJumpFvPatchField (const fixedJumpFvPatchField< scalar > &, const DimensionedField< scalar, volMesh > &)
 
virtual tmp< fvPatchField< scalar > > clone () const
 
virtual void setJump (const Field< scalar > &jump)
 
virtual void setJump (const scalar &jump)
 
virtual tmp< Field< scalar > > jump () const
 
virtual tmp< Field< scalar > > jump0 () const
 
virtual scalar relaxFactor () const
 
virtual void relax ()
 
virtual void autoMap (const fvPatchFieldMapper &)
 
virtual void rmap (const fvPatchField< scalar > &, const labelList &)
 
- Public Member Functions inherited from jumpCyclicFvPatchField< scalar >
 TypeName ("jumpCyclic")
 
 jumpCyclicFvPatchField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 
 jumpCyclicFvPatchField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &, const bool valueRequired=true)
 
 jumpCyclicFvPatchField (const jumpCyclicFvPatchField< scalar > &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 
 jumpCyclicFvPatchField (const jumpCyclicFvPatchField< scalar > &)
 
 jumpCyclicFvPatchField (const jumpCyclicFvPatchField< scalar > &, const DimensionedField< scalar, volMesh > &)
 
virtual const wordinterfaceFieldType () const
 
tmp< Field< scalar > > patchNeighbourField () const
 
virtual void updateInterfaceMatrix (solveScalarField &result, const bool add, const lduAddressing &lduAddr, const label patchId, const solveScalarField &psiInternal, const scalarField &coeffs, const direction cmpt, const Pstream::commsTypes commsType) const
 
virtual void updateInterfaceMatrix (Field< scalar > &, const bool add, const lduAddressing &lduAddr, const label patchId, const Field< scalar > &, const scalarField &, const Pstream::commsTypes commsType) const
 
void updateInterfaceMatrix (solveScalarField &result, const bool add, const lduAddressing &lduAddr, const label patchId, const solveScalarField &psiInternal, const scalarField &coeffs, const direction cmpt, const Pstream::commsTypes commsType) const
 
void updateInterfaceMatrix (solveScalarField &result, const bool add, const lduAddressing &lduAddr, const label patchId, const solveScalarField &psiInternal, const scalarField &coeffs, const direction cmpt, const Pstream::commsTypes commsType) const
 
void updateInterfaceMatrix (solveScalarField &result, const bool add, const lduAddressing &lduAddr, const label patchId, const solveScalarField &psiInternal, const scalarField &coeffs, const direction cmpt, const Pstream::commsTypes) const
 
void updateInterfaceMatrix (solveScalarField &result, const bool add, const lduAddressing &lduAddr, const label patchId, const solveScalarField &psiInternal, const scalarField &coeffs, const direction cmpt, const Pstream::commsTypes) const
 
- Public Member Functions inherited from cyclicFvPatchField< scalar >
 TypeName (cyclicFvPatch::typeName_())
 
 cyclicFvPatchField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 
 cyclicFvPatchField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &, const bool valueRequired=true)
 
 cyclicFvPatchField (const cyclicFvPatchField< scalar > &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 
 cyclicFvPatchField (const cyclicFvPatchField< scalar > &)
 
 cyclicFvPatchField (const cyclicFvPatchField< scalar > &, const DimensionedField< scalar, volMesh > &)
 
const cyclicFvPatchcyclicPatch () const
 
const cyclicFvPatchField< scalar > & neighbourPatchField () const
 
virtual void manipulateMatrix (fvMatrix< scalar > &m, const label iMatrix, const direction cmp)
 
virtual bool doTransform () const
 
virtual const tensorFieldforwardT () const
 
virtual const tensorFieldreverseT () const
 
virtual int rank () const
 
- Public Member Functions inherited from cyclicLduInterfaceField
 TypeName ("cyclicLduInterfaceField")
 
 cyclicLduInterfaceField ()=default
 
virtual ~cyclicLduInterfaceField ()=default
 
virtual bool doTransform () const =0
 
virtual const tensorFieldforwardT () const =0
 
virtual const tensorFieldreverseT () const =0
 
virtual int rank () const =0
 
template<class Type >
void transformCoupleField (Field< Type > &f) const
 
void transformCoupleField (solveScalarField &f, const direction cmpt) const
 
- Public Member Functions inherited from coupledFvPatchField< scalar >
 TypeName (coupledFvPatch::typeName_())
 
 coupledFvPatchField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 
 coupledFvPatchField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const Field< scalar > &)
 
 coupledFvPatchField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &, const bool valueRequired=true)
 
 coupledFvPatchField (const coupledFvPatchField< scalar > &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 
 coupledFvPatchField (const coupledFvPatchField< scalar > &)
 
 coupledFvPatchField (const coupledFvPatchField< scalar > &, const DimensionedField< scalar, volMesh > &)
 
virtual bool coupled () const
 
virtual tmp< Field< scalar > > snGrad (const scalarField &deltaCoeffs) const
 
virtual tmp< Field< scalar > > snGrad () const
 
virtual void initEvaluate (const Pstream::commsTypes commsType)
 
virtual void evaluate (const Pstream::commsTypes commsType)
 
virtual tmp< Field< scalar > > valueInternalCoeffs (const tmp< scalarField > &) const
 
virtual tmp< Field< scalar > > valueBoundaryCoeffs (const tmp< scalarField > &) const
 
virtual tmp< Field< scalar > > gradientInternalCoeffs (const scalarField &deltaCoeffs) const
 
virtual tmp< Field< scalar > > gradientInternalCoeffs () const
 
virtual tmp< Field< scalar > > gradientBoundaryCoeffs (const scalarField &deltaCoeffs) const
 
virtual tmp< Field< scalar > > gradientBoundaryCoeffs () const
 
- Public Member Functions inherited from LduInterfaceField< scalar >
 LduInterfaceField (const lduInterface &patch)
 
 TypeName ("LduInterfaceField")
 
virtual ~LduInterfaceField ()=default
 
virtual void initInterfaceMatrixUpdate (Field< scalar > &, const bool add, const lduAddressing &, const label interfacei, const Field< scalar > &, const scalarField &, const Pstream::commsTypes commsType) const
 
virtual void initInterfaceMatrixUpdate (solveScalarField &result, const bool add, const lduAddressing &, const label interfacei, const solveScalarField &psiInternal, const scalarField &coeffs, const direction cmpt, const Pstream::commsTypes commsType) const
 
virtual void updateInterfaceMatrix (solveScalarField &result, const bool add, const lduAddressing &, const label interfacei, const solveScalarField &psiInternal, const scalarField &coeffs, const direction cmpt, const Pstream::commsTypes commsType) const =0
 
- Public Member Functions inherited from lduInterfaceField
 TypeName ("lduInterfaceField")
 
 lduInterfaceField (const lduInterface &patch)
 
virtual ~lduInterfaceField ()=default
 
const lduInterfaceinterface () const
 
virtual const wordinterfaceFieldType () const
 
bool updatedMatrix () const
 
boolupdatedMatrix ()
 
virtual bool ready () const
 
virtual void initInterfaceMatrixUpdate (solveScalarField &result, const bool add, const lduAddressing &, const label interfacei, const solveScalarField &psiInternal, const scalarField &coeffs, const direction cmpt, const Pstream::commsTypes commsType) const
 
template<class Type >
void addToInternalField (Field< Type > &result, const bool add, const labelUList &faceCells, const scalarField &coeffs, const Field< Type > &vals) const
 
- Public Member Functions inherited from fvPatchField< scalar >
 TypeName ("fvPatchField")
 
 declareRunTimeSelectionTable (tmp, fvPatchField, patch,(const fvPatch &p, const DimensionedField< Type, volMesh > &iF),(p, iF))
 
 declareRunTimeSelectionTable (tmp, fvPatchField, patchMapper,(const fvPatchField< Type > &ptf, const fvPatch &p, const DimensionedField< Type, volMesh > &iF, const fvPatchFieldMapper &m),(dynamic_cast< const fvPatchFieldType & >(ptf), p, iF, m))
 
 declareRunTimeSelectionTable (tmp, fvPatchField, dictionary,(const fvPatch &p, const DimensionedField< Type, volMesh > &iF, const dictionary &dict),(p, iF, dict))
 
 fvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &)
 
 fvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &, const Type &value)
 
 fvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &, const word &patchType)
 
 fvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &, const Field< Type > &)
 
 fvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &, const dictionary &, const bool valueRequired=true)
 
 fvPatchField (const fvPatchField< Type > &, const fvPatch &, const DimensionedField< Type, volMesh > &, const fvPatchFieldMapper &)
 
 fvPatchField (const fvPatchField< Type > &)
 
 fvPatchField (const fvPatchField< Type > &, const DimensionedField< Type, volMesh > &)
 
virtual tmp< fvPatchField< Type > > clone (const DimensionedField< Type, volMesh > &iF) const
 
Foam::tmp< Foam::fvPatchField< Type > > NewCalculatedType (const fvPatch &p)
 
Foam::tmp< Foam::fvPatchField< Type > > NewCalculatedType (const fvPatchField< Type2 > &pf)
 
virtual ~fvPatchField ()=default
 
bool useImplicit () const noexcept
 
bool useImplicit (bool on) noexcept
 
virtual bool fixesValue () const
 
virtual bool assignable () const
 
const objectRegistrydb () const
 
const fvPatchpatch () const
 
const DimensionedField< Type, volMesh > & internalField () const
 
const Field< Type > & primitiveField () const
 
const wordpatchType () const
 
wordpatchType ()
 
bool updated () const
 
bool manipulatedMatrix () const
 
virtual void rmap (const fvPatchField< Type > &, const labelList &)
 
virtual void updateWeightedCoeffs (const scalarField &weights)
 
virtual tmp< Field< Type > > patchInternalField () const
 
virtual void patchInternalField (Field< Type > &) const
 
virtual tmp< Field< Type > > valueInternalCoeffs (const tmp< Field< scalar >> &) const
 
virtual tmp< Field< Type > > valueBoundaryCoeffs (const tmp< Field< scalar >> &) const
 
virtual void manipulateMatrix (fvMatrix< Type > &matrix)
 
virtual void manipulateMatrix (fvMatrix< Type > &matrix, const scalarField &weights)
 
virtual void manipulateMatrix (fvMatrix< Type > &matrix, const label iMatrix, const direction cmp)
 
void check (const fvPatchField< Type > &) const
 
virtual void operator= (const UList< Type > &)
 
virtual void operator= (const fvPatchField< Type > &)
 
virtual void operator= (const Type &)
 
virtual void operator+= (const fvPatchField< Type > &)
 
virtual void operator+= (const Field< Type > &)
 
virtual void operator+= (const Type &)
 
virtual void operator-= (const fvPatchField< Type > &)
 
virtual void operator-= (const Field< Type > &)
 
virtual void operator-= (const Type &)
 
virtual void operator*= (const fvPatchField< scalar > &)
 
virtual void operator*= (const Field< scalar > &)
 
virtual void operator*= (const scalar)
 
virtual void operator/= (const fvPatchField< scalar > &)
 
virtual void operator/= (const Field< scalar > &)
 
virtual void operator/= (const scalar)
 
virtual void operator== (const fvPatchField< Type > &)
 
virtual void operator== (const Field< Type > &)
 
virtual void operator== (const Type &)
 

Additional Inherited Members

- Public Types inherited from fvPatchField< scalar >
typedef fvPatch Patch
 
typedef calculatedFvPatchField< Type > Calculated
 
- Static Public Member Functions inherited from fvPatchField< scalar >
static tmp< fvPatchField< Type > > New (const word &, const fvPatch &, const DimensionedField< Type, volMesh > &)
 
static tmp< fvPatchField< Type > > New (const word &, const word &actualPatchType, const fvPatch &, const DimensionedField< Type, volMesh > &)
 
static tmp< fvPatchField< Type > > New (const fvPatchField< Type > &, const fvPatch &, const DimensionedField< Type, volMesh > &, const fvPatchFieldMapper &)
 
static tmp< fvPatchField< Type > > New (const fvPatch &, const DimensionedField< Type, volMesh > &, const dictionary &)
 
static tmp< fvPatchField< Type > > NewCalculatedType (const fvPatch &)
 
static tmp< fvPatchField< Type > > NewCalculatedType (const fvPatchField< Type2 > &)
 
static const wordcalculatedType ()
 
- Static Public Attributes inherited from fvPatchField< scalar >
static int disallowGenericFvPatchField
 

Detailed Description

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

This boundary condition provides a jump condition, using the cyclic condition as a base.

The porous baffle introduces a pressure jump defined by:

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

where

$ p $ = pressure [Pa]
$ \rho $ = density [kg/m3]
$ \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
uniformJump applies a uniform pressure drop on the patch based on the

Example of the boundary condition specification:

    <patchName>
    {
        type            porousBafflePressure;
        patchType       cyclic;
        jump            uniform 0;
        D               0.001;
        I               1000000;
        length          0.1;
        uniformJump     false;
        value           uniform 0;
    }
Note
The underlying patchType should be set to cyclic
Source files

Definition at line 162 of file porousBafflePressureFvPatchField.H.

Constructor & Destructor Documentation

◆ porousBafflePressureFvPatchField() [1/5]

porousBafflePressureFvPatchField ( const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF 
)

Definition at line 30 of file porousBafflePressureFvPatchField.C.

Referenced by porousBafflePressureFvPatchField< Type >::clone().

Here is the caller graph for this function:

◆ porousBafflePressureFvPatchField() [2/5]

porousBafflePressureFvPatchField ( const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF,
const dictionary dict 
)

Definition at line 46 of file porousBafflePressureFvPatchField.C.

References dict, and p.

◆ porousBafflePressureFvPatchField() [3/5]

porousBafflePressureFvPatchField ( const porousBafflePressureFvPatchField< Type > &  ptf,
const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF,
const fvPatchFieldMapper mapper 
)

Definition at line 68 of file porousBafflePressureFvPatchField.C.

◆ porousBafflePressureFvPatchField() [4/5]

Definition at line 86 of file porousBafflePressureFvPatchField.C.

◆ porousBafflePressureFvPatchField() [5/5]

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

Definition at line 102 of file porousBafflePressureFvPatchField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "porousBafflePressure"  )

◆ clone() [1/2]

virtual tmp<fvPatchField<scalar> > clone ( ) const
inlinevirtual

Definition at line 227 of file porousBafflePressureFvPatchField.H.

References porousBafflePressureFvPatchField< Type >::porousBafflePressureFvPatchField().

Here is the call graph for this function:

◆ clone() [2/2]

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

Reimplemented from fixedJumpFvPatchField< scalar >.

Definition at line 244 of file porousBafflePressureFvPatchField.H.

References porousBafflePressureFvPatchField< Type >::porousBafflePressureFvPatchField().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

◆ write()

void write ( Ostream os) const
virtual

Reimplemented from fixedJumpFvPatchField< scalar >.

Definition at line 190 of file porousBafflePressureFvPatchField.C.

References os(), fixedJumpFvPatchField< Type >::write(), Ostream::writeEntry(), and Ostream::writeEntryIfDifferent().

Here is the call graph for this function:

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