diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2019-07-11 18:06:08 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2019-07-11 18:06:08 -0300 |
commit | ec20e2ac95f8a5013f2293a7a2a96016fb805581 (patch) | |
tree | 743a446a8bf6be416abda0a56e41e5b10e13be3b /Project/IndMotor.cpp | |
parent | f54297e08079fe1954920ca2742b0bed19f86181 (diff) | |
download | PSP.git-ec20e2ac95f8a5013f2293a7a2a96016fb805581.tar.gz PSP.git-ec20e2ac95f8a5013f2293a7a2a96016fb805581.tar.xz PSP.git-ec20e2ac95f8a5013f2293a7a2a96016fb805581.zip |
Induction motor DAE implemented
Need some testing
Check inertia
Diffstat (limited to 'Project/IndMotor.cpp')
-rw-r--r-- | Project/IndMotor.cpp | 12 |
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; +} |