-
Notifications
You must be signed in to change notification settings - Fork 169
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
Wrong calculation of Reynolds number for non-circular pipes #1601
Comments
Modified by beutlich on 13 Nov 2014 11:35 UTC |
Modified by dietmarw on 17 Dec 2014 09:59 UTC |
Comment by A.Taeschner on 5 Jan 2015 10:53 UTC 2.) circular ring pipe (100 m length, 5 mm inner diameter, 15 mm outer diameter) |
Comment by rfranke on 6 Jan 2015 14:39 UTC Would you mind to add some HTML docu and author info to NonCircularPipes.mo? I'd like to add it to Fluid under Modelica.Fluid.Examples.NonCircularPipes. |
Comment by Alexander Täschner on 6 Jan 2015 15:15 UTC |
Comment by rfranke on 6 Jan 2015 21:46 UTC The (LaminarAnd)QuadraticTurbulent models still need to be fixed. |
Comment by rfranke on 7 Jan 2015 15:50 UTC This is why SVN dfd83ac adds assertions and clarifications to the doc strings. Following the proposal in this ticket, non-circular tubes work with the default DetailedPipeFlow model now. |
Comment by rfranke on 8 Jan 2015 15:20 UTC |
Reported by A.Taeschner on 10 Nov 2014 12:13 UTC
I found a severe bug in the Fluid library when calculating the pressure drop of noncircular pipes where the cross area A is not given by A=pi/4*d*d anymore. The bug is in line 3422 of Modelica/Fluid/Pipes.mo:
Re :=(4/pi)*abs(m_flow)/(diameter*mu);
This equation is only correct for circular pipes, but for arbitrary pipes it has to be:
Re :=abs(m_flow)*diameter/(crossArea*mu);
This seems to be not the only line where the wrong assumption (A=pi/4*d*d) has been used, but I had no time to investigate this further.
Migrated-From: https://trac.modelica.org/Modelica/ticket/1601
The text was updated successfully, but these errors were encountered: