summaryrefslogtreecommitdiffstats
path: root/Project/IndMotor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project/IndMotor.cpp')
-rw-r--r--Project/IndMotor.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/Project/IndMotor.cpp b/Project/IndMotor.cpp
index ff5c116..93dc38c 100644
--- a/Project/IndMotor.cpp
+++ b/Project/IndMotor.cpp
@@ -234,3 +234,15 @@ bool IndMotor::OpenElement(rapidxml::xml_node<>* elementNode, std::vector<Elemen
return true;
}
+
+bool IndMotor::GetPlotData(ElementPlotData& plotData, PlotStudy study)
+{
+ if(!m_electricalData.plotIndMachine) return false;
+ plotData.SetName(m_electricalData.name);
+ plotData.SetCurveType(ElementPlotData::CT_IND_MOTOR);
+
+ plotData.AddData(m_electricalData.slipVector, _("Slip"));
+ plotData.AddData(m_electricalData.electricalTorqueVector, _("Electrical torque"));
+ plotData.AddData(m_electricalData.mechanicalTorqueVector, _("Mechanical torque"));
+ return true;
+}