summaryrefslogtreecommitdiffstats
path: root/Project/Fault.h
blob: dfe0e75b4351df5ba5b3a2e7af5f1df1c2af02ae (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
#ifndef FAULT_H
#define FAULT_H

#include "ElectricCalculation.h"

class Fault : public ElectricCalculation
{
public:
    Fault(std::vector<Element*> elementList);
    Fault();
    ~Fault();

    virtual bool RunFaultCalculation(double systemPowerBase);
    virtual void UpdateElementsFault(double systemPowerBase);
    virtual wxString GetErrorMessage() { return m_errorMsg; }

protected:
    wxString m_errorMsg = "";

    std::vector<std::vector<std::complex<double> > > m_zBusPos;
    std::vector<std::vector<std::complex<double> > > m_zBusNeg;
    std::vector<std::vector<std::complex<double> > > m_zBusZero;

    std::vector<std::complex<double> > m_posFaultVoltagePos;
    std::vector<std::complex<double> > m_posFaultVoltageNeg;
    std::vector<std::complex<double> > m_posFaultVoltageZero;

    std::complex<double> m_fCurrentA;
    std::complex<double> m_fCurrentB;
    std::complex<double> m_fCurrentC;

    std::vector<std::complex<double> > m_posFaultVoltageA;
    std::vector<std::complex<double> > m_posFaultVoltageB;
    std::vector<std::complex<double> > m_posFaultVoltageC;
};

#endif // FAULT_H