Power System Platform  2018w15a
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
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:
Collaboration graph
[legend]

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=NULL)
 
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 = NULL
 
double m_timeStep
 
double m_integrationError
 
std::vector< double > m_solutions
 
bool m_isOK = false
 
wxString m_failMessage = _("Unknown error.")
 
IOControlm_inputControl = NULL
 
IOControlm_outputControl = NULL
 
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 = NULL
 
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 = NULL
protected

First input control to be solved


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