polynomialSolidTransport< Thermo, PolySize > Class Template Reference

Transport package using polynomial functions for solid kappa. More...

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

Public Member Functions

 polynomialSolidTransport (const Thermo &t, const Polynomial< PolySize > &kappaPoly)
 Construct from components. More...
 
 polynomialSolidTransport (const word &, const polynomialSolidTransport &)
 Construct as named copy. More...
 
 polynomialSolidTransport (const word &name, const dictionary &dict)
 Construct from name and dictionary. More...
 
autoPtr< polynomialSolidTransportclone () const
 Construct and return a clone. More...
 
scalar kappa (const scalar p, const scalar T) const
 Isotropic thermal conductivity [W/m/K]. More...
 
vector Kappa (const scalar p, const scalar T) const
 Anisotropic thermal conductivity [W/m/K]. More...
 
void write (Ostream &os) const
 Write to Ostream. More...
 
void operator+= (const polynomialSolidTransport &)
 
void operator*= (const scalar)
 

Static Public Member Functions

static word typeName ()
 Return the instantiated type name. More...
 

Static Public Attributes

static const bool isotropic = true
 Is the thermal conductivity isotropic. More...
 

Friends

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

Detailed Description

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

Transport package using polynomial functions for solid kappa.

Usage
Property Description
kappaCoeffs<8> Thermal conductivity polynomial coefficients

Example of the specification of the transport properties:

    transport
    {
        kappaCoeffs<8>     ( 1000 -0.05 0.003 0 0 0 0 0 );
    }

The polynomial expression is evaluated as so:

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

Note: Thermal conductivity polynomial coefficients evaluate to an expression in [W/m/K].

Source files
See also
Foam::Polynomial

Definition at line 110 of file polynomialSolidTransport.H.

Constructor & Destructor Documentation

◆ polynomialSolidTransport() [1/3]

polynomialSolidTransport ( const Thermo &  t,
const Polynomial< PolySize > &  kappaPoly 
)
inline

Construct from components.

Definition at line 31 of file polynomialSolidTransportI.H.

◆ polynomialSolidTransport() [2/3]

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

Construct as named copy.

Definition at line 44 of file polynomialSolidTransportI.H.

◆ polynomialSolidTransport() [3/3]

polynomialSolidTransport ( const word name,
const dictionary dict 
)

Construct from name and dictionary.

Definition at line 32 of file polynomialSolidTransport.C.

Member Function Documentation

◆ clone()

Foam::autoPtr< Foam::polynomialSolidTransport< Thermo, PolySize > > clone
inline

Construct and return a clone.

Definition at line 58 of file polynomialSolidTransportI.H.

◆ typeName()

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 149 of file polynomialSolidTransport.H.

◆ kappa()

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

Isotropic thermal conductivity [W/m/K].

Definition at line 70 of file polynomialSolidTransportI.H.

References Foam::T().

Here is the call graph for this function:

◆ Kappa()

Foam::vector Kappa ( const scalar  p,
const scalar  T 
) const
inline

Anisotropic thermal conductivity [W/m/K].

Not implemented

Definition at line 81 of file polynomialSolidTransportI.H.

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

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const

Write to Ostream.

Definition at line 52 of file polynomialSolidTransport.C.

References dictionary::add(), dict, dictionaryName::dictName(), Foam::indent(), Foam::name(), and Foam::vtkWriteOps::write().

Here is the call graph for this function:

◆ operator+=()

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

Definition at line 96 of file polynomialSolidTransportI.H.

References Y.

◆ operator*=()

void operator*= ( const scalar  s)
inline

Definition at line 113 of file polynomialSolidTransportI.H.

References s().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator+

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

◆ operator*

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

◆ operator

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

Member Data Documentation

◆ isotropic

const bool isotropic = true
static

Is the thermal conductivity isotropic.

Definition at line 155 of file polynomialSolidTransport.H.


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