From c7ef9a883031c68506357f9ef1b1a0b79c79f4da Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Thu, 25 Jul 2019 01:11:17 -0300 Subject: Motor integration with PF Newton bug fixed Newton inertia implemented Gauss-Newton implemented --- Project/IndMotor.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Project/IndMotor.h') diff --git a/Project/IndMotor.h b/Project/IndMotor.h index 89bd6e1..0aa6937 100644 --- a/Project/IndMotor.h +++ b/Project/IndMotor.h @@ -32,6 +32,17 @@ struct IndMotorElectricalData { ElectricalUnit reactivePowerUnit = UNIT_MVAr; bool useMachinePowerAsBase = true; + bool calcQInPowerFlow = true; + + // Power flow + double k1 = 0.0; + double k2 = 0.0; + double k3 = 0.0; + double k4 = 0.0; + double p0 = 0.0; + int busNum = 0; + + double qValue = 0.0; // Stability bool plotIndMachine = false; @@ -119,6 +130,8 @@ class IndMotor : public Machines virtual IndMotorElectricalData GetElectricalData() { return m_electricalData; } virtual IndMotorElectricalData GetPUElectricalData(double systemPowerBase); virtual void SetElectricalData(IndMotorElectricalData electricalData) { m_electricalData = electricalData; } + virtual void InitPowerFlowMotor(double systemPowerBase, int busNumber); + virtual bool CalculateReactivePower(double voltage); virtual bool GetPlotData(ElementPlotData& plotData, PlotStudy study = STABILITY); -- cgit