Skip to content

CVODE solver reset only when necessary #1516

@rruusu

Description

@rruusu

Current state

Some simulation tools, such as PLECS, include discrete-time dynamic processes in a Model Exchange FMU. This causes events to be generated at very short, regular intervals.

Consequently, this leads to constant resets of the CVODE solver, which necessitates a new Jacobian evaluation with every event, even when no substantive change occurs. This significantly degrades simulation performance.

Suggested feature

The strongly coupled system solver could check whether any derivatives of state variables have actually changed significantly during an event, and only reset CVODE when necessary.

If only the state variables themselves change during an event but their derivatives are unaffected, the solver would not require a reset, but could simply continue integration from the new set of states.

Advantages

When a ME FMU frequently produces unnecessary events where no change occurs, skipping the solver reset can save a significant amount of simulation time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions