28 double nominalPower = 100.0;
30 double nominalVoltage = 13.8;
32 double activePower = 100.0;
34 double reactivePower = 0.0;
36 bool haveMaxReactive =
false;
37 double maxReactive = 9999.0;
39 bool haveMinReactive =
false;
40 double minReactive = -9999.0;
42 bool useMachineBase =
true;
45 double positiveResistance = 0.0;
46 double positiveReactance = 1.0;
47 double negativeResistance = 0.0;
48 double negativeReactance = 1.0;
49 double zeroResistance = 0.0;
50 double zeroReactance = 1.0;
51 double groundResistance = 0.0;
52 double groundReactance = 0.0;
53 bool groundNeutral =
true;
55 std::complex<double> faultCurrent[3] = {std::complex<double>(0.0, 0.0), std::complex<double>(0.0, 0.0),
56 std::complex<double>(0.0, 0.0)};
59 bool plotSyncMachine =
false;
63 bool useSpeedGovernor =
false;
65 double armResistance = 0.0;
66 double potierReactance = 0.0;
67 double satFactor = 0.0;
73 double transTd0 = 0.0;
74 double transTq0 = 0.0;
81 std::complex<double> terminalVoltage;
82 std::vector<std::complex<double> > terminalVoltageVector;
83 std::complex<double> electricalPower;
84 std::vector<std::complex<double> > electricalPowerVector;
86 std::vector<double> mechanicalPowerVector;
88 std::vector<double> freqVector;
90 std::vector<double> fieldVoltageVector;
92 std::vector<double> deltaVector;
94 double initialFieldVoltage;
124 Machines::SyncMachineModel model = Machines::SM_MODEL_1;
143 virtual void DrawDCSymbol(wxGraphicsContext* gc)
const;
144 virtual void DrawDCSymbol(wxDC& dc)
const;
149 virtual void SetNominalVoltage(std::vector<double> nominalVoltage, std::vector<ElectricalUnit> nominalVoltageUnit);
151 virtual bool ShowForm(wxWindow* parent,
Element* element, wxWindow* workspace =
nullptr);
153 virtual rapidxml::xml_node<>* SaveElement(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* elementListNode);
154 virtual bool OpenElement(rapidxml::xml_node<>* elementNode, std::vector<Element*> parentList);
ElectricalUnit
Electrical units.
Class that can contain all control elements. Can identify (using RTTI) the elements from a generic li...
Solves in the time the control system. Can solve the control system directly from a ControlEditor or ...
Base class of all elements of the program. This class is responsible for manage graphical and his dat...
Abstract class for rotary machines power elements.
Synchronous motor (synchronous compensator) power element.
virtual Element * GetCopy()
Get a the element copy.
virtual void SetNominalVoltage(std::vector< double > nominalVoltage, std::vector< ElectricalUnit > nominalVoltageUnit)
Set nominal voltage of the element.
virtual wxString GetTipText() const
Get the tip text.
virtual bool GetContextMenu(wxMenu &menu)
Get the element contex menu.
virtual bool ShowForm(wxWindow *parent, Element *element, wxWindow *workspace=nullptr)
Show element data form.
Integration constants to calculate dynamic elements through trapezoidal integration method.