modelSynchGen
Extends from OpenHPL.Icons.Generator (Generator icon).
Information
Synchronous Generator Model
Detailed synchronous generator model connected to the grid, based on d-q decomposition.
Voltage-Current Relation
$$ \left[\begin{matrix}R_a+R_e & x_q'+x_e\\ -x_d'-x_e & R_a+R_e\end{matrix}\right]\left[\begin{matrix}I_d \\ I_q\end{matrix}\right]= \left[\begin{matrix}E_d'+V_s\sin\delta_e \\ E_q'-V_s\cos\delta_e\end{matrix}\right] $$
where:
- \(R_a\) and \(R_e\) are phase winding and equivalent network resistances
- \(x_d\), \(x_q\), \(x_d'\), \(x_q'\) are d-/q-axis normal and transient reactances
- \(x_e\) is equivalent network reactance
- \(I_d\), \(I_q\) are d-/q-axis currents
- \(E_d'\), \(E_q'\) are d-/q-axis transient voltages
- \(V_s\) is network RMS voltage
- \(\delta_e\) is phase shift angle
Phase Shift Angle Dynamics
$$ \frac{\mathrm{d}\delta_e}{\mathrm{d}t} = (\omega - \omega_s)\frac{n_p}{2} $$
where \(n_p\) is number of poles, \(\omega\) and \(\omega_s\) are generator and grid angular velocities.
Swing Equation
$$ \frac{\mathrm{d}\omega}{\mathrm{d}t}=\frac{\dot{W}_s-P_e}{J\omega} $$
Transient Operation
$$ \begin{array}{c} T_{qo}'\frac{\mathrm{d}E_d'}{\mathrm{d}t} =-E_d' + (x_q' - x_q)I_q \\ T_{do}'\frac{\mathrm{d}E_q'}{\mathrm{d}t} = -E_q' + (x_d - x_d')I_d + E_f \end{array} $$
where \(T_{do}'\) and \(T_{qo}'\) are d-/q-axis transient open-circuit time constants.
Excitation System
Field voltage dynamics:
$$ \frac{\mathrm{d}E_f}{\mathrm{d}t} = \frac{-E_f + K_E\left(V_{tr}-V_t-V_{stab}\right)}{T_E} $$
where \(K_E\) is excitation system gain, \(T_E\) is excitation time constant, \(V_{tr}\) is voltage reference set point, and \(V_t = \sqrt{\left(E_d'-R_aI_d-x_q'I_q\right)^2+\left(E_q'-R_aI_q+x_d'I_d\right)^2}\) is terminal voltage.
Stabilization
$$ \frac{\mathrm{d}V_{stab}}{\mathrm{d}t} = \frac{-V_{stab} + K_F\frac{\mathrm{d}E_f}{\mathrm{d}t}}{T_{FE}} $$
where \(K_F\) is stabilizer gain and \(T_{FE}\) is stabilizer time constant.
Output Power
Active and reactive power:
$$ \begin{array}{c} P_e = 3\left(E_d'I_d+E_q'I_q\right)\\ Q_e = \sqrt{9V_t^2I_t^2-P_e^2} \end{array} $$
where \(I_t=\sqrt{I_d^2+I_q^2}\) is terminate current.
Connectors
- RealInput: turbine shaft power
- RealOutput: angular velocity and frequency
Parameters
User specifies: nominal active/reactive powers, phase winding resistance, number of poles, network parameters (equivalent resistance/reactance, RMS voltage, grid angular velocity), d-/q-axis reactances and time constants, field voltage limits, excitation/stabilizer gains and time constants, moment of inertia, friction factor, and initialization options.
Note: For more advanced modeling, consider using generator models from OpenIPSL.
More details in [Sharefi2011].
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Nominal parameters | |||
| SI.Power | P_op | 80e6 | Active power drawn from generator at Steady State operating condition |
| SI.Power | Q_op | 50e6 | Reactive power drawn from generator at SS operating condition |
| SI.Resistance | Ra | 0.01 | Phase winding resistance |
| Integer | np | 12 | Number of poles |
| Network | |||
| SI.Resistance | Re | 0.1 | Equivalent network resistance |
| SI.Resistance | xe | 1.4 | Equivalent network reactance |
| SI.Voltage | Vs | 15000 | Network rms voltage |
| SI.AngularVelocity | Wm_op | data.f_0*pi/3 | Grid angular velocity |
| Boolean | UseFrequencyOutput | true | If checked - get a connector for frequency output |
| d-q axes | |||
| SI.Resistance | xd | 12 | d_axis reactance |
| SI.Resistance | xq | 12 | q_axis reactance |
| Transient d-q axes | |||
| SI.Resistance | xxd | 1.7 | d_axis transient reactance |
| SI.Resistance | xxq | 1.7 | q_axis transient reactance |
| SI.Time | TTdo | 6 | d_axis transient open-circuit time constant |
| SI.Time | TTqo | 0.1 | q_axis transient open-circuit time constant |
| SI.Voltage | Efmin | 50000 | Min field voltage |
| SI.Voltage | Efmax | 50000 | Max field voltage |
| Excitation system | |||
| SI.Time | TE | 0.05 | Excitation system time constant |
| Real | KE | 400 | Excitation system gain |
| Stablizer | |||
| SI.Time | TFE | 1 | Stablizer time constant |
| Real | KF | 0.025 | Stablizer gain |
| Mechanical part | |||
| SI.MomentOfInertia | J | 2e5 | Moment of inertia of the generator |
| Real | k_b | 1000 | Friction factor in the generator bearing box, W*s3/rad3 |
| SI.AngularVelocity | w_min | Wm_op*1e-3 | Minimum angular velocity to prevent division by zero |
| Initialization | |||
| Boolean | SelfInitialization | false | If checked - specify initial values |
| SI.Angle | DELTA_0 | 37.6452 | |
| SI.Voltage | EEd_0 | -7207.13 | |
| SI.Voltage | EEq_0 | 18005.2 | |
| SI.Voltage | Ef_0 | 38110.4 | |
| SI.Voltage | Vstabilizer_0 | 0 | |
| SI.AngularVelocity | w_0 | 500*pi/30 | |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealOutput | f | np/120*30*w/pi | Output generator frequency |
| Modelica.Blocks.Interfaces.RealOutput | w_out | w | Output of the generator's angular velocity |
| Modelica.Blocks.Interfaces.RealInput | P_in | Input of mechanical power |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Data | data | Using standard class with constants | |
| SI.Angle | PHI_op | atan(Q_op/P_op) | Power angle at Steady State |
| SI.Angle | DELTA_op | atan((I_op*(xq + xe)*cos(PHI_op) - I_op*(Ra + Re)*sin(PHI_op))/(Vs + I_op*(Ra + Re)*cos(PHI_op) + I_op*(xq + xe)*sin(PHI_op))) | |
| SI.Angle | DELTA | ||
| SI.Current | I_op | sqrt(P_op^2 + Q_op^2)/(3*Vs) | RMS current (per phase) of the generator |
| SI.Current | Id_op | -I_op*sin(DELTA_op + PHI_op) | |
| SI.Current | Iq_op | I_op*cos(DELTA_op + PHI_op) | |
| SI.Current[2] | Idq | ||
| SI.Current | Id | ||
| SI.Current | Iq | ||
| SI.Current | It | ||
| SI.Voltage | Ef_op | Vs*cos(DELTA_op) + (Ra + Re)*Iq_op - (xd + xe)*Id_op | |
| SI.Voltage | Vt_op | sqrt((Vs + I_op*Re*cos(PHI_op) + I_op*xe*sin(PHI_op))^2 + (I_op*xe*cos(PHI_op) - I_op*Re*sin(PHI_op))^2) | |
| SI.Voltage | Vtr | Ef_op/KE + Vt_op | |
| SI.Voltage | Vstabilizer_op | 0 | |
| SI.Voltage | EEd_op | (xxd - xq)*Iq_op | |
| SI.Voltage | EEq_op | Ef_op + (xd - xxd)*Id_op | |
| SI.Voltage | Vt | ||
| SI.Voltage | EEd | ||
| SI.Voltage | EEq | ||
| SI.Voltage | Ef | ||
| SI.Voltage | Vstabilizer | ||
| SI.AngularVelocity | w_op | 500*pi/30 | |
| SI.AngularVelocity | w | ||
| SI.Resistance[2,2] | Temp | ||
| SI.Power | Pe | ||
| SI.Power | Qe | ||
| SI.EnergyFlowRate | Wdot_ts | P_in | |
| SI.EnergyFlowRate | W_fa |