Can you provide an example illustrating how to define a switch event from a Modelica dynamic model in PowerFactory?

Category:
Dynamic Simulation
Answer

The attached example includes three options for defining a switch event in a Modelica model.

Option 1: executes two events on Load 1; the event is predefined inside the Modelica model and is called and executed twice. The first to open the switch and the second to close it. The first event is declared using named arguments, and the second event uses positional arguments.

Option 2: the switch event is predefined in the Modelica model, but a target object is not specified and is therefore declared by the function. A frame is needed in this case to link the target element.

Option 3: the switch event is not predefined and therefore created by the function.

Back