diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2019-07-12 02:03:28 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2019-07-12 02:03:28 -0300 |
commit | fed838330b39f69a682b64b1b885fec17ff901d7 (patch) | |
tree | 110c99bbe0fe5ad05f50026a260fc9b8e4af4fdd /Project/IndMotor.cpp | |
parent | ec20e2ac95f8a5013f2293a7a2a96016fb805581 (diff) | |
download | PSP.git-fed838330b39f69a682b64b1b885fec17ff901d7.tar.gz PSP.git-fed838330b39f69a682b64b1b885fec17ff901d7.tar.xz PSP.git-fed838330b39f69a682b64b1b885fec17ff901d7.zip |
Motor start implemented and bugfixes
Diffstat (limited to 'Project/IndMotor.cpp')
-rw-r--r-- | Project/IndMotor.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Project/IndMotor.cpp b/Project/IndMotor.cpp index 93dc38c..8d84608 100644 --- a/Project/IndMotor.cpp +++ b/Project/IndMotor.cpp @@ -229,6 +229,9 @@ bool IndMotor::OpenElement(rapidxml::xml_node<>* elementNode, std::vector<Elemen m_electricalData.aw = XMLParser::GetNodeValueDouble(loadChar, "Constant"); m_electricalData.bw = XMLParser::GetNodeValueDouble(loadChar, "Linear"); m_electricalData.cw = XMLParser::GetNodeValueDouble(loadChar, "Quadratic"); + + if(!OpenSwitchingData(electricalProp)) return false; + if(m_swData.swTime.size() != 0) SetDynamicEvent(true); m_inserted = true; @@ -244,5 +247,7 @@ bool IndMotor::GetPlotData(ElementPlotData& plotData, PlotStudy study) plotData.AddData(m_electricalData.slipVector, _("Slip")); plotData.AddData(m_electricalData.electricalTorqueVector, _("Electrical torque")); plotData.AddData(m_electricalData.mechanicalTorqueVector, _("Mechanical torque")); + plotData.AddData(m_electricalData.velocityVector, _("Velocity")); + plotData.AddData(m_electricalData.currentVector, _("Current")); return true; } |