summaryrefslogtreecommitdiffstats
path: root/Project/IndMotor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project/IndMotor.cpp')
-rw-r--r--Project/IndMotor.cpp5
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;
}