Skip to content
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

Errors in homotopy implementations in MSL 3.2.1 #974

Closed
modelica-trac-importer opened this issue Jan 14, 2017 · 9 comments
Closed

Errors in homotopy implementations in MSL 3.2.1 #974

modelica-trac-importer opened this issue Jan 14, 2017 · 9 comments
Assignees
Labels
bug Critical/severe issue L: Fluid Issue addresses Modelica.Fluid (excl. Dissipation)
Milestone

Comments

@modelica-trac-importer
Copy link

modelica-trac-importer commented Jan 14, 2017

Modified by dietmarw on 28 Jan 2013 09:46 UTC
It seems that there are errors in homotopy implementations in MSL 3.2.1:

  1. in Modelica.Fluid.Fittings.BaseClasses.QuadraticTurbulent.BaseModel:
 if from_dp then
    m_flow = homotopy(...,
                     m_flow_nominal*dp_fg/dp_nominal);
 else
    dp_fg = homotopy(...,
                     m_flow_nominal*dp_fg/dp_nominal);
 end if;

The second expression should be something like: simplified=dp_nominal*m_flow/m_flow_nominal

  1. in Modelica.Fluid.Fittings.SimpleGenericOrifice:
 if from_dp then
   m_flow = homotopy(...,
                      m_flow_nominal*dp_fg/dp_nominal);
 else
   dp_fg = homotopy(...,
                    m_flow_nominal*dp_fg/dp_nominal);
 end if;

The second expression should be something like: simplified=dp_nominal*m_flow/m_flow_nominal

  1. MSL 3.3Dev is built completely differently, and doesn't contain these models.

Best regards,

Eric Thomas


Reported by Eric Thomas on 27 Jan 2013 19:13 UTC
It seems that there are errors in homotopy implementations in MSL 3.2.1:

1/ in Modelica.Fluid.Fittings.BaseClasses.QuadraticTurbulent.BaseModel:

if from_dp then
m_flow = homotopy(...,
m_flow_nominal*dp_fg/dp_nominal);
else
dp_fg = homotopy(...,
m_flow_nominal*dp_fg/dp_nominal);
end if;

The second expression should be something like: simplified=dp_nominal*m_flow/m_flow_nominal

2/ in Modelica.Fluid.Fittings.SimpleGenericOrifice:

if from_dp then
m_flow = homotopy(...,
m_flow_nominal*dp_fg/dp_nominal);
else
dp_fg = homotopy(...,
m_flow_nominal*dp_fg/dp_nominal);
end if;

The second expression should be something like: simplified=dp_nominal*m_flow/m_flow_nominal

3/ MSL 3.3Dev is built completely differently, and doesn't contain these models.

Best regards,

Eric Thomas


Migrated-From: https://trac.modelica.org/Modelica/ticket/974

@modelica-trac-importer
Copy link
Author

Modified by otter on 27 Jan 2013 19:16 UTC

@modelica-trac-importer modelica-trac-importer added the L: Fluid Issue addresses Modelica.Fluid (excl. Dissipation) label Jan 14, 2017
@modelica-trac-importer modelica-trac-importer added this to the ModelicaSpec3.2rev2 milestone Jan 14, 2017
@modelica-trac-importer
Copy link
Author

Comment by dietmarw on 28 Jan 2013 09:46 UTC
Improved readability of code listing.

@modelica-trac-importer
Copy link
Author

Comment by dietmarw on 28 Jan 2013 09:46 UTC
Thomas, I'm wondering which MSL 3.3Dev you are referring to. Currently there is no such thing and in trunk is the development version that is going to be released as MSL 3.2.1. Could you clarify?

@modelica-trac-importer
Copy link
Author

Comment by eth on 30 Jan 2013 21:32 UTC
You are right. It seems that I have confused several development versions. I don't find it again. It is better.

@modelica-trac-importer
Copy link
Author

Comment by dietmarw on 30 Jan 2013 21:46 UTC
Now I have to ask again:

  1. Did you find this issue in the Specification or in the Modelica Standard Library?
  2. Is the issue still present?

@modelica-trac-importer
Copy link
Author

Comment by rfranke on 31 Jan 2013 18:06 UTC
the bug is present in the trunk and needs to be solved for MSL 3.2.1.

@modelica-trac-importer modelica-trac-importer modified the milestones: MSL3.2.1, ModelicaSpec3.2rev2 Jan 14, 2017
@modelica-trac-importer
Copy link
Author

Modified by dietmarw on 31 Jan 2013 18:07 UTC

@modelica-trac-importer
Copy link
Author

Modified by dietmarw on 23 Feb 2013 12:57 UTC

@modelica-trac-importer
Copy link
Author

Comment by fcasella on 5 Mar 2013 22:38 UTC
Fixed in e888ba4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Critical/severe issue L: Fluid Issue addresses Modelica.Fluid (excl. Dissipation)
Projects
None yet
Development

No branches or pull requests

4 participants