diff options
author | Thales1330 <thaleslima.ufu@gmail.com> | 2016-11-01 19:36:24 -0200 |
---|---|---|
committer | Thales1330 <thaleslima.ufu@gmail.com> | 2016-11-01 19:36:24 -0200 |
commit | b306118b2683cf6f264b5f1617c3e0e62a6c9042 (patch) | |
tree | 2059f3a6647d5021a0eaa7f1b08635cbcd83def0 /Project/Workspace.cpp | |
parent | 7d4df7195202eaea0e84f227e96f19dec4144081 (diff) | |
download | PSP.git-b306118b2683cf6f264b5f1617c3e0e62a6c9042.tar.gz PSP.git-b306118b2683cf6f264b5f1617c3e0e62a6c9042.tar.xz PSP.git-b306118b2683cf6f264b5f1617c3e0e62a6c9042.zip |
Power flow (gs) under implementation
Diffstat (limited to 'Project/Workspace.cpp')
-rw-r--r-- | Project/Workspace.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Project/Workspace.cpp b/Project/Workspace.cpp index acb8d04..df34e28 100644 --- a/Project/Workspace.cpp +++ b/Project/Workspace.cpp @@ -11,6 +11,8 @@ #include "Inductor.h" #include "Capacitor.h" +#include "PowerFlow.h" + // Camera Camera::Camera() { @@ -908,3 +910,11 @@ void Workspace::ValidateElementsVoltages() child->SetNominalVoltage(nominalVoltage, nominalVoltageUnit); } } + +bool Workspace::RunPowerFlow() +{ + PowerFlow pf(m_elementList); + bool result = pf.RunGaussSeidel(); + + return result; +} |