modelTestElectrical2
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
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Power | Pnom | 10e6 | Nominal generator power |
| SI.Frequency | f0 | system.fnom | Nominal network frequency |
| Integer | Np | 2 | Number of polar expansions |
| SI.AngularVelocity | omegan_m | 2*pi*f0/Np | Nominal mechanical angular velocity |
| Real | pi | Modelica.Constants.pi |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Electrical.Generator | generator | ||
| Electrical.Load | load | ||
| Modelica.Mechanics.Rotational.Sources.Torque | primeMover | ||
| Modelica.Blocks.Sources.Step | GenTorque | ||
| Electrical.Grid | grid | ||
| Modelica.Blocks.Sources.Step | LocalLoad | ||
| System | system |
Revisions
- 21 Feb 2019
by Francesco Casella:
Rewrote from scratch.