modelTestElectrical2

Diagram of TestElectrical2

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

The model is designed to test the generator, load, and grid components of the Electrical library.

Simulation sequence:

  • t=0 s: The system starts at equilibrium. All power coming from the generator is absorbed by the load, no exchange with the grid.
  • t=1 s: The generator torque (hence power) is reduced by 10%; the corresponding amount of power is now drawn from the grid.
  • t=3 s: The load power is increased by 10%; the corresponding amount of power is drawn from the grid.

Simulation Interval = [0...5] sec

Integration Algorithm = DASSL

Algorithm Tolerance = 1e-6

Parameters

TypeNameDefaultDescription
SI.PowerPnom10e6Nominal generator power
SI.Frequencyf0system.fnomNominal network frequency
IntegerNp2Number of polar expansions
SI.AngularVelocityomegan_m2*pi*f0/NpNominal mechanical angular velocity
RealpiModelica.Constants.pi

Components

TypeNameDefaultDescription
Electrical.Generatorgenerator
Electrical.Loadload
Modelica.Mechanics.Rotational.Sources.TorqueprimeMover
Modelica.Blocks.Sources.StepGenTorque
Electrical.Gridgrid
Modelica.Blocks.Sources.StepLocalLoad
Systemsystem

Revisions