summaryrefslogtreecommitdiffstats
path: root/Project/PowerFlow.h
diff options
context:
space:
mode:
authorThales1330 <thaleslima.ufu@gmail.com>2016-12-06 13:26:46 -0200
committerThales1330 <thaleslima.ufu@gmail.com>2016-12-06 13:26:46 -0200
commite282ec268db0d17a1d53f813c5fff9473d25e797 (patch)
tree517e01b8685248f04548513091e7040a1b36ec0b /Project/PowerFlow.h
parentd4efffcdedbb41596eecd0882a1cef76f6afc435 (diff)
parente266f5811403beea13c9cc5399c55db4a34fdd3c (diff)
downloadPSP.git-e282ec268db0d17a1d53f813c5fff9473d25e797.tar.gz
PSP.git-e282ec268db0d17a1d53f813c5fff9473d25e797.tar.xz
PSP.git-e282ec268db0d17a1d53f813c5fff9473d25e797.zip
Merge remote-tracking branch 'refs/remotes/origin/wip/currentState'
Diffstat (limited to 'Project/PowerFlow.h')
-rw-r--r--Project/PowerFlow.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/Project/PowerFlow.h b/Project/PowerFlow.h
new file mode 100644
index 0000000..1e5c621
--- /dev/null
+++ b/Project/PowerFlow.h
@@ -0,0 +1,27 @@
+#ifndef POWERFLOW_H
+#define POWERFLOW_H
+
+#include "ElectricCalculation.h"
+
+#include <wx/string.h>
+#include <wx/intl.h> //_()
+#include <wx/log.h> //temp
+
+class PowerFlow : public ElectricCalculation
+{
+ public:
+ PowerFlow(std::vector<Element*> elementList);
+ ~PowerFlow();
+ virtual bool RunGaussSeidel(double systemPowerBase = 100e6,
+ int maxIteration = 5000,
+ double error = 1e-6,
+ double initAngle = 0.0,
+ double accFactor = 1.0);
+
+ virtual wxString GetErrorMessage() { return m_errorMsg; }
+ protected:
+ std::vector<std::vector<std::complex<double> > > m_yBus;
+ wxString m_errorMsg = "";
+};
+
+#endif // POWERFLOW_H