Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

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

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).

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

There are 0 guests and 0 other users also viewing this topic
You are here: