Opened 5 years ago

Last modified 4 years ago

#5709 new defect

Equidistant time grid not working properly — at Version 2

Reported by: massimo ceraolo Owned by: somebody
Priority: blocker Milestone: 1.19.0
Component: *unknown* Version:
Keywords: Cc:

Description (last modified by massimo ceraolo)

The Simulation setup, checking the option "equidistant time grid", while simultaneously unchecking "Store Variables at events", should give, in my understanding, control on the number of points stored in the output file.

This is very important when one wants to post-process results, for instance using an algorithm to find harmonics in periodic curves, which often require uniform sampling time.

Take for instance:
Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R

Let us set:

  • set Stop time: 0.1
  • set Number of Intervals 5000
  • select "Equidistant time Grid"
  • unselect "Store Variables at Events".

According to these options, I would expect to have exactly 5001 points in the output file, and, in fact, with Dymola this is what happens.

With OM, instead, I produce 4901 points. I suspect that these are not equidistant.

Change History (2)

comment:1 by Francesco Casella, 5 years ago

Priority: highblocker
Summary: Equidistant time grind not working properlyEquidistant time grid not working properly

comment:2 by massimo ceraolo, 5 years ago

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