00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00027 #ifndef OPM_UNIT_HPP
00028 #define OPM_UNIT_HPP
00029
00030 #include "Component.hpp"
00031
00032 namespace Opm
00033 {
00044 template <class Scalar>
00045 class Unit : public Component<Scalar, Unit<Scalar> >
00046 {
00047
00048 public:
00052 static const char* name()
00053 { return "Unit"; }
00054
00058 static Scalar molarMass()
00059 { return 1.0; }
00060
00064 static Scalar criticalTemperature()
00065 { return 1.0; }
00066
00070 static Scalar criticalPressure()
00071 { return 1.0; }
00072
00076 static Scalar tripleTemperature()
00077 { return 1.0; }
00078
00082 static Scalar triplePressure()
00083 { return 1.0; }
00084
00088 template <class Evaluation>
00089 static Evaluation vaporPressure(const Evaluation& )
00090 { return 1.0; }
00091
00095 static bool liquidIsCompressible()
00096 { return false; }
00097
00101 static bool gasIsCompressible()
00102 { return false; }
00103
00107 static bool gasIsIdeal()
00108 { return false; }
00109
00113 template <class Evaluation>
00114 static Evaluation liquidDensity(const Evaluation& , const Evaluation& )
00115 { return 1.0; }
00116
00120 template <class Evaluation>
00121 static Evaluation liquidViscosity(const Evaluation& , const Evaluation& )
00122 { return 1.0; }
00123
00127 template <class Evaluation>
00128 static Evaluation gasDensity(const Evaluation& , const Evaluation& )
00129 { return 1.0; }
00130
00134 template <class Evaluation>
00135 static Evaluation gasViscosity(const Evaluation& , const Evaluation& )
00136 { return 1.0; }
00137
00138
00142 template <class Evaluation>
00143 static Evaluation gasEnthalpy(const Evaluation& , const Evaluation& )
00144 { return 1.0; }
00145
00149 template <class Evaluation>
00150 static Evaluation liquidEnthalpy(const Evaluation& , const Evaluation& )
00151 { return 1.0; }
00152
00156 template <class Evaluation>
00157 static Evaluation gasInternalEnergy(const Evaluation& , const Evaluation& )
00158 { return 1.0; }
00159
00163 template <class Evaluation>
00164 static Evaluation liquidInternalEnergy(const Evaluation& , const Evaluation& )
00165 { return 1.0; }
00166
00170 template <class Evaluation>
00171 static Evaluation gasThermalConductivity(const Evaluation& , const Evaluation& )
00172 { return 1.0; }
00173
00177 template <class Evaluation>
00178 static Evaluation liquidThermalConductivity(const Evaluation& , const Evaluation& )
00179 { return 1.0; }
00180
00184 template <class Evaluation>
00185 static Evaluation gasHeatCapacity(const Evaluation& , const Evaluation& )
00186 { return 1.0; }
00187
00191 template <class Evaluation>
00192 static Evaluation liquidHeatCapacity(const Evaluation& , const Evaluation& )
00193 { return 1.0; }
00194 };
00195
00196 }
00197
00198 #endif