Harmony
HARMONic stabilitY assessment of PE-penetrated power systems
Loading...
Searching...
No Matches
PV_plant.h
Go to the documentation of this file.
1#ifndef PV_PLANT_H_
2#define PV_PLANT_H_
3
9#include "RES_base.h"
10
19class PVplant : public RES_base {
20 friend class PowerFlow;
21public:
28 PVplant(const string& symbol, const std::string& location, const vector<double>& parameters);
30
31private:
32 // Parameters specific to the PV plant model
33 double P_pv; // Rated power of the PV plant in watts
34 double I_pv; // Rated current of the PV plant in amperes
35 double N_s; // Number of series-connected modules
36 double N_p; // Number of parallel-connected strings
37 double n; // ideally factor of the diode
38 double I_sc; // Short-circuit current of a single module at standard test conditions (STC)
39 double I0; // Reverse saturation current of the diode
40 double C_pv; // Capacitance of the PV array in farads
41
42 // Parameters for the boost converter
43 double V_dc; // DC link voltage in volts
44 double L_boost; // Inductance of the boost converter in henries
45 double C_dc; // Capacitance of the DC link in farads
46 // Control of the boost converter is done by controlling the duty cycle D
47 double kp_boost; // Proportional gain for the boost converter voltage control loop
48 double ki_boost; // Integral gain for the boost converter voltage control loop
49
50 // Parameters for the voltage source inverter (VSI)
51 double L_1; // Inductance of the filter in henries
52 double R_1; // Resistance of the filter in ohms
53 double C_f; // Capacitance of the filter in farads
54 double R_c; // Resistance of the filter in ohms
55 double L_2; // Grid-side inductance in henries
56
57 // Grid parameters
58 double V_g; // Grid voltage in volts, assumed to have the optimal operation of PLL
59 double f_g; // Grid frequency in hertz
60
61 // Control parameters
62 // Parameters for the DC voltage control loop
63 double K_p_dc; // Proportional gain of the DC voltage controller
64 double K_i_dc; // Integral gain of the DC voltage controller
65 // Parameters for the current control loop
66 double K_p_i; // Proportional gain of the current controller
67 double K_i_i; // Integral gain of the current controller
68 // Parameters for the PLL
69 double K_p_pll; // Proportional gain of the PLL
70 double K_i_pll; // Integral gain of the PLL
71
72};
73
74#endif // PV_PLANT_H_
Base class for renewable energy source (RES) plant models.
Two-stage PV inverter plant with boost DC-DC stage and LCL-filtered VSC.
Definition PV_plant.h:19
~PVplant()
Definition PV_plant.h:29
Combined AC/DC optimal power flow solver.
Definition Powerflow.h:49
Common base for wind and PV plant elements.
Definition RES_base.h:16