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 STEAMSTATE_H 00023 #define STEAMSTATE_H 00024 00025 //#include "steamcalculator.h" 00026 class SteamCalculator; 00027 #include "common.h" 00028 #include "units.h" 00029 #include "designbycontract.h" 00030 00031 class SteamState : public DesignByContract { 00032 public: 00033 00034 virtual int getRegion(void) const; 00035 00036 virtual SpecificVolume specvol(const SteamCalculator &c) const = 0; 00037 virtual SpecificEnergy specienergy(const SteamCalculator &c) const = 0; 00038 virtual SpecificEntropy specentropy(const SteamCalculator &c) const = 0; 00039 virtual SpecificEnergy specenthalpy(const SteamCalculator &c) const = 0; 00040 virtual SpecHeatCap speccp(const SteamCalculator &c) const = 0; 00041 virtual SpecHeatCap speccv(const SteamCalculator &c) const = 0; 00042 00043 virtual Temperature temp(const SteamCalculator &c) const = 0; 00044 virtual Pressure pres(const SteamCalculator &c) const = 0; 00045 virtual Density dens(const SteamCalculator &c) const = 0; 00046 00047 protected: 00048 00049 friend class SteamCalculator; 00050 00051 static SteamState *Instance(); 00052 virtual void set_pT(SteamCalculator &c, const Pressure &p, const Temperature &T, Num x = -1) = 0; 00053 00054 virtual Num pitau_iaps85(const SteamCalculator &c) const = 0; 00055 virtual Num delpi_iaps85(const SteamCalculator &c) const = 0; 00056 00057 SteamState(){} 00058 00059 }; 00060 00061 #endif
1.5.6