From c7ef9a883031c68506357f9ef1b1a0b79c79f4da Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Thu, 25 Jul 2019 01:11:17 -0300 Subject: Motor integration with PF Newton bug fixed Newton inertia implemented Gauss-Newton implemented --- Project/ElementFormBase.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Project/ElementFormBase.cpp') diff --git a/Project/ElementFormBase.cpp b/Project/ElementFormBase.cpp index 6a75ec7..25fc622 100644 --- a/Project/ElementFormBase.cpp +++ b/Project/ElementFormBase.cpp @@ -3187,6 +3187,13 @@ IndMotorFormBase::IndMotorFormBase(wxWindow* parent, boxSizerLvl5_2->Add(m_choiceReactivePower, 0, wxLEFT | wxRIGHT | wxBOTTOM, WXC_FROM_DIP(5)); + m_checkBoxComputeQ = + new wxCheckBox(m_panelGeneral, wxID_ANY, _("Calculate reactive power in load flow (using stability data)"), + wxDefaultPosition, wxDLG_UNIT(m_panelGeneral, wxSize(-1, -1)), 0); + m_checkBoxComputeQ->SetValue(false); + + boxSizerLvl2_1->Add(m_checkBoxComputeQ, 0, wxALL | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5)); + m_checkBoxUseMachinePower = new wxCheckBox(m_panelGeneral, wxID_ANY, _("Use machine rated power as base"), wxDefaultPosition, wxDLG_UNIT(m_panelGeneral, wxSize(-1, -1)), 0); m_checkBoxUseMachinePower->SetValue(false); @@ -3510,6 +3517,8 @@ IndMotorFormBase::IndMotorFormBase(wxWindow* parent, } #endif // Connect events + m_checkBoxComputeQ->Connect(wxEVT_COMMAND_CHECKBOX_CLICKED, + wxCommandEventHandler(IndMotorFormBase::OnCalcQInPFClick), NULL, this); m_checkBoxUseKf->Connect(wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler(IndMotorFormBase::OnCheckboxUseCageFactorClick), NULL, this); m_buttonSwitchingButton->Connect(wxEVT_COMMAND_BUTTON_CLICKED, @@ -3522,6 +3531,8 @@ IndMotorFormBase::IndMotorFormBase(wxWindow* parent, IndMotorFormBase::~IndMotorFormBase() { + m_checkBoxComputeQ->Disconnect(wxEVT_COMMAND_CHECKBOX_CLICKED, + wxCommandEventHandler(IndMotorFormBase::OnCalcQInPFClick), NULL, this); m_checkBoxUseKf->Disconnect(wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler(IndMotorFormBase::OnCheckboxUseCageFactorClick), NULL, this); m_buttonSwitchingButton->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, -- cgit