.OpenIPSL.Examples.Tutorial.Example_4.Instructions.DefiningGenerationGroups

More Detailed GU Models

Information

Adding Generation Unit Models in More Detail

Let us now proceed to create alternative representations of a generation unit so that we can use them in our experiments.

  1. Expand your GenerationUnits package and duplicate the GeneratorOnly model to create a new model called GeneratorTurbGov that also has a turbine/governor block.

    GeneratorTurbGovModelCreation

  2. Go to the diagram layer of the model and drag-and-drop a IEEEG1 turbine/governor block from OpenIPSL.Electrical.Controls.PSSE.TG.
  3. It is highly recommended that you increase the dimensions of the canvas so that the components could be better distributed. One way of achieving this is by right-clicking the diagram layer and choosing the Attributes option. In the Graphics tab modify the coordinates as indicated below:

    AdjustDiagramCoordinates

  4. Remove the connection between the PMECH0 output and the PMECH input of the machine. Be aware that we now have a turbine block, therefore connect its HP-stage mechanical power output to the corresponding input of the machine. Your model should look like this:

    ConnectingTurbineGovernorBlock

  5. Provide the following values for the IEEEG1 parameters:

    SettingIEEEG1Parameters

  6. Check the model and make sure that everything is fine.
  7. Open the diagram layer of your SMIB experiment model and double-click the genunit component.
  8. Go to the Attributes tab and click the replaceable option. Then click the Constraining Clause checkbox and select OpenIPSL.Interfaces.Generator from the drop-down list.

    ReplaceableGenerator


    📌 The GenerationUnit icon should now turn into

    ReplaceableGenerationUnitIcon


  9. In Simulation Setup go to the Output tab and make sure that you are keeping at least 10 results:

    ResultsToKeep

  10. Go back to the diagram layer for the SMIB model and right-click the genunit block to change the class to the " Machine with Turbine and Governor" option.

    ChangeClassToMachineWithTurbGovernor

  11. Simulate the model again for 2 seconds.
  12. Plot the active power output (P) from genunit and compare it to the result you got from the previous simulation (where the generation unit model did not include the turbine/governor block).
  13. Create a new generation unit model including the electrical machine, the turbine/governor and an excitation system. Name the new model GeneratorTurbGovAVR. For this to be done make sure you duplicate the GeneratorTurbGov model.

    CreateGeneratorTurbGovAVR

  14. Drag-and-drop an ESST1A excitation system block from OpenIPSL.Electrical.Controls.PSSE.ES to the diagram layer of the new model. Add 4 Constant blocks from Modelica.Blocks.Sources too.
  15. Increase the dimensions of the diagram layer as required to comfortably resize and connect your components. Check out what we did in step 3. A suggestion is shown below:

    AdjustDiagramCoordinatesB

  16. In the GENROE machine component, remove the connection between EFD and EFD0. The EFD input of the machine should now be connected to the respective output from the excitation system.
  17. Add the following connections between the machine and the excitation system:

     

    GENROE Machine EEST1A

    ETERM

    VT

    ETERM

    ECOMP

    EFD0

    EFD0

    XADIFD

    XADIFD

     

  18. Use the Constant blocks to set the excitation system inputs to the values indicated in the following table:

     

    Input Value

    VOTHSG

    0

    VOTHSG2

    0

    VUEL

    0

    VOEL

    Modelica.Constants.inf

    VUEL2

    -Modelica.Constants.inf

    VUEL3

    -Modelica.Constants.inf

     

    Your model should now look like this:

    ConnectingExcitationSystemBlock

  19. Double-click the excitation system component and input the parameter values as indicated below:

    SettingESST1AParameters

  20. Check the generation unit model to verify that everything is fine. Then go to the SMIB experiment model and change the class of the genunit component so that it now uses the model with the excitation system.
  21. In the diagram layer of the SMIB model when right-clicking the genunit component, you should now be able to see the new generation unit model among the options for class change. Update the component class so that it uses the most recent generation unit model.

    ChangeClassToMachineWithTurbGovernorPSS

  22. Simulate the SMIB model for 10 seconds.
  23. Plot the active power (P) and the reactive power (Q) outputs from genunit in different diagrams. Then, plot the voltage (V) from all the buses in another window.
  24. Go to the GenerationUnits package and create a new model by duplicating GeneratorTurbGovAVR. Name the new model GeneratorTurbGovAVRPSS. This generation unit model is going to include a power system stabilizer (PSS).

    CreateGeneratorTurbGovAVRPSS

  25. Navigate the OpenIPSL.Electrical.Controls.PSSE.PSS package and locate the PSS2A model (Dual-Input Stabilizer Model [IEEE1992]). Drag-and-drop an instance to the diagram layer of the new generation unit model.
  26. Remove the constant source block that is connected to the VOTHSG input of the excitation system component. Now this input should be connected to the output of the PSS2A block.
  27. Connect the V_S1 and V_S2 inputs of the PSS2A block to the SPEED_HP and PELEC outputs of the machine component, respectively.

    Make sure that your model looks like the figure below:

    ConnectingPSSBlock

  28. Double-click the PSS2A component in order to update the parameters as indicated below:

    SettingPSS2AParameters


Generated at 2026-03-12T19:14:05Z by OpenModelicaOpenModelica 1.26.3 using GenerateDoc.mos