Public Member Functions | Static Public Member Functions | Friends | List of all members
polynomialTransport Class Reference

Transport package using polynomial functions for mu and kappa. More...

Public Member Functions

 polynomialTransport (const word &, const polynomialTransport &)
 
 polynomialTransport (const dictionary &dict)
 
autoPtr< polynomialTransportclone () const
 
scalar mu (const scalar p, const scalar T) const
 
scalar kappa (const scalar p, const scalar T) const
 
scalar alphah (const scalar p, const scalar T) const
 
void write (Ostream &os) const
 
void operator+= (const polynomialTransport &)
 
void operator*= (const scalar)
 

Static Public Member Functions

static autoPtr< polynomialTransportNew (const dictionary &dict)
 
static word typeName ()
 

Friends

polynomialTransport operator+ (const polynomialTransport &, const polynomialTransport &)
 
polynomialTransport operator* (const scalar, const polynomialTransport &)
 
Ostreamoperator (Ostream &, const polynomialTransport &)
 

Detailed Description

Transport package using polynomial functions for mu and kappa.

Usage
Property Description
muCoeffs<8> Dynamic viscosity polynomial coefficients
kappaCoeffs<8> Thermal conductivity polynomial coefficients

Example of the specification of the transport properties:

    transport
    {
        muCoeffs<8>     ( 1000 -0.05 0.003 0 0 0 0 0 );
        kappaCoeffs<8>  ( 2000 -0.15 0.023 0 0 0 0 0 );
    }

The polynomial expressions are evaluated as so:

\[ \mu = 1000 - 0.05 T + 0.003 T^2 \]

\[ \kappa = 2000 - 0.15 T + 0.023 T^2 \]

Note
  • Dynamic viscosity polynomial coefficients evaluate to an expression in [Pa.s], but internally uses [Pa.s/kmol].
  • Thermal conductivity polynomial coefficients evaluate to an expression in [W/m/K], but internally uses [W/m/K/kmol].
Source files
See also
Foam::Polynomial

Definition at line 94 of file polynomialTransport.H.

Constructor & Destructor Documentation

◆ polynomialTransport() [1/2]

polynomialTransport ( const word ,
const polynomialTransport  
)
inline

◆ polynomialTransport() [2/2]

polynomialTransport ( const dictionary dict)
explicit

Definition at line 28 of file polynomialTransport.C.

Member Function Documentation

◆ clone()

Foam::autoPtr< Foam::polynomialTransport< Thermo, PolySize > > clone ( ) const
inline

Definition at line 54 of file polynomialTransportI.H.

References Foam::New().

Here is the call graph for this function:

◆ New()

Foam::autoPtr< Foam::polynomialTransport< Thermo, PolySize > > New ( const dictionary dict)
inlinestatic

Definition at line 62 of file polynomialTransportI.H.

References dict, and Foam::New().

Here is the call graph for this function:

◆ typeName()

static word typeName ( )
inlinestatic

Definition at line 176 of file polynomialTransport.H.

◆ mu()

Foam::scalar mu ( const scalar  p,
const scalar  T 
) const
inline

Definition at line 72 of file polynomialTransportI.H.

References Foam::T().

Here is the call graph for this function:

◆ kappa()

Foam::scalar kappa ( const scalar  p,
const scalar  T 
) const
inline

Definition at line 83 of file polynomialTransportI.H.

References Foam::T().

Here is the call graph for this function:

◆ alphah()

Foam::scalar alphah ( const scalar  p,
const scalar  T 
) const
inline

Definition at line 94 of file polynomialTransportI.H.

References Cp, Foam::constant::electromagnetic::kappa, p, and Foam::T().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const

Definition at line 41 of file polynomialTransport.C.

References Foam::name(), os(), and Foam::vtk::write().

Here is the call graph for this function:

◆ operator+=()

void operator+= ( const polynomialTransport )
inline

Definition at line 106 of file polynomialTransportI.H.

References Foam::mag(), and Y.

Here is the call graph for this function:

◆ operator*=()

void operator*= ( const scalar  s)
inline

Definition at line 127 of file polynomialTransportI.H.

References s.

Friends And Related Function Documentation

◆ operator+

◆ operator*

polynomialTransport operator* ( const  scalar,
const polynomialTransport  
)
friend

◆ operator

Ostream& operator ( Ostream ,
const polynomialTransport  
)
friend

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