two-phase fluid Simulink
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I am having some troubles simulating a hydraulic model with a two-phase fluid in Simulink (using Simscape Fluids)
The model works properly when the inputs in the "Two-Phase Fluid Properties (2P)" block are defined within the subcritical region (Pcritical = 46 bar in my model). However, when I extend the pressure vector (and the other thermophysical properties of the fluid) over the critical pressure specified in the block, the following error pops up:
Error compiling Simscape network for model aaaa.
Caused by:
- ['model/block': In foundation.two_phase_fluid.utilities.two_phase_fluid_properties (line 898)
The bold equation below seems to be popping up the error message:
if n_sub < n
assert(all(v_sat_liq_sup(:) == v_sat_vap_sup(:)))
assert(all(s_sat_liq_sup(:) == s_sat_vap_sup(:)))
assert(all(T_sat_liq_sup(:) == T_sat_vap_sup(:)))
assert(all(nu_sat_liq_sup(:) == nu_sat_vap_sup(:)))
assert(all(k_sat_liq_sup(:) == k_sat_vap_sup(:)))
assert(all(Pr_sat_liq_sup(:) == Pr_sat_vap_sup(:)))
I have defined the liquid and vapor-saturated curves over the critical pressure to be exactly the same but still getting that error...
Anybody had similar problems? I Would appreciate any comment/hint with this.
Thanks!
Alejandro.
0 个评论
回答(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!