Which Modelica global library models support the flag "Direct application of events", used for increasing simulation performance?

Category:
Dynamic Simulation
Answer

The flag "Direct application of events" is available for each Modelica Hybrid Model (ElmMdl). The use of the "Direct application of events" functionality can be enabled by checking this flag. A special scheduling and handling of events triggered by this model is applied in this situation, with the intent of optimising simulation performance. This handling is not strictly following the Modelica standard, instead it aligns with the event handling method applied for DSL models. Considerable simulation performance improvements are expected in event rich scenarios, along with a minimal loss of accuracy.

Even if the flag "Direct application of events" is selected in one Modelica Model, not all event based functions will make use of it. Only the built-in Modelica Models can take advantage of this functionality. The following models are currently supporting this function:

- Controls\PI_Controller

- Controls\picontrol

- Integrators\BasicLimitedIntegrator

- Nonlinear\BasicLimiter

- Nonlinear\ComplexMagnitudeLimiter

- Operators\Logical\PickUpDropOut

- Switches\Selector

In order to maximise simulation performance in connection with the functionality "Direct application of events", models should be designed to incorporate, whenever possible, the above blocks, instead of using any other alternative implementations.

 

Additional note on FMU-based Modelica models

Modelica models that are connected or imported via FMU do not benefit from the “Direct application of events” (Fast Events) functionality, even if the flag is activated.

The optimised event scheduling is only available for the fore mentioned native, built-in Modelica library components within PowerFactory.

 

 

 

Back