-
Hi all, I've been working on some simulations of gas liquefaction systems (mostly the Simple Claude Cycle) in TESPy v0.6.3. I'm now trying to run the same systems on a different computer using v0.7.0 but I can't seem to get things working. I think that the main issues I've been coming across are related to how fluid properties are handled in v0.7.0. I've attached some of the v0.7.0 and v0.6.3 code I'm trying to run below (first .txt file has code copied over from 2 different examples). Air_Claude_Cycle_Newtons_Nature.txt The issue I'm finding with this code is that the parameters I've set work for v0.6.3 but I can't seem to adapt them for v0.7.0. As they are now, I get the error of "... too many parameters: 32 required, 33 supplied" but if I delete any of them, I would consistently get a Jacobian Singularity error. Any guidance would be greatly appreciated. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Ok, after some more testing, I seem to have partially answered my own question. I'm not sure this existed before but the documentation on the Separator component now reads: "The separator is used to split up a single mass flow into a specified number of different parts at identical pressure and temperature but different fluid composition." I tried some basic tests in v0.7.0 using a separator on a pure fluid and it would not work but as soon as I inputted a mixture, it worked. I tried a similar fix on my Claude Cycle code but it started giving me another error saying "ValueError: For now, we don't support T [0 K] below Tmelt(p) [54.4493 K]" even though the same simulation in v0.6.3 does not seem to get lower than ~79 K. This is a separate issue to my first though. Is there a reason why the Separator component was changed to no longer work with pure fluids? |
Beta Was this translation helpful? Give feedback.
Okay, got it. You should not be using a
Separator
. That component is intended to be used if you want to separate different fluids (not the same fluid in different phases).On top of that, I recommend you go step by step and start with the "easy" equations (specified pressure and enthalpy values). Add one element after the other to the plant and check for convergence in between. Specification of
kA
orttd_u
work best, if you already have good starting values. The script below should produce the desired results: