Simulation of two phase fluid with Simscape - pressure behavior unexplicable
Show older comments
I simulate the attached system, using the two phase fluid and the self crated properties block with the properties of hydrogen. The tank has 7 bar, the reservoir has 2 bar. Imidiatelly after starting simulation, the pressure in the tank drops down to the level of the reservoir (2 bar). That makes logical for me so sence. When I have a pressure tank with a small exit (area: 1e-4 m²) the pressure in the tank should go down slowly. The level is also plottet, where one can see that even the tank goes empty slowly.
So waht could be my mistake here? 

3 Comments
Yifeng Tang
on 25 Jun 2024
I don't quite understand your question.
By "small exit", did you mean the port area of the BL port?
Were you expecting the pressure to go down more slowly?
Right now, it looks like you have a full tank of liquid hydrogen, discharging into some reservoir at a lower pressure. Is that what you are trying to simulate? It's hard to tell without the actual model.
Marcel Thevagt
on 26 Jun 2024
Edited: Marcel Thevagt
on 1 Jul 2024
Umar
on 26 Jun 2024
Hi Marcel, it seems like you are experiencing a rapid drop in pressure in the tank to match the reservoir pressure immediately after starting the simulation. This abrupt pressure equalization may be unexpected, especially when considering the small exit area of the tank. One potential explanation for this behavior could be related to the properties and behavior of the two-phase fluid you are using in the simulation. If the fluid properties or phase change characteristics are not accurately represented, it could lead to unrealistic pressure dynamics. Additionally, the modeling of the exit area and flow characteristics plays a crucial role in determining the rate at which pressure decreases in the tank. A small exit area, as you mentioned, should indeed result in a slower pressure drop compared to a larger exit area. However, if there are errors in how the flow is modeled or if there are issues with boundary conditions, it could lead to unexpected results. To troubleshoot this issue, you may want to carefully review and validate the properties of the two-phase fluid block, ensure that the exit area and flow calculations are accurately represented, and double-check all boundary conditions and assumptions in your simulation setup. It might also be helpful to compare your results with theoretical calculations or experimental data if available to verify the accuracy of your model.
Accepted Answer
More Answers (1)
Umar
on 1 Jul 2024
0 votes
Hi Marcel,
To answer your question, yes, you are right about transition occurring in less than 1 second indicating a rapid response time. Such rapid changes can impact the overall system dynamics and may lead to issues such as pressure spikes or flow fluctuations.
In my opinion, it may be beneficial to analyze the system parameters, such as the flow rate, pressure drop across the restriction, and the material properties of the fluid. By adjusting these factors or introducing additional control measures, it may be possible to optimize the system's response time and ensure smoother operation.
Hope this helps you resolve your issue.
Categories
Find more on Fluid Network Interfaces Library in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!






