logPolynomialTransport< Thermo, PolySize > Class Template Reference

Transport package using polynomial functions of the natural logarithm of temperature for the natural logarithm of dynamic viscosity and thermal conductivity: 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 the natural logarithm of temperature for the natural logarithm of dynamic viscosity and thermal conductivity:

    log(mu) = muCoeffs[0] + muCoeffs[1]*log(T)
       + muCoeffs[2]*sqr(log(T)) + muCoeffs[3]*pow3(log(T))
       + muCoeffs[4]*pow4(log(T)) + muCoeffs[5]*pow(log(T), 5)
       + muCoeffs[6]*pow(log(T), 6) + muCoeffs[7]*pow(log(T), 7)

    log(kappa) = kappaCoeffs[0] + kappaCoeffs[1]*log(T)
       + kappaCoeffs[2]*sqr(log(T)) + kappaCoeffs[3]*pow3(log(T))
       + kappaCoeffs[4]*pow4(log(T)) + kappaCoeffs[5]*pow(log(T), 5)
       + kappaCoeffs[6]*pow(log(T), 6) + kappaCoeffs[7]*pow(log(T), 7)

The polynomial function is templated on the order of the polynomial which defaults to 8.

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);
    }
Source files
See also
Foam::Polynomial

Definition at line 92 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: