summaryrefslogtreecommitdiffstats
path: root/Project/Load.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-05-22 20:17:41 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-05-22 20:17:41 -0300
commitf995850b38916b38718b84f4b82948479a81855a (patch)
treedb1f4f79f2d47383451869ce214dc416b0174dac /Project/Load.cpp
parent30181ca0ae73f5f7f1856ac289db8fcf849c9a84 (diff)
downloadPSP.git-f995850b38916b38718b84f4b82948479a81855a.tar.gz
PSP.git-f995850b38916b38718b84f4b82948479a81855a.tar.xz
PSP.git-f995850b38916b38718b84f4b82948479a81855a.zip
Events implemented
Effects on adimittance matrix and elements: ->Fault on bus; ->Generation/Load switching; ->Branch switching.
Diffstat (limited to 'Project/Load.cpp')
-rw-r--r--Project/Load.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Project/Load.cpp b/Project/Load.cpp
index 3cce7a1..d9574d9 100644
--- a/Project/Load.cpp
+++ b/Project/Load.cpp
@@ -194,7 +194,7 @@ wxString Load::GetTipText() const
reactivePower = 0.0;
}
if(m_online && m_electricalData.loadType == CONST_IMPEDANCE) {
- std::complex<double> v = static_cast<Bus*>(m_parentList[0])->GetEletricalData().voltage;
+ std::complex<double> v = static_cast<Bus*>(m_parentList[0])->GetElectricalData().voltage;
reactivePower *= std::pow(std::abs(v), 2);
activePower *= std::pow(std::abs(v), 2);
}