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

TypeNameDefaultDescription
SI.Frequencyf_nomdata.f_grid/(p/2)Nominal mechanical rotational frequency
Mechanical
BooleanuseHfalseIf checked, calculate the inertia from a given H value
SI.PowerPmax100e6Maximum rated power (for torque limiting and H calculation)
SI.TimeH2.75Inertia constant H, typical 2s (high-head hydro) to 6s (gas or low-head hydro) production units
SI.MomentOfInertiaJ2e5Moment of inertia of the unit (GD2/4)
Integerp12Number of poles for mechanical speed calculation (Not pole pairs!)
SI.PowerPloss0Friction losses of the unit at nominal speed
Initialization
SI.PerUnitf_01Initial speed of the unit
Booleanenable_nomSpeedfalseIf checked, unit runs at fixed speed f_0
Booleanfixed_iniSpeedfalseIf checked, unit initialises with fixed speed. When connecting several units mechanically only one can be fixed.
I/O › Inputs
Booleanenable_f_infalseIf checked, get a connector for speed input
I/O › Outputs
Booleanenable_wfalseIf checked, get a connector for angular velocity output
Booleanenable_ffalseIf checked, get a connector for speed output

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealOutputfSpeed output of the unit [pu]
Modelica.Blocks.Interfaces.RealOutputwMechanical angular velocity output of the unit [rad/s]
Modelica.Mechanics.Rotational.Interfaces.Flange_bflangeFlange of right shaft
Modelica.Blocks.Interfaces.RealInputf_inSpeed input of the unit [pu]

Components

TypeNameDefaultDescription
OpenHPL.DatadataUsing standard class with global parameters
Modelica.Mechanics.Rotational.Sensors.SpeedSensorspeedSensor
Modelica.Mechanics.Rotational.Components.Inertiainertia
Modelica.Electrical.Machines.Losses.Frictionfriction
Modelica.Mechanics.Rotational.Components.Fixedfixed
Modelica.Blocks.Math.Gainw_m2puConvert from rad/s to pu
Modelica.Mechanics.Rotational.Sensors.PowerSensorfrictionLoss
Modelica.Mechanics.Rotational.Sources.SpeedsetSpeed
Modelica.Mechanics.Rotational.Components.IdealGeartoSysSpeedConverts to system speed based on p = 2
Modelica.Blocks.Sources.RealExpressionnominalSpeed
Modelica.Blocks.Math.Gainpu2w_s
Modelica.Mechanics.Rotational.Sources.Torquetorque