New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discontinuous v_smooth in dp_edgedOverall_MFLOW #1188
Comments
Modified by dietmarw on 29 Jun 2013 17:30 UTC |
Comment by otter on 3 Jul 2013 13:05 UTC |
Comment by wischhusen on 12 Jul 2013 07:26 UTC |
Comment by wischhusen on 13 Jul 2013 14:23 UTC |
Comment by otter on 14 Jul 2013 07:20 UTC |
Comment by edo.drenth on 6 Sep 2013 15:39 UTC Without having read all the sources mentioned in the code, the tests I have performed make me believe there is a fundemental design flaw. The v_lam and v_turb have significant different value when the transition is to take place as fucntion of dp. The transition then is self-amplifying and has an almost instant pressure drop. This works fine as long as the model is not part of an implicit system to be solved. I guess when the transition is made when v_turb and v_lam are equal this problem will not occur, but then it may violate the physical results obtained in the referencef litterature. Any thoughts? |
Comment by wischhusen on 17 Jun 2014 09:03 UTC |
Modified by beutlich on 18 Jun 2014 09:13 UTC |
Changelog modified by wischhusen on 2 Dec 2014 09:57 UTC |
Modified by beutlich on 19 Mar 2015 11:37 UTC |
Changelog removed by beutlich on 19 Mar 2015 11:37 UTC |
Modified by beutlich on 19 Mar 2015 11:39 UTC |
Modified by wischhusen on 27 Mar 2015 10:14 UTC |
Changelog modified by wischhusen on 27 Mar 2015 10:14 UTC |
Modified by beutlich on 22 Jul 2015 22:03 UTC |
Changelog modified by beutlich on 22 Jul 2015 22:03 UTC |
Modified by dietmarw on 29 Jun 2013 17:30 UTC
This part of the code in dp_edgedOverall_MFLOW shows a discontinues signal for v_smooth when abs(dp) becomes larger than dp_lam (or vice versa). Unsure if this is on purpose, but it causes simulations to fail if this function is part of an implicit system equations to be solved (nonlinear systems in Dymola).
Reported by edo.drenth on 29 Jun 2013 17:15 UTC
This part of the code in dp_edgedOverall_MFLOW shows a discontinues signal for v_smooth when abs(dp) becomes larger than dp_lam (or vice versa). Unsure if this is on purpose, but it causes simulations to fail if this function is part of an implicit system equations to be solved (nonlinear systems in Dymola).
//mean velocity under smooth conditions w.r.t. flow regime
Modelica.SIunits.Velocity v_smooth=if abs(dp) > dp_lam then (2*abs(dp))!^0.5*(
A*C1*zeta_LOC*IN_var.rho)!(-0.5) else (2*(d_hyd/IN_var.eta)!exp/(A*C1*
zeta_LOC*B*(IN_var.rho)!(1 - exp)))!(1/pow)*
Modelica.Fluid.Dissipation.Utilities.Functions.General.SmoothPower(
abs(dp),
dp_min,
1/pow) "Mean velocity under smooth conditions";
Migrated-From: https://trac.modelica.org/Modelica/ticket/1188
The text was updated successfully, but these errors were encountered: