upb-lea / ElectricGrid.jl

A time domain electrical energy grid modeling and simulation tool with a focus on the control of power electronics converters
https://upb-lea.github.io/ElectricGrid.jl/
MIT License
33 stars 4 forks source link

Extended Unit Tests #45

Closed VikasChidananda closed 1 year ago

VikasChidananda commented 1 year ago

Power flow equations

VikasChidananda commented 1 year ago
┌ Warning: Power flow equation not solveable! Maybe parameter setting invalid.
│                   Default values are used for cable parameters
└ @ ElectricGrid /data/cvikas/Projects/dare/src/power_system_theory.jl:1186
[ Info: Normalization is done based on the defined parameter limits.
[ Info: Time simulation run time: 0.8 [s] ~> 8001 steps
[ Info: 2 'classically' controlled sources have been initialised.
[ Info: 2 sources have been set up in Voltage mode.
[ Info: 2 sources have automatically calculated proportional and integral gains for their voltage control loops.
[ Info: 2 sources have automatically calculated proportional and integral gains for their current control loops.
p_test = 165.04976255697363
q_test = -19737.968426855794
norm(p_test, q_test) = 165.04976255697363
3 * sum(ElectricGrid.P_source) = 0.0
3 * sum(ElectricGrid.Q_source) = 0.0
power balance: no load: Test Failed at /upb/users/c/cvikas/profiles/unix/cs/Projects/dare/test/power_flow_test_P_Q.jl:176
  Expression: p_test - 3 * sum(ElectricGrid.P_source) < 10.0
   Evaluated: 165.04976255697363 < 10.0

https://github.com/upb-lea/ElectricGrid.jl/blob/5c46107b1a23c4851ffe35ca04e41597e272220b/test/power_flow_test_P_Q.jl#L119

Cable layout fails for no - load test.

Webbah commented 1 year ago

Are the tests mentioned above implemented meanwhile?