OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

porousZone Class Reference

Porous zone definition based on cell zones. More...

Collaboration diagram for porousZone:

List of all members.


Classes

class  iNew
 Return pointer to new porousZone created on freestore from Istream. More...

Public Member Functions

 porousZone (const word &name, const fvMesh &, const dictionary &)
 Construct from components.
autoPtr< porousZone > clone () const
 Return clone.
const word & zoneName () const
 cellZone name
label zoneId () const
 cellZone number
const dictionary & dict () const
 dictionary values used for the porousZone
const coordinateSystem & coordSys () const
 Return coordinate system.
const point & origin () const
 Return origin.
const vector & axis () const
 Return axis.
const scalar & porosity () const
 Return porosity.
scalar & porosity ()
 Edit access to porosity.
template<class Type >
void modifyDdt (fvMatrix< Type > &) const
 modify time derivative elements according to porosity
void addResistance (fvVectorMatrix &UEqn) const
 Add the viscous and inertial resistance force contribution.
void addResistance (const fvVectorMatrix &UEqn, volTensorField &AU, bool correctAUprocBC=true) const
 Add the viscous and inertial resistance force contribution.
void writeDict (Ostream &, bool subDict=true) const
 Write the porousZone dictionary.

Friends

Ostream & operator<< (Ostream &, const porousZone &)

Detailed Description

Porous zone definition based on cell zones.

Porous zone definition based on cell zones and parameters obtained from a control dictionary constructed from the given stream. The orientation of the porous region is defined with the same notation as a coordinateSystem, but only a Cartesian coordinate system is valid.

Implemented porosity models:

powerLaw (C0 and C1 parameters)

\[ S = - \rho C_0 |U|^{(C_1 - 1)/2} U \]

Darcy-Forchheimer (d and f parameters)

\[ S = - (\mu \, d \, U + \frac{\rho |U|}{2} \, f) U \]

Since negative Darcy/Forchheimer parameters are invalid, they can be used to specify a multiplier (of the max component).

The porousZones method porousZones::ddt() mirrors the normal fvm::ddt() method, but accounts for the effective volume of the cells.

See also:
porousZones and coordinateSystems
Source files

Definition at line 85 of file porousZone.H.


Constructor & Destructor Documentation

porousZone ( const word &  name,
const fvMesh &  mesh,
const dictionary &  dict 
)

Construct from components.

Definition at line 56 of file porousZone.C.


Member Function Documentation

autoPtr<porousZone> clone (  )  const [inline]

Return clone.

Definition at line 191 of file porousZone.H.

const word& zoneName (  )  const [inline]

cellZone name

Definition at line 226 of file porousZone.H.

label zoneId (  )  const [inline]

cellZone number

Definition at line 232 of file porousZone.H.

const dictionary& dict (  )  const [inline]

dictionary values used for the porousZone

Definition at line 238 of file porousZone.H.

const coordinateSystem& coordSys (  )  const [inline]

Return coordinate system.

Definition at line 244 of file porousZone.H.

const point& origin (  )  const [inline]

Return origin.

Definition at line 250 of file porousZone.H.

const vector& axis (  )  const [inline]

Return axis.

Definition at line 256 of file porousZone.H.

const scalar& porosity (  )  const [inline]

Return porosity.

Definition at line 262 of file porousZone.H.

scalar& porosity (  )  [inline]

Edit access to porosity.

Definition at line 268 of file porousZone.H.

void modifyDdt ( fvMatrix< Type > &  m  )  const [inline]

modify time derivative elements according to porosity

Definition at line 24 of file porousZoneTemplates.C.

References cells, polyMesh::cellZones(), lduMatrix::diag(), forAll, and fvMatrix< Type >::source().

Here is the call graph for this function:

void addResistance ( fvVectorMatrix &  UEqn  )  const

Add the viscous and inertial resistance force contribution.

to the momentum equation

Definition at line 187 of file porousZone.C.

Referenced by porousZones::addResistance().

Here is the caller graph for this function:

void addResistance ( const fvVectorMatrix &  UEqn,
volTensorField &  AU,
bool  correctAUprocBC = true 
) const

Add the viscous and inertial resistance force contribution.

to the tensorial diagonal. Optionally correct the processor BCs of AU.

Definition at line 268 of file porousZone.C.

void writeDict ( Ostream &  os,
bool  subDict = true 
) const

Write the porousZone dictionary.

Definition at line 351 of file porousZone.C.


Friends And Related Function Documentation

Ostream& operator<< ( Ostream &  ,
const porousZone &   
) [friend]


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd