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
00028
00029
00030
00031
00032
00033
00034
00035 #ifndef C4H10O_H
00036 #define C4H10O_H
00037
00038 #include <liquids/liquid.H>
00039 #include <thermophysicalFunctions/NSRDSfunc0.H>
00040 #include <thermophysicalFunctions/NSRDSfunc1.H>
00041 #include <thermophysicalFunctions/NSRDSfunc2.H>
00042 #include <thermophysicalFunctions/NSRDSfunc3.H>
00043 #include <thermophysicalFunctions/NSRDSfunc4.H>
00044 #include <thermophysicalFunctions/NSRDSfunc5.H>
00045 #include <thermophysicalFunctions/NSRDSfunc6.H>
00046 #include <thermophysicalFunctions/NSRDSfunc7.H>
00047 #include <thermophysicalFunctions/NSRDSfunc14.H>
00048 #include <thermophysicalFunctions/APIdiffCoefFunc.H>
00049
00050
00051
00052 namespace Foam
00053 {
00054
00055
00056
00057
00058
00059 class C4H10O
00060 :
00061 public liquid
00062 {
00063
00064
00065 NSRDSfunc5 rho_;
00066 NSRDSfunc1 pv_;
00067 NSRDSfunc6 hl_;
00068 NSRDSfunc0 cp_;
00069 NSRDSfunc0 h_;
00070 NSRDSfunc7 cpg_;
00071 NSRDSfunc4 B_;
00072 NSRDSfunc1 mu_;
00073 NSRDSfunc2 mug_;
00074 NSRDSfunc0 K_;
00075 NSRDSfunc2 Kg_;
00076 NSRDSfunc6 sigma_;
00077 APIdiffCoefFunc D_;
00078
00079
00080 public:
00081
00082
00083 TypeName("C4H10O");
00084
00085
00086
00087
00088
00089 C4H10O();
00090
00091
00092 C4H10O
00093 (
00094 const liquid& l,
00095 const NSRDSfunc5& density,
00096 const NSRDSfunc1& vapourPressure,
00097 const NSRDSfunc6& heatOfVapourisation,
00098 const NSRDSfunc0& heatCapacity,
00099 const NSRDSfunc0& enthalpy,
00100 const NSRDSfunc7& idealGasHeatCapacity,
00101 const NSRDSfunc4& secondVirialCoeff,
00102 const NSRDSfunc1& dynamicViscosity,
00103 const NSRDSfunc2& vapourDynamicViscosity,
00104 const NSRDSfunc0& thermalConductivity,
00105 const NSRDSfunc2& vapourThermalConductivity,
00106 const NSRDSfunc6& surfaceTension,
00107 const APIdiffCoefFunc& vapourDiffussivity
00108 );
00109
00110
00111 C4H10O(Istream& is);
00112
00113
00114
00115
00116
00117 inline scalar rho(scalar p, scalar T) const;
00118
00119
00120 inline scalar pv(scalar p, scalar T) const;
00121
00122
00123 inline scalar hl(scalar p, scalar T) const;
00124
00125
00126 inline scalar cp(scalar p, scalar T) const;
00127
00128
00129 inline scalar h(scalar p, scalar T) const;
00130
00131
00132 inline scalar cpg(scalar p, scalar T) const;
00133
00134
00135 inline scalar B(scalar p, scalar T) const;
00136
00137
00138 inline scalar mu(scalar p, scalar T) const;
00139
00140
00141 inline scalar mug(scalar p, scalar T) const;
00142
00143
00144 inline scalar K(scalar p, scalar T) const;
00145
00146
00147 inline scalar Kg(scalar p, scalar T) const;
00148
00149
00150 inline scalar sigma(scalar p, scalar T) const;
00151
00152
00153 inline scalar D(scalar p, scalar T) const;
00154
00155
00156 inline scalar D(scalar p, scalar T, scalar Wb) const;
00157
00158
00159
00160
00161
00162 void writeData(Ostream& os) const
00163 {
00164 liquid::writeData(os); os << nl;
00165 rho_.writeData(os); os << nl;
00166 pv_.writeData(os); os << nl;
00167 hl_.writeData(os); os << nl;
00168 cp_.writeData(os); os << nl;
00169 cpg_.writeData(os); os << nl;
00170 B_.writeData(os); os << nl;
00171 mu_.writeData(os); os << nl;
00172 mug_.writeData(os); os << nl;
00173 K_.writeData(os); os << nl;
00174 Kg_.writeData(os); os << nl;
00175 sigma_.writeData(os); os << nl;
00176 D_.writeData(os); os << endl;
00177 }
00178
00179
00180 friend Ostream& operator<<(Ostream& os, const C4H10O& l)
00181 {
00182 l.writeData(os);
00183 return os;
00184 }
00185 };
00186
00187
00188
00189
00190 }
00191
00192
00193
00194 #include "C4H10OI.H"
00195
00196
00197
00198 #endif
00199
00200