I have a project to simulate the pressure exchange between multiple connected volumes with valves.
In the picture above you can see that each tank has a Pressure, Volume, and Temperature. There are valves between each of the volumes that can be open or closed. Some of the volumes are at vacuum and so chocked and unchoked flow will be present during the analysis. Also, I have a hard constraint that I need to open and close these valves based on the Pressure of other volumes, and this analysis needs a clear output of pressures over time. These volumes are rather large, so I think I can also assume constant temperature for this problem. Speed is critical for this analysis, and I don't need anything complex. (You can assume each volume as a 1 dimensional node connected to other nodes)
Over the years I have tried to solve this problem, but my models always seem to be unstable. The reason for this is probably because I've always coded this problem from scratch. I think I need to start thinking about using an analysis library. I'd highly prefer python for this problem.
However, every fluid python library I look at confuses me with technical jargon. I'm hoping folks with more experience in this field can point me in the the right direction.
Questions:
- Are there Python Libraries that solve my problem? (Time simulation of 1D nodes exchanging air between each other)
- What are some of these python libraries?
- Can you point me to any examples or provide any simple examples similar to my problem?
Thank you for your help!