AndradeTransport< Thermo > Class Template Reference

Transport package using the Andrade function for the natural logarithm of dynamic viscosity and thermal conductivity of liquids: More...

Inheritance diagram for AndradeTransport< Thermo >:
Collaboration diagram for AndradeTransport< Thermo >:

Public Member Functions

 AndradeTransport (const word &, const AndradeTransport &)
 Construct as named copy. More...
 
 AndradeTransport (const dictionary &dict)
 Construct from dictionary. More...
 
autoPtr< AndradeTransportclone () 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...
 

Static Public Member Functions

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

Friends

Ostreamoperator (Ostream &, const AndradeTransport &)
 

Detailed Description

template<class Thermo>
class Foam::AndradeTransport< Thermo >

Transport package using the Andrade function for the natural logarithm of dynamic viscosity and thermal conductivity of liquids:

    log(mu) = muCoeffs[0] + muCoeffs[1]*T + muCoeffs[2]*sqr(T)
      + muCoeffs_[3]/(muCoeffs_[4] + T)

    log(kappa) = kappaCoeffs[0] + kappaCoeffs[1]*T + kappaCoeffs[2]*sqr(T)
      + kappaCoeffs_[3]/(kappaCoeffs_[4] + T)
);

References:

    Andrade, E. D. C. (1934).
    XLI. A theory of the viscosity of liquids.—Part I.
    The London, Edinburgh, and Dublin Philosophical Magazine
    and Journal of Science, 17(112), 497-511.

    Andrade, E. D. C. (1934).
    LVIII. A theory of the viscosity of liquids.—Part II.
    The London, Edinburgh, and Dublin Philosophical Magazine
    and Journal of Science, 17(113), 698-732.
Usage
Property Description
muCoeffs Dynamic viscosity polynomial coefficients
kappaCoeffs Thermal conductivity polynomial coefficients

Example of the specification of the transport properties for water@200bar:

    transport
    {
        muCoeffs    (-25.8542 0.031256 -2.2e-05 3289.918 -11.4784);
        kappaCoeffs (-2.56543 0.008794 -9.8e-06 100.368 0);
    }
Source files

Definition at line 95 of file AndradeTransport.H.

Constructor & Destructor Documentation

◆ AndradeTransport() [1/2]

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

Construct as named copy.

Definition at line 46 of file AndradeTransportI.H.

◆ AndradeTransport() [2/2]

AndradeTransport ( const dictionary dict)

Construct from dictionary.

Definition at line 32 of file AndradeTransport.C.

Member Function Documentation

◆ clone()

Foam::autoPtr< Foam::AndradeTransport< Thermo > > clone ( ) const
inline

Construct and return a clone.

Definition at line 59 of file AndradeTransportI.H.

◆ New()

Foam::autoPtr< Foam::AndradeTransport< Thermo > > New ( const dictionary dict)
inlinestatic

Definition at line 70 of file AndradeTransportI.H.

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

Here is the call graph for this function:

◆ typeName()

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 177 of file AndradeTransport.H.

References AndradeTransport< Thermo >::kappa(), AndradeTransport< Thermo >::mu(), p, Foam::T(), and AndradeTransport< Thermo >::write().

Here is the call graph for this function:

◆ mu()

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

Dynamic viscosity [kg/m/s].

Definition at line 83 of file AndradeTransportI.H.

References Foam::exp(), AndradeTransport< Thermo >::kappa(), and Foam::sqr().

Referenced by AndradeTransport< Thermo >::New(), and AndradeTransport< Thermo >::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 100 of file AndradeTransportI.H.

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

Referenced by AndradeTransport< Thermo >::mu(), and AndradeTransport< Thermo >::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 43 of file AndradeTransport.C.

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

Referenced by AndradeTransport< Thermo >::typeName().

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

Friends And Related Function Documentation

◆ operator

Ostream& operator ( Ostream ,
const AndradeTransport< Thermo > &   
)
friend

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