modelTorqueEquation
Information
Abstract (partial) base class for including the torque equation:
$$ J \frac{\mathrm{d}\omega}{\mathrm{d}t} = T $$
In the future this base class can replace Power2Torque in the turbine models to avoid the issue at zero speed. This class is also better suited for fundamental or mechanistic turbine models.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Frequency | f_nom | data.f_grid/(p/2) | Nominal mechanical rotational frequency |
| Mechanical | |||
| Boolean | useH | false | If checked, calculate the inertia from a given H value |
| SI.Power | Pmax | 100e6 | Maximum rated power (for torque limiting and H calculation) |
| SI.Time | H | 2.75 | Inertia constant H, typical 2s (high-head hydro) to 6s (gas or low-head hydro) production units |
| SI.MomentOfInertia | J | 2e5 | Moment of inertia of the unit (GD2/4) |
| Integer | p | 12 | Number of poles for mechanical speed calculation (Not pole pairs!) |
| SI.Power | Ploss | 0 | Friction losses of the unit at nominal speed |
| Initialization | |||
| SI.PerUnit | f_0 | 1 | Initial speed of the unit |
| Boolean | enable_nomSpeed | false | If checked, unit runs at fixed speed f_0 |
| Boolean | fixed_iniSpeed | false | If checked, unit initialises with fixed speed. When connecting several units mechanically only one can be fixed. |
| I/O › Inputs | |||
| Boolean | enable_f_in | false | If checked, get a connector for speed input |
| I/O › Outputs | |||
| Boolean | enable_w | false | If checked, get a connector for angular velocity output |
| Boolean | enable_f | false | If checked, get a connector for speed output |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealOutput | f | Speed output of the unit [pu] | |
| Modelica.Blocks.Interfaces.RealOutput | w | Mechanical angular velocity output of the unit [rad/s] | |
| Modelica.Mechanics.Rotational.Interfaces.Flange_b | flange | Flange of right shaft | |
| Modelica.Blocks.Interfaces.RealInput | f_in | Speed input of the unit [pu] |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| OpenHPL.Data | data | Using standard class with global parameters | |
| Modelica.Mechanics.Rotational.Sensors.SpeedSensor | speedSensor | ||
| Modelica.Mechanics.Rotational.Components.Inertia | inertia | ||
| Modelica.Electrical.Machines.Losses.Friction | friction | ||
| Modelica.Mechanics.Rotational.Components.Fixed | fixed | ||
| Modelica.Blocks.Math.Gain | w_m2pu | Convert from rad/s to pu | |
| Modelica.Mechanics.Rotational.Sensors.PowerSensor | frictionLoss | ||
| Modelica.Mechanics.Rotational.Sources.Speed | setSpeed | ||
| Modelica.Mechanics.Rotational.Components.IdealGear | toSysSpeed | Converts to system speed based on p = 2 | |
| Modelica.Blocks.Sources.RealExpression | nominalSpeed | ||
| Modelica.Blocks.Math.Gain | pu2w_s | ||
| Modelica.Mechanics.Rotational.Sources.Torque | torque |