From c91e58bb903adeff1e8c0fff1868e80783010e58 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Wed, 24 May 2017 17:50:36 -0300 Subject: Dynamic elements initialization implemented --- Project/SyncGenerator.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'Project/SyncGenerator.h') diff --git a/Project/SyncGenerator.h b/Project/SyncGenerator.h index 5fe078f..8cadddc 100644 --- a/Project/SyncGenerator.h +++ b/Project/SyncGenerator.h @@ -5,6 +5,7 @@ class SyncMachineForm; class ControlElementContainer; +class ControlElementSolver; struct SyncGeneratorElectricalData { // General @@ -61,9 +62,44 @@ struct SyncGeneratorElectricalData { double subTd0 = 0.0; double subTq0 = 0.0; + // Machine state variables + std::complex terminalVoltage; + std::vector > terminalVoltageVector; + std::complex electricalPower; + std::vector > electricalPowerVector; + double pm; + std::vector mechanicalPowerVector; + double speed; + std::vector freqVector; + double fieldVoltage; + std::vector fieldVoltageVector; + double delta; + std::vector deltaVector; + + double initialFieldVoltage; + + // Internal machine variables + double tranEq; + double tranEd; + double subEq; + double subEd; + double pe; + + // Integration constants + IntegrationConstant icSpeed; + IntegrationConstant icDelta; + IntegrationConstant icTranEq; + IntegrationConstant icTranEd; + IntegrationConstant icSubEq; + IntegrationConstant icSubEd; + // Control ControlElementContainer* avr = NULL; ControlElementContainer* speedGov = NULL; + + // Control solvers + ControlElementSolver* avrSolver = NULL; + ControlElementSolver* speedGovSolver = NULL; }; class SyncGenerator : public Machines -- cgit