Transport package using polynomial functions of temperature for the dynamic viscosity and thermal conductivity: More...


Public Member Functions | |
| polynomialTransport (const word &, const polynomialTransport &) | |
| Construct as named copy. More... | |
| polynomialTransport (const dictionary &dict) | |
| Construct from dictionary. More... | |
| autoPtr< polynomialTransport > | clone () 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 polynomialTransport &) |
| void | operator*= (const scalar) |
Static Public Member Functions | |
| static autoPtr< polynomialTransport > | New (const dictionary &dict) |
| static word | typeName () |
| Return the instantiated type name. More... | |
Friends | |
| polynomialTransport | operator+ (const polynomialTransport &, const polynomialTransport &) |
| polynomialTransport | operator* (const scalar, const polynomialTransport &) |
| Ostream & | operator (Ostream &, const polynomialTransport &) |
Transport package using polynomial functions of temperature for the dynamic viscosity and thermal conductivity:
mu = muCoeffs[0] + muCoeffs[1]*T + muCoeffs[2]*sqr(T)
+ muCoeffs[3]*pow3(T) + muCoeffs[4]*pow4(T)
+ muCoeffs[5]*pow(T, 5) + muCoeffs[6]*pow(T, 6)
+ muCoeffs[7]*pow(T, 7)
kappa = kappaCoeffs[0] + kappaCoeffs[1]*T + kappaCoeffs[2]*sqr(T)
+ kappaCoeffs[3]*pow3(T) + kappaCoeffs[4]*pow4(T)
+ kappaCoeffs[5]*pow(T, 5) + kappaCoeffs[6]*pow(T, 6)
+ kappaCoeffs[7]*pow(T, 7)
The polynomial function is templated on the order of the polynomial which defaults to 8.
| 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);
}
Definition at line 91 of file polynomialTransport.H.
|
inline |
Construct as named copy.
Definition at line 46 of file polynomialTransportI.H.
| polynomialTransport | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 33 of file polynomialTransport.C.
|
inline |
Construct and return a clone.
Definition at line 59 of file polynomialTransportI.H.
|
inlinestatic |
Definition at line 70 of file polynomialTransportI.H.
References dict, and polynomialTransport< Thermo, PolySize >::mu().

|
inlinestatic |
Return the instantiated type name.
Definition at line 164 of file polynomialTransport.H.
References polynomialTransport< Thermo, PolySize >::kappa(), polynomialTransport< Thermo, PolySize >::mu(), polynomialTransport< Thermo, PolySize >::operator*=(), polynomialTransport< Thermo, PolySize >::operator+=(), p, Foam::T(), and polynomialTransport< Thermo, PolySize >::write().

|
inline |
Dynamic viscosity [kg/m/s].
Definition at line 83 of file polynomialTransportI.H.
References polynomialTransport< Thermo, PolySize >::kappa().
Referenced by polynomialTransport< Thermo, PolySize >::New(), and polynomialTransport< Thermo, PolySize >::typeName().


|
inline |
Thermal conductivity [W/m/K].
Definition at line 94 of file polynomialTransportI.H.
Referenced by polynomialTransport< Thermo, PolySize >::mu(), and polynomialTransport< Thermo, PolySize >::typeName().

| void write | ( | Ostream & | os | ) | const |
Write to Ostream.
Definition at line 58 of file polynomialTransport.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 polynomialTransport< Thermo, PolySize >::typeName().


|
inline |
Definition at line 107 of file polynomialTransportI.H.
References Foam::mag(), and Y.
Referenced by polynomialTransport< Thermo, PolySize >::typeName().


|
inline |
Definition at line 128 of file polynomialTransportI.H.
References Foam::mag(), and s().
Referenced by polynomialTransport< Thermo, PolySize >::typeName().


|
friend |
|
friend |
|
friend |