diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-05-22 20:17:41 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-05-22 20:17:41 -0300 |
commit | f995850b38916b38718b84f4b82948479a81855a (patch) | |
tree | db1f4f79f2d47383451869ce214dc416b0174dac /Project/Electromechanical.h | |
parent | 30181ca0ae73f5f7f1856ac289db8fcf849c9a84 (diff) | |
download | PSP.git-f995850b38916b38718b84f4b82948479a81855a.tar.gz PSP.git-f995850b38916b38718b84f4b82948479a81855a.tar.xz PSP.git-f995850b38916b38718b84f4b82948479a81855a.zip |
Events implemented
Effects on adimittance matrix and elements:
->Fault on bus;
->Generation/Load switching;
->Branch switching.
Diffstat (limited to 'Project/Electromechanical.h')
-rw-r--r-- | Project/Electromechanical.h | 5 |
1 files changed, 4 insertions, 1 deletions
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<double> GetSyncMachineAdmittance(SyncGenerator* generator); wxString m_errorMsg = _("Unknown error"); std::vector<std::vector<std::complex<double> > > m_yBus; + double m_powerSystemBase = 100e6; double m_timeStep = 1e-3; |