Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

region3.h

00001 /* 00002 00003 freesteam - IAPWS-IF97 steam tables library 00004 Copyright (C) 2004-2005 John Pye 00005 00006 This program is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU General Public License 00008 as published by the Free Software Foundation; either version 2 00009 of the License, or (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software 00018 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00019 00020 */ 00021 00022 #ifndef REGION3_H 00023 #define REGION3_H 00024 00025 #include "state.h" 00026 #include "zeroin.h" 00027 00028 #define REG3_DENS_REF RHO_CRIT // kg/m³ 00029 #define REG3_TEMP_REF T_CRIT // K 00030 00031 class Region3:public SteamState { 00032 00033 public: 00034 int getRegion() const; 00035 00036 SpecificVolume specvol(const SteamCalculator &c) const; 00037 SpecificEnergy specienergy(const SteamCalculator &c) const; 00038 SpecificEntropy specentropy(const SteamCalculator &c) const; 00039 SpecificEnergy specenthalpy(const SteamCalculator &c) const; 00040 SpecHeatCap speccp(const SteamCalculator &c) const; 00041 SpecHeatCap speccv(const SteamCalculator &c) const; 00042 00043 Pressure pres(const SteamCalculator &c) const; 00044 Density dens(const SteamCalculator &c) const; 00045 00046 Temperature temp(const SteamCalculator &c) const; 00047 00048 protected: 00049 friend class SteamCalculator; 00050 00051 static SteamState *Instance(); 00052 00053 virtual void set_pT(SteamCalculator &c, const Pressure &p, const Temperature &T, Num x); 00054 00055 private: 00056 00057 Region3(); 00058 static Region3 *_instance; 00059 00060 Num phi(const SteamCalculator &c) const; 00061 Num phidel(const SteamCalculator &c) const; 00062 Num phideldel(const SteamCalculator &c) const; 00063 Num phitau(const SteamCalculator &c) const; 00064 Num phitautau(const SteamCalculator &c) const; 00065 Num phideltau(const SteamCalculator &c) const; 00066 00067 Num pitau_iaps85(const SteamCalculator &c) const; 00068 Num delpi_iaps85(const SteamCalculator &c) const; 00069 00070 }; 00071 00072 #endif

Generated on Tue Mar 22 19:07:05 2005 for freesteam by doxygen 1.3.8