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

porousZones Class Reference

A centralized porousZone collection. More...

Inheritance diagram for porousZones:
Collaboration diagram for porousZones:

List of all members.


Public Member Functions

 porousZones (const fvMesh &)
 Construct from fvMesh.
template<class Type >
tmp< fvMatrix< Type > > ddt (GeometricField< Type, fvPatchField, volMesh > &)
 mirror fvm::ddt with porosity
template<class Type >
tmp< fvMatrix< Type > > ddt (const oneField &, GeometricField< Type, fvPatchField, volMesh > &)
 mirror fvm::ddt with porosity
template<class Type >
tmp< fvMatrix< Type > > ddt (const dimensionedScalar &, GeometricField< Type, fvPatchField, volMesh > &)
 mirror fvm::ddt with porosity
template<class Type >
tmp< fvMatrix< Type > > ddt (const volScalarField &, GeometricField< Type, fvPatchField, volMesh > &)
 mirror fvm::ddt with porosity
void addResistance (fvVectorMatrix &UEqn) const
 Add the viscous and inertial resistance force contribution.
void addResistance (const fvVectorMatrix &UEqn, volTensorField &AU) const
 Add the viscous and inertial resistance force contribution.
virtual bool readData (Istream &)
 read modified data
bool writeData (Ostream &, bool subDict=true) const
 write data

Detailed Description

A centralized porousZone collection.

Container class for a set of porousZones with the porousZone member functions implemented to loop over the functions for each porousZone.

The input file constant/porousZone is implemented as IOPtrList<porousZone> and contains the following type of data:

1
(
cat1
{
    coordinateSystem    system_10;
    porosity    0.781;
    Darcy
    {
        d   d [0 -2 0 0 0]  (-1000 -1000 0.50753e+08);
        f   f [0 -1 0 0 0]  (-1000 -1000 12.83);
    }
}
)

Source files

Definition at line 72 of file porousZones.H.


Constructor & Destructor Documentation

porousZones ( const fvMesh &  mesh  ) 

Construct from fvMesh.

with automatically constructed coordinate systems list

Definition at line 32 of file porousZones.C.

References Foam::defineTemplateTypeNameAndDebug().

Here is the call graph for this function:


Member Function Documentation

Foam::tmp< Foam::fvMatrix< Type > > ddt ( GeometricField< Type, fvPatchField, volMesh > &  vf  )  [inline]

mirror fvm::ddt with porosity

Definition at line 40 of file porousZonesTemplates.C.

Foam::tmp< Foam::fvMatrix< Type > > ddt ( const oneField &  ,
GeometricField< Type, fvPatchField, volMesh > &  vf 
) [inline]

mirror fvm::ddt with porosity

Definition at line 53 of file porousZonesTemplates.C.

Foam::tmp< Foam::fvMatrix< Type > > ddt ( const dimensionedScalar &  rho,
GeometricField< Type, fvPatchField, volMesh > &  vf 
) [inline]

mirror fvm::ddt with porosity

Definition at line 67 of file porousZonesTemplates.C.

Foam::tmp< Foam::fvMatrix< Type > > ddt ( const volScalarField &  rho,
GeometricField< Type, fvPatchField, volMesh > &  vf 
) [inline]

mirror fvm::ddt with porosity

Definition at line 81 of file porousZonesTemplates.C.

void addResistance ( fvVectorMatrix &  UEqn  )  const

Add the viscous and inertial resistance force contribution.

to the momentum equation

Definition at line 54 of file porousZones.C.

void addResistance ( const fvVectorMatrix &  UEqn,
volTensorField &  AU 
) const

Add the viscous and inertial resistance force contribution.

to the tensorial diagonal

Definition at line 64 of file porousZones.C.

References porousZone::addResistance(), forAll, and PtrList< porousZone >::operator[]().

Here is the call graph for this function:

bool readData ( Istream &  is  )  [virtual]

read modified data

Reimplemented from regIOobject.

Definition at line 83 of file porousZones.C.

bool writeData ( Ostream &  os,
bool  subDict = true 
) const

write data

Definition at line 107 of file porousZones.C.


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