Open martinmoraga opened 2 weeks ago
Currently, it is not possible to initialise the active and reactive power of the NetworkInjection class for powerflow simulations.
This could be solved by adding the line:
sol_Q(pv->matrixNodeIndex()) += extnet->attributeTyped<CPS::Real>("q_inj")->get() / mBaseApparentPower;
in https://github.com/sogno-platform/dpsim/blob/ffc508004f0487f33e080da2d28ae64c4e2e7a3e/dpsim/src/PFSolverPowerPolar.cpp#L93
Currently, it is not possible to initialise the active and reactive power of the NetworkInjection class for powerflow simulations.
This could be solved by adding the line:
sol_Q(pv->matrixNodeIndex()) += extnet->attributeTyped<CPS::Real>("q_inj")->get() / mBaseApparentPower;
in https://github.com/sogno-platform/dpsim/blob/ffc508004f0487f33e080da2d28ae64c4e2e7a3e/dpsim/src/PFSolverPowerPolar.cpp#L93