ibell / pdsim

Steady-State simulation code for positive displacement machines
MIT License
38 stars 25 forks source link

Cannot load config file that has pressure under ptriple #6

Closed Oberklasse closed 8 years ago

Oberklasse commented 9 years ago

Throws a ValueError: Pressure in PQ_flash [x Pa] must be in range [ y Pa, z Pa]

Traceback (most recent call last): File "PDSimGUI.py", line 1610, in OnConfigOpen self.rebuild(configdict) File "PDSimGUI.py", line 1014, in rebuild frame = MainFrame(configfile, position=position, size=size) File "PDSimGUI.py", line 854, in init self.build() File "PDSimGUI.py", line 1094, in build self.MTB = MainToolBook(self, self.config) File "PDSimGUI.py", line 795, in init self.InputsTB = family.InputsToolBook(self, configdict) File "C:\pdsim\GUI\families\scroll.py", line 186, in init pdsim_panels.StateInputsPanel(self, config['StatePanel'], name='StatePanel'), File "C:\pdsim\GUI\panels\pdsim_panels.py", line 2278, in init state = CP.State(inletState.Fluid, dict(P=pressure,Q=1)) File "CoolProp\CoolProp.pyx", line 510, in CoolProp.CoolProp.State.init (CoolProp\CoolProp.cpp:27176) File "CoolProp\CoolProp.pyx", line 604, in CoolProp.CoolProp.State.update (CoolProp\CoolProp.cpp:28521) File "CoolProp\AbstractState.pyx", line 39, in CoolProp.CoolProp.AbstractState.update (CoolProp\CoolProp.cpp:9199)

ibell commented 9 years ago

Hmm yes I should definitely be able to fix this. It would perhaps be good to discuss in general a better way of dealing with the discharge state

On Wed, Aug 19, 2015 at 11:18 AM, Michael Karman notifications@github.com wrote:

Throws a ValueError: Pressure in PQ_flash [x Pa] must be in range [ y Pa, z Pa]

Traceback (most recent call last): File "PDSimGUI.py", line 1610, in OnConfigOpen self.rebuild(configdict) File "PDSimGUI.py", line 1014, in rebuild frame = MainFrame(configfile, position=position, size=size) File "PDSimGUI.py", line 854, in init self.build() File "PDSimGUI.py", line 1094, in build self.MTB = MainToolBook(self, self.config) File "PDSimGUI.py", line 795, in init self.InputsTB = family.InputsToolBook(self, configdict) File "C:\pdsim\GUI\families\scroll.py", line 186, in init pdsim_panels.StateInputsPanel(self, config['StatePanel'], name='StatePanel'), File "C:\pdsim\GUI\panels\pdsim_panels.py", line 2278, in init state = CP.State(inletState.Fluid, dict(P=pressure,Q=1)) File "CoolProp\CoolProp.pyx", line 510, in CoolProp.CoolProp.State.init (CoolProp\CoolProp.cpp:27176) File "CoolProp\CoolProp.pyx", line 604, in CoolProp.CoolProp.State.update (CoolProp\CoolProp.cpp:28521) File "CoolProp\AbstractState.pyx", line 39, in CoolProp.CoolProp.AbstractState.update (CoolProp\CoolProp.cpp:9199)

— Reply to this email directly or view it on GitHub https://github.com/ibell/pdsim/issues/6.

ibell commented 8 years ago

Closed by 7305a087e0ff591d5fa4f93a854a064b5f8e4380