00001 /* This file is part of Cloudy and is copyright (C)1978-2011 by Gary J. Ferland and 00002 * others. For conditions of distribution and use see copyright notice in licenSse.txt */ 00003 00004 #ifndef PRESSURE_CHANGE_H_ 00005 #define PRESSURE_CHANGE_H_ 00006 00011 class PresMode 00012 { 00013 public: 00014 int global, zone; 00015 void set(); 00016 }; 00017 00018 class solverState 00019 { 00020 public: 00021 double dp, erp, press; 00022 int lastzone; 00023 explicit solverState() : dp(-1.), erp(-1.), press(0), lastzone(-1) 00024 {} 00025 }; 00026 00027 double pressureZone(const PresMode &presmode); 00028 bool PressureChange(double dP_chng_factor, const PresMode &presmode, 00029 solverState &st); 00030 double zoneDensity(); 00031 00032 00033 #endif // PRESSURE_CHANGE_H_