Harmony
HARMONic stabilitY assessment of PE-penetrated power systems
Loading...
Searching...
No Matches
WT_type_3.h
Go to the documentation of this file.
1#ifndef _WT_TYPE_3_H_
2#define _WT_TYPE_3_H_
3
9#include "RES_base.h"
10
16class WTtype3 : public RES_base {
17 friend class PowerFlow;
18public:
25 WTtype3(const string& symbol, const std::string& location, const vector<double>& parameters);
26
28
29private:
30 // Rotor and Stator Electrical Parameters - 8 values
31 double nm_rpm = 1080; //Mechanical speed in rpm
32 double p = 3; // Number of rotor pole pairs
33 double Lr = 0.0644e-3; // Rotor inductance(H)
34 double Rr = 0.0092; // Rotor resistance (Ohms)
35 double Nsr = 1.0 / 0.33; // Turns ratio(Stator:Rotor)
36 double Rs = 0.0092; // Stator resistance(Ohms)
37 double Ls = 0.1356e-3; // Stator inductance(H)
38
39 // PLL Parameters - 3 values
40 double Kp_pll = 48.873; // PLL proportional gain
41 double Ki_pll = 3070.1; // PLL integral gain
42 double V1_mag = 564.1; // PCC voltage magnitude(V)
43 double V1_theta_deg = -59; // PCC voltage angle (deg)
44
45 // Rotor Side Converter (RSC) Current Controller - 4 values
46 double Krp = 0.052; // Proportional gain
47 double Kri = 0.027; // Integral gain
48 double Krd = 0.00245; // Derivative gain
49 double Ir_mag = 5.8; // Rotor current magnitude (A)
50 double Ir_theta_deg = -22; // Current angle (deg)
51
52 // Grid Side Converter (GSC) Current Controller - 4 values
53 double Ksp = 1.452; // Proportional gain
54 double Ksi = 3384; // Integral gain
55 double Ksd = 0.025; // Derivative gain
56 double Ic_mag = 152.3; // GSC current magnitude (A)
57 double Ic_theta_deg = 114; // GSC current angle (deg)
58
59 // Filter Parameters - 2 values
60 double Rf = 0.0; // Filter resistance (Ohms)
61 double Lf = 0.001; // Filter inductance (H)
62
63 // Grid frequency
64 double f1 = 50.0; // Grid frequency (Hz)
65};
66
67
68#endif
Base class for renewable energy source (RES) plant models.
Combined AC/DC optimal power flow solver.
Definition Powerflow.h:49
Common base for wind and PV plant elements.
Definition RES_base.h:16
Type 3 wind turbine with DFIG, RSC/GSC converters, and filter.
Definition WT_type_3.h:16
~WTtype3()
Definition WT_type_3.h:27