Opened 10 years ago

Last modified 9 years ago

#4301 accepted enhancement

Feature to break the simulation when the steady state has been reached — at Version 3

Reported by: Adrian Pop Owned by: Lennart Ochel
Priority: high Milestone: Future
Component: Backend Version:
Keywords: Cc:

Description (last modified by Adrian Pop)

Proposed here:
http://stackoverflow.com/questions/42673420/global-measure-to-test-when-steady-state-of-system-is-reached

The first point sounds like a good to have feature and doesn't seem that hard to implement, basically a terminate when all the ders are 0 (within an epsilon) for a number of steps.

For the second point we would need a global operator that returns true when all ders are within an epsilon interval that one can use in equations to enable / disable parts of the system.

Change History (3)

comment:1 by Lennart Ochel, 10 years ago

Owner: changed from somebody to Lennart Ochel
Status: newaccepted

I can take care of the first point.

comment:2 by Adrian Pop, 10 years ago

For the second point we could propose an extension of the Modelica Specification with an operator called steadyState(epsilon) which would return true if each of the ders are < epsilon.

The only issues to think about is what to return during initialization when the ders are zero, etc. I guess we can safely return false for any other phase than simulation.

Last edited 10 years ago by Adrian Pop (previous) (diff)

comment:3 by Adrian Pop, 10 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.