From 7928eca406f5000aabf202fd393908b097f27449 Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Mon, 9 Jan 2017 20:19:58 -0200 Subject: Fault calculation implemented --- Project/Fault.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Project/Fault.h (limited to 'Project/Fault.h') diff --git a/Project/Fault.h b/Project/Fault.h new file mode 100644 index 0000000..dfe0e75 --- /dev/null +++ b/Project/Fault.h @@ -0,0 +1,37 @@ +#ifndef FAULT_H +#define FAULT_H + +#include "ElectricCalculation.h" + +class Fault : public ElectricCalculation +{ +public: + Fault(std::vector 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 > > m_zBusPos; + std::vector > > m_zBusNeg; + std::vector > > m_zBusZero; + + std::vector > m_posFaultVoltagePos; + std::vector > m_posFaultVoltageNeg; + std::vector > m_posFaultVoltageZero; + + std::complex m_fCurrentA; + std::complex m_fCurrentB; + std::complex m_fCurrentC; + + std::vector > m_posFaultVoltageA; + std::vector > m_posFaultVoltageB; + std::vector > m_posFaultVoltageC; +}; + +#endif // FAULT_H -- cgit From 568d04c7f692e64bc29b2ca195c2de6af7fdd43a Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Tue, 10 Jan 2017 16:10:43 -0200 Subject: Elements data update Elements data update after fault calculation implemented. --- Project/Fault.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'Project/Fault.h') diff --git a/Project/Fault.h b/Project/Fault.h index dfe0e75..c3caef7 100644 --- a/Project/Fault.h +++ b/Project/Fault.h @@ -2,16 +2,49 @@ #define FAULT_H #include "ElectricCalculation.h" +/** + * @class Fault + * @author Thales Lima Oliveira + * @date 10/01/2017 + * @file Fault.h + * @brief Calculate the fault of the system and update the elements data. + */ class Fault : public ElectricCalculation { public: + /** + * @brief Contructor. + * @param elementList List of elements in workspace + */ Fault(std::vector elementList); + + /** + * @brief Default contructor. Use GetElementsFromList(std::vector elementList). + */ Fault(); + + /** + * @brief Destructor. + */ ~Fault(); + /** + * @brief Calculate the fault of the system. Return true if was possible the calculation. + * @param systemPowerBase System base of power. + */ virtual bool RunFaultCalculation(double systemPowerBase); + + /** + * @brief Update the data of the elements. + * @param systemPowerBase System base of power. + */ virtual void UpdateElementsFault(double systemPowerBase); + + /** + * @brief Get the error message generated in RunFaultCalculation(double systemPowerBase). + * @return Error message. + */ virtual wxString GetErrorMessage() { return m_errorMsg; } protected: -- cgit