Power System Platform  2024w23a
Loading...
Searching...
No Matches
ControlElementSolver Class Reference

Solves in the time the control system. Can solve the control system directly from a ControlEditor or from a ControlEditorElement. More...

#include <ControlElementSolver.h>

Collaboration diagram for ControlElementSolver:

Public Member Functions

 ControlElementSolver (ControlEditor *controlEditor, double timeStep=1e-3, double integrationError=1e-3)
 
 ControlElementSolver (ControlElementContainer *ctrlContainer, double timeStep=1e-3, double integrationError=1e-3, wxWindow *parent=nullptr)
 
virtual bool InitializeValues (bool startAllZero)
 
virtual void SolveNextStep ()
 
virtual std::vector< double > GetSolutions ()
 
virtual double GetLastSolution ()
 
virtual bool IsOK () const
 
virtual wxString GetErrorMessage ()
 
void SetSwitchStatus (bool value)
 
void SetCurrentTime (double value)
 
void SetTerminalVoltage (double value)
 
void SetVelocity (double value)
 
void SetActivePower (double value)
 
void SetReactivePower (double value)
 
void SetInitialTerminalVoltage (double value)
 
void SetInitialMecPower (double value)
 
void SetInitialVelocity (double value)
 
void SetDeltaVelocity (double value)
 
void SetDeltaActivePower (double value)
 
double GetFieldVoltage ()
 
double GetMechanicalPower ()
 
double GetVelocity ()
 
double GetActivePower ()
 

Protected Member Functions

void Initialize (wxWindow *parent, double timeStep, double integrationError)
 
void FillAllConnectedChildren (ConnectionLine *parent)
 
ConnectionLineSolveNextElement (ConnectionLine *currentLine)
 

Protected Attributes

ControlElementContainerm_ctrlContainer = nullptr
 
double m_timeStep = 1e-3
 
double m_integrationError = 1e-5
 
std::vector< double > m_solutions
 
bool m_isOK = false
 
wxString m_failMessage = _("Unknown error.")
 
IOControlm_inputControl = nullptr
 
IOControlm_outputControl = nullptr
 
bool m_switchStatus = false
 
double m_currentTime = 0.0
 
double m_terminalVoltage = 0.0
 
double m_velocity = 0.0
 
double m_activePower = 0.0
 
double m_reactivePower = 0.0
 
double m_initTerminalVoltage = 0.0
 
double m_initMecPower = 0.0
 
double m_initVelocity = 0.0
 
double m_deltaVelocity = 0.0
 
double m_deltaPe = 0.0
 
double * m_inputToSolve = nullptr
 
double m_fieldVoltage = 0.0
 
double m_mecPower = 0.0
 

Detailed Description

Solves in the time the control system. Can solve the control system directly from a ControlEditor or from a ControlEditorElement.

Author
Thales Lima Oliveira thale.nosp@m.s@uf.nosp@m.u.br
Date
05/10/2017

Member Data Documentation

◆ m_inputControl

IOControl* ControlElementSolver::m_inputControl = nullptr
protected

First input control to be solved


The documentation for this class was generated from the following files: