Windturb dg

Synopsis
module generators; class windturb_dg { 	set phases;	/**< device phases (see PHASE codes) */ complex power_A;//power complex power_B; complex power_C; enum {OFFLINE=1, ONLINE}; enumeration Gen_status; enum {INDUCTION=1, SYNCHRONOUS, USER_TYPE}; enumeration Gen_type; enum {CONSTANTE=1, CONSTANTP, CONSTANTPQ}; enumeration Gen_mode; enum {GENERIC_DEFAULT, GENERIC_SYNCH_SMALL, GENERIC_SYNCH_MID,GENERIC_SYNCH_LARGE, GENERIC_IND_SMALL, GENERIC_IND_MID, GENERIC_IND_LARGE, USER_DEFINED, VESTAS_V82, GE_25MW, BERGEY_10kW, GEN_TURB_POW_CURVE_2_4KW, GEN_TURB_POW_CURVE_10KW, GEN_TURB_POW_CURVE_100KW, GEN_TURB_POW_CURVE_1_5MW}; enumeration Turbine_Model; enum {GENERAL_LARGE, GENERAL_MID,GENERAL_SMALL,MANUF_TABLE, CALCULATED, USER_SPECIFY}; enumeration CP_Data; enum {POWER_CURVE=1, COEFF_OF_PERFORMANCE}; enumeration Turbine_implementation; double blade_diam; double turbine_height; double roughness_l; double ref_height; double Cp; int64 time_advance; double avg_ws;				//Default value for wind speed double cut_in_ws;			//Values are used to find GENERIC Cp 	double cut_out_ws;			// | double Cp_max;				// | double ws_maxcp;			// | double Cp_rated;			// | double ws_rated;			// | double q;					//number of gearboxes double Pconv;				//Power converted from mechanical to electrical before elec losses double GenElecEff;			//Generator electrical efficiency used for testing unsigned int *n; complex voltage_A;			//terminal voltage complex voltage_B; complex voltage_C; complex current_A;			//terminal current complex current_B; complex current_C; double TotalRealPow;		//Real power supplied by generator - used for testing double TotalReacPow;		//Reactive power supplied - used for testing double Rated_VA;			// nominal capacity in VA 	double Rated_V;				// nominal line-line voltage in V 	double WSadj;				//Wind speed after all adjustments have been made (height, terrain, etc) double Wind_Speed; //Synchronous Generator complex EfA;				// induced voltage on phase A in V 	complex EfB;				// | complex EfC;				// | double Rs;					// internal transient resistance in p.u. double Xs;					// internal transient impedance in p.u.   double Rg;					// grounding resistance in p.u. double Xg;					// grounding impedance in p.u. double Max_Ef;				// maximum induced voltage in p.u., e.g. 1.2 double Min_Ef;				// minimum induced voltage in p.u., e.g. 0.8 double Max_P;				// maximum real power capacity in kW   double Min_P;				// minimum real power capacity in kW 	double Max_Q;				// maximum reactive power capacity in kVar double Min_Q;				// minimum reactive power capacity in kVar double pf;					// desired power factor - TO DO: implement later use with controller //Induction Generator complex Vrotor_A;			// induced "rotor" voltage in pu 	complex Vrotor_B;			// | complex Vrotor_C;			// | complex Irotor_A;			// "rotor" current generated in pu 	complex Irotor_B;			// | complex Irotor_C;			// | double Rst;					// stator internal impedance in p.u. 	double Xst;					// | double Rr;					// rotor internal impedance in p.u. 	double Xr;					// | double Rc;					// core/magnetization impedance in p.u. 	double Xm;					// | double Max_Vrotor;			// maximum induced voltage in p.u., e.g. 1.2 double Min_Vrotor;			// minimum induced voltage in p.u., e.g. 0.8 char power_curve_csv[1024]; // name of csv file containing the power curve bool power_curve_pu;		// Flag when set indicates that user provided power curve has power values in pu. Defaults to false in .cpp };

Power Curve Based Implementation
Note that the power curve-based implementation is not included in the v4.2. It is planned to be released in v4.3.

The power curve-based wind turbine implementation uses the power curves that translate the wind speed directly into output power. Power curves are often available from manufacturers through marketing materials and/or owner documentation. Their use simplifies the wind turbine modeling since they skip the internal details of the wind turbine and instead focus on the input/output characteristics. The implementation uses a default power curve or one of the power curves provided by the user. Examples of commercial and generic power curves can be found at: https://github.com/NREL/turbine-models

The power curve-based implementation replaces the coefficient of performance-based implementation. In future versions starting from v4.3, it will be the default implementation.

Coefficient of Performance Based Implementation
The coefficient of performance-based implementation was the original wind turbine implementation. It includes an explicit model of the wind turbine and the electrical machine/generator parameters. The implementation contains highly granular models of the synchronous and induction generators with their respective impedances. It uses the wind turbine coefficient of performance data to generate the output for a given wind speed input. The coefficient of performance is defined as the ratio of the power captured by the rotor of the wind turbine divided by the total power available in the wind just before it interacts with the turbine.

This model remains in the experimental level of development.

Example
A minimal model could be created via:

object windturb_dg { parent my_meter1; phases ABCN; name windturb1; Rated_VA 10000; turbine_height 40; } or using one of the generic turbines: object windturb_dg { parent my_meter1; phases ABCN; name windturb1; Turbine_Model GEN_TURB_POW_CURVE_1_5MW; }