From f995850b38916b38718b84f4b82948479a81855a Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Mon, 22 May 2017 20:17:41 -0300 Subject: Events implemented Effects on adimittance matrix and elements: ->Fault on bus; ->Generation/Load switching; ->Branch switching. --- Project/Electromechanical.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Project/Electromechanical.h') diff --git a/Project/Electromechanical.h b/Project/Electromechanical.h index c8555b7..172428f 100644 --- a/Project/Electromechanical.h +++ b/Project/Electromechanical.h @@ -16,12 +16,15 @@ protected: void SetEventTimeList(); bool HasEvent(double currentTime); void SetEvent(double currentTime); + inline bool EventTrigger(double eventTime, double currentTime); - void Insert + void InsertSyncMachinesOnYBus(); + std::complex GetSyncMachineAdmittance(SyncGenerator* generator); wxString m_errorMsg = _("Unknown error"); std::vector > > m_yBus; + double m_powerSystemBase = 100e6; double m_timeStep = 1e-3; -- cgit