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
Predefined Types -> Real Type -> assert for nominal #1445
Comments
Comment by kurzbach on 19 Mar 2014 12:34 UTC
The (Sorry for the orignial german text) |
Comment by fcasella on 19 Mar 2014 13:02 UTC We should clearly define the semantics in the normative text, and then draw the appropriate consequences on the assertions. My proposal is to state explicitly in the normative text that the nominal attribute is meant to be used for scaling purposes and to define tolerances in relative terms. I cannot really see other uses of this attribute. As a consequence, we should remove that assertion entirely. For example, it is perfectly legitimate to use 1e6 as a scaling value for a pressure type, but then use this type in an application where, say, min = 1.2e6 and max = 2e6, e.g., because you are computing properties by polynomials, which are only valid in that narrow range. I really don't see why one should change nominal in that case to, say, 1.5e6, as 1e6 would still be perfectly OK for scaling purposes, even if it falls outside the min-max range. |
Comment by lochel on 22 Mar 2014 08:24 UTC Moreover, |
Comment by hansolsson on 31 Mar 2016 15:48 UTC
I also agree. I.e. remove that assertion and add |
Comment by hansolsson on 21 Jun 2016 08:28 UTC |
Comment by hansolsson on 23 Jun 2016 11:40 UTC |
Comment by hansolsson on 23 Sep 2016 12:20 UTC |
Reported by vitalij.ruge on 19 Mar 2014 12:22 UTC
It seems for me
is a bit odd, because nominal are the dimension of the variable and the do not depend from signum.
e.g. for a = -1e13, 1e13 is a good nominal value
Migrated-From: https://trac.modelica.org/Modelica/ticket/1445
The text was updated successfully, but these errors were encountered: