casella / ThermoPower

A Modelica library for thermal power generation system modelling
https://casella.github.io/ThermoPower
39 stars 31 forks source link

Brayton Cycle Example #12

Open stephen-hills opened 4 years ago

stephen-hills commented 4 years ago

I'm trying to get the brayton cycle example to work so I can try testing the compressor but I keep getting the same error when I run the closed loop and open loop examples (model error: Argument of sqrt(plant.turbine.gas_in.T) was negative number should be >=0. I'm not sure what to do to fix it. Also, is there another example that uses the compressor? I'm trying to model a refrigeration cycle using that compressor.

casella commented 4 years ago

Which tool are you using?

stephen-hills commented 4 years ago

I'm using OpenModelica version 3.2.3

casella commented 4 years ago

From the CI testing report the Brayton cycle models seem to work. Is this a new model you made on your own?

stephen-hills commented 4 years ago

I don't think I've modified any of the components in the example. I just tried running the example Brayton cycle. The compiler I'm using is OpenModelica v1.15.0