logPolynomialTransport< Thermo, PolySize > Class Template Reference

Transport package using polynomial functions of ln(T) for mu and kappa: More...

Inheritance diagram for logPolynomialTransport< Thermo, PolySize >:
Collaboration diagram for logPolynomialTransport< Thermo, PolySize >:

Public Member Functions

 logPolynomialTransport (const word &, const logPolynomialTransport &)
 Construct as named copy. More...
 
 logPolynomialTransport (const dictionary &dict)
 Construct from dictionary. More...
 
autoPtr< logPolynomialTransportclone () const
 Construct and return a clone. More...
 
scalar mu (const scalar p, const scalar T) const
 Dynamic viscosity [kg/m/s]. More...
 
scalar kappa (const scalar p, const scalar T) const
 Thermal conductivity [W/m/K]. More...
 
void write (Ostream &os) const
 Write to Ostream. More...
 
void operator+= (const logPolynomialTransport &)
 
void operator*= (const scalar)
 

Static Public Member Functions

static autoPtr< logPolynomialTransportNew (const dictionary &dict)
 
static word typeName ()
 Return the instantiated type name. More...
 

Friends

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

Detailed Description

template<class Thermo, int PolySize = 8>
class Foam::logPolynomialTransport< Thermo, PolySize >

Transport package using polynomial functions of ln(T) for mu and kappa:

\[ ln(mu) = \sum_{i=1}^N \left( a[i] * ln(T)^{i-1} \right) \]

\[ ln(kappa) = \sum_{i=1}^N \left( b[i] * ln(T)^{i-1} \right) \]

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 ln(T) + 0.003 ln(T)^2 \]

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

Source files
See also
Foam::Polynomial

Definition at line 95 of file logPolynomialTransport.H.

Constructor & Destructor Documentation

◆ logPolynomialTransport() [1/2]

logPolynomialTransport ( const word name,
const logPolynomialTransport< Thermo, PolySize > &  pt 
)
inline

Construct as named copy.

Definition at line 46 of file logPolynomialTransportI.H.

◆ logPolynomialTransport() [2/2]

Construct from dictionary.

Definition at line 33 of file logPolynomialTransport.C.

Member Function Documentation

◆ clone()

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

Construct and return a clone.

Definition at line 59 of file logPolynomialTransportI.H.

◆ New()

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

Definition at line 70 of file logPolynomialTransportI.H.

References dict, and logPolynomialTransport< Thermo, PolySize >::mu().

Here is the call graph for this function:

◆ typeName()

◆ mu()

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

Dynamic viscosity [kg/m/s].

Definition at line 83 of file logPolynomialTransportI.H.

References Foam::exp(), logPolynomialTransport< Thermo, PolySize >::kappa(), and Foam::log().

Referenced by logPolynomialTransport< Thermo, PolySize >::New(), and logPolynomialTransport< Thermo, PolySize >::typeName().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ kappa()

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

Thermal conductivity [W/m/K].

Definition at line 94 of file logPolynomialTransportI.H.

References Foam::exp(), and Foam::log().

Referenced by logPolynomialTransport< Thermo, PolySize >::mu(), and logPolynomialTransport< Thermo, PolySize >::typeName().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write()

void write ( Ostream os) const

Write to Ostream.

Definition at line 58 of file logPolynomialTransport.C.

References dictionary::add(), Foam::decrIndent(), dict, dictionaryName::dictName(), Foam::endl(), Foam::incrIndent(), Foam::indent(), Foam::name(), Foam::nl, Foam::vtkWriteOps::write(), and Ostream::write().

Referenced by logPolynomialTransport< Thermo, PolySize >::typeName().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator+=()

void operator+= ( const logPolynomialTransport< Thermo, PolySize > &  )
inline

Definition at line 107 of file logPolynomialTransportI.H.

References Foam::mag(), and Y.

Referenced by logPolynomialTransport< Thermo, PolySize >::typeName().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator*=()

void operator*= ( const scalar  s)
inline

Definition at line 128 of file logPolynomialTransportI.H.

References Foam::mag(), and s().

Referenced by logPolynomialTransport< Thermo, PolySize >::typeName().

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator+

logPolynomialTransport operator+ ( const logPolynomialTransport< Thermo, PolySize > &  ,
const logPolynomialTransport< Thermo, PolySize > &   
)
friend

◆ operator*

logPolynomialTransport operator* ( const scalar  ,
const logPolynomialTransport< Thermo, PolySize > &   
)
friend

◆ operator

Ostream& operator ( Ostream ,
const logPolynomialTransport< Thermo, PolySize > &   
)
friend

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