Harmony
HARMONic stabilitY assessment of PE-penetrated power systems
Loading...
Searching...
No Matches
Generator.h
Go to the documentation of this file.
1#ifndef GENERATOR_H
2#define GENERATOR_H
3
9#include "Source_base.h"
10
16class Generator : public Source_base {
17public:
26 Generator(const std::string& symbol, const std::string& location, int pins, double V, const std::vector<double>& values);
27
28 // Destructor
30
31
32private:
33 double R_f = 1.0; // Default value
34 double L_f = 0.01; // Default value
35 double X_d = 1.0; // Default value
36 double T_f = 0.1; // Default value
37 double X_m = 1.0; // Default value
38
39};
40
41#endif
42
Base class for AC and DC voltage sources and generators.
Synchronous machine generator with default electrical parameters.
Definition Generator.h:16
~Generator()
Definition Generator.h:29
Common properties and power-flow methods for source elements.
Definition Source_base.h:16
vector< double > V
Definition Source_base.h:35