Exit pressure of a choked nozzle in Simscape
21 次查看(过去 30 天)
显示 更早的评论
Hi, I'm trying to model a simple convergent nozzle in Simscape.
The pressure at the exit of such nozzle (P_e) can assume two values:
- P_e equal to the ambient pressure if the flow is subsonic (Mach<1).
- P_e equal to approximately 0.528*P0 if the flow is sonic (Mach=1). (P0 is the total pressure, P0=P + 0.5*density*velocity^2)
How can I impose these conditions and switch between them ?
I have used the reservoir block (I'm working in the gas domain ) to set the ambient pressure of the subsonic case but I don't know how to impose the total pressure for the sonic case since it is not known a-priori (it depends on the head loss in the piping system).
Thank you.
0 个评论
回答(1 个)
Yifeng Tang
2022-6-22
Sounds like you are just trying to set an outlet boundary reservior with pressure of atm or 0.528*P0. Not sure if this will work, but may worth a try:
Use a reservoir at 1 atm, and conncet a controlled pressure source before that. The input to the pressure source can be the output of a look-up table or some function that will transit from 0 to 0.528*P0 rather quickly. You need a way to sense and calculate P0 of course, which means you will need to make quantities like rho and vel available by modifying some of the existing blocks (or maybe you are already writing your own custom blocks).
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Two-Phase Fluid Library 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!