blob: 02a45e0905e2b215e5f9d15d58a28795b0bfbc55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#ifndef ELECTRICCALCULATION_H
#define ELECTRICCALCULATION_H
#include <vector>
#include <complex>
#include "Element.h"
#include "Bus.h"
#include "Capacitor.h"
#include "IndMotor.h"
#include "Inductor.h"
#include "Line.h"
#include "Load.h"
#include "SyncGenerator.h"
#include "SyncMotor.h"
#include "Transformer.h"
enum BusType { BUS_SLACK = 0, BUS_PV, BUS_PQ };
class ElectricCalculation
{
public:
ElectricCalculation();
~ElectricCalculation();
virtual void GetElementsFromList(std::vector<Element*> elementList);
virtual bool GetYBus(std::vector<std::vector<std::complex<double> > >& yBus, double systemPowerBase);
virtual void ValidateElementsPowerFlow(std::vector<std::complex<double> > voltage,
std::vector<std::complex<double> > power,
std::vector<BusType> busType,
double systemPowerBase);
protected:
std::vector<Bus*> m_busList;
std::vector<Capacitor*> m_capacitorList;
std::vector<IndMotor*> m_indMotorList;
std::vector<Inductor*> m_inductorList;
std::vector<Line*> m_lineList;
std::vector<Load*> m_loadList;
std::vector<SyncGenerator*> m_syncGeneratorList;
std::vector<SyncMotor*> m_syncMotorList;
std::vector<Transformer*> m_transformerList;
};
#endif // ELECTRICCALCULATION_H
|