- Index
- » Programming
- » Modelica Language
- » A trivial doubt
A trivial doubt
A trivial doubt
I understand that a parameter in Modelica is a variable whose value does not vary during simulation.
However it is frequent done in Modelica Standart Library to see start expressions in parameter definition, such as:
Lmd(start=0.3/(2*pi*fsNominal))
in SM_PermanentMagnet.
If parameters must not change during simulation, why it is possible to set for them a start value instead of a fixed value?
I could not find an answer in the Modelica standard specifications.
MC
- ceraolo
- 147 Posts
Re: A trivial doubt
The start value is used as an initial guess during initialization (which I believe comes before simulation according to the standard; although maybe that is never stated).
- sjoelund.se
- 1700 Posts
Re: A trivial doubt
Ah, thanks.
Maybe in cases in which no initialization is set, it is a good idea to give parameters fixed values instead of starting ones, which might tbe confusing.
However, when things are clear (and now for me they are) this is just a minor glitch of some MSL components.
Massimo
- ceraolo
- 147 Posts
- Index
- » Programming
- » Modelica Language
- » A trivial doubt