Power System Platform  2026w34a-beta
Loading...
Searching...
No Matches
TransformerForm.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2017 Thales Lima Oliveira <thales@ufu.br>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18#ifndef TRANSFORMERFORM_H
19#define TRANSFORMERFORM_H
20
21#include "ElementFormBase.h"
22
23class SwitchingForm;
24class Transformer;
25
34class TransformerForm : public TransformerFormBase
35{
36 public:
37 TransformerForm(wxWindow* parent, Transformer* transformer);
38 virtual ~TransformerForm();
39 bool ValidateData();
40
41 protected:
42 virtual void OnCancelButtonClick(wxCommandEvent& event);
43 virtual void OnOKButtonClick(wxCommandEvent& event);
44 virtual void OnStabilityButtonClick(wxCommandEvent& event);
45 void OnEnableTapChangerCheck(wxCommandEvent& event);
46 void OnDiscreteTapCheck(wxCommandEvent& event);
47 void UpdateTapChangerFields();
48
49 wxWindow* m_parent = nullptr;
50 Transformer* m_transformer = nullptr;
51
52 // OLTC Controls
53 //wxPanel* m_panelTapChanger = nullptr;
54 //wxCheckBox* m_checkEnableTapChanger = nullptr;
55 //wxStaticText* m_staticTextControlledBus = nullptr;
56 //wxChoice* m_choiceControlledBus = nullptr;
57 //wxStaticText* m_staticTextTargetVoltage = nullptr;
58 //wxTextCtrl* m_textCtrlTargetVoltage = nullptr;
59 //wxStaticText* m_staticTextDeadband = nullptr;
60 //wxTextCtrl* m_textCtrlDeadband = nullptr;
61 //wxStaticText* m_staticTextMinTap = nullptr;
62 //wxTextCtrl* m_textCtrlMinTap = nullptr;
63 //wxStaticText* m_staticTextMaxTap = nullptr;
64 //wxTextCtrl* m_textCtrlMaxTap = nullptr;
65 //wxCheckBox* m_checkDiscreteTap = nullptr;
66 //wxStaticText* m_staticTextTapStep = nullptr;
67 //wxTextCtrl* m_textCtrlTapStep = nullptr;
68};
69#endif // TRANSFORMERFORM_H
Form to edit the switching data of power elements for electromechanical transient studies.
Form to edit the transformer power data and OLTC tap changer.
Two-winding transformer power element with OLTC support.
Definition Transformer.h:96