hPolynomialThermo.C
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #include "hPolynomialThermo.H"
00028 #include "IOstreams.H"
00029
00030
00031
00032 template<class EquationOfState, int PolySize>
00033 Foam::hPolynomialThermo<EquationOfState, PolySize>::hPolynomialThermo
00034 (
00035 Istream& is
00036 )
00037 :
00038 EquationOfState(is),
00039 Hf_(readScalar(is)),
00040 Sf_(readScalar(is)),
00041 cpPolynomial_("cpPolynomial", is),
00042 dhPolynomial_(cpPolynomial_.integrate()),
00043 sPolynomial_(cpPolynomial_.integrateMinus1())
00044 {}
00045
00046
00047
00048
00049 template<class EquationOfState, int PolySize>
00050 Foam::Ostream& Foam::operator<<
00051 (
00052 Ostream& os,
00053 const hPolynomialThermo<EquationOfState, PolySize>& pt
00054 )
00055 {
00056 os << static_cast<const EquationOfState&>(pt) << tab
00057 << pt.Hf_ << tab
00058 << pt.Sf_ << tab
00059 << pt.cpPolynomial_ << tab
00060 << pt.dhPolynomial_ << tab
00061 << pt.sPolynomial;
00062
00063 os.check
00064 (
00065 "operator<<(Ostream& os, const hPolynomialThermo<EquationOfState>& pt)"
00066 );
00067
00068 return os;
00069 }
00070
00071
00072
Copyright © 2000-2009 OpenCFD Ltd