I think there is an error in the documentation or code of the variable local restricion (2P) of the simscape two-phase domain.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Felix Schily
am 7 Jun. 2022
Beantwortet: Yifeng Tang
am 14 Jul. 2022
Whereas the documentation https://de.mathworks.com/help/physmod/simscape/ref/variablelocalrestriction2p.html states that KT depends on v_in/v_out and v_out/v_R,
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1024520/image.png)
in the code, v_in/v_R and v_out/v_R is used:
% Specific volume restriction area ratio
v_area_ratio_in = simscape.function.limit(area_ratio*v_in /v_R, 0, 1, false);
v_area_ratio_out = simscape.function.limit(area_ratio*v_out/v_R, 0, 1, false);
% Factor for mass flow rate vs pressure drop relationship in the turbulent regime
% Based on combined momentum balance for flow area contraction between inlet and restriction
% and sudden flow area expansion between restriction and outlet
K1_tur = (1 + area_ratio)*(1 - v_area_ratio_in) - 2*area_ratio*(1 - v_area_ratio_out);
Does someone have an idea which version is correct?
Kind regards
Felix
0 Kommentare
Akzeptierte Antwort
Yifeng Tang
am 14 Jul. 2022
Typo in the Documentation. Expected to be fixed in future releases and updates. THANKS for pointing it out!!
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Troubleshooting finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!