Transport package using polynomial functions of the natural logarithm of temperature for the natural logarithm of dynamic viscosity and thermal conductivity: More...
Public Member Functions | |
logPolynomialTransport (const word &, const logPolynomialTransport &) | |
Construct as named copy. More... | |
logPolynomialTransport (const dictionary &dict) | |
Construct from dictionary. More... | |
autoPtr< logPolynomialTransport > | 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 logPolynomialTransport &) |
void | operator*= (const scalar) |
Static Public Member Functions | |
static autoPtr< logPolynomialTransport > | New (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 &) |
Ostream & | operator (Ostream &, const logPolynomialTransport &) |
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.
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 92 of file logPolynomialTransport.H.
|
inline |
Construct as named copy.
Definition at line 46 of file logPolynomialTransportI.H.
logPolynomialTransport | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 33 of file logPolynomialTransport.C.
|
inline |
Construct and return a clone.
Definition at line 59 of file logPolynomialTransportI.H.
|
inlinestatic |
Definition at line 70 of file logPolynomialTransportI.H.
References dict, and logPolynomialTransport< Thermo, PolySize >::mu().
|
inlinestatic |
Return the instantiated type name.
Definition at line 172 of file logPolynomialTransport.H.
References logPolynomialTransport< Thermo, PolySize >::kappa(), logPolynomialTransport< Thermo, PolySize >::mu(), logPolynomialTransport< Thermo, PolySize >::operator*=(), logPolynomialTransport< Thermo, PolySize >::operator+=(), p, Foam::T(), and logPolynomialTransport< Thermo, PolySize >::write().
|
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().
|
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().
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().
|
inline |
Definition at line 107 of file logPolynomialTransportI.H.
References Foam::mag(), and Y.
Referenced by logPolynomialTransport< Thermo, PolySize >::typeName().
|
inline |
Definition at line 128 of file logPolynomialTransportI.H.
References Foam::mag(), and s().
Referenced by logPolynomialTransport< Thermo, PolySize >::typeName().
|
friend |
|
friend |
|
friend |