diff --git a/examples/DPsim/cim_ieee_9_bus.py b/examples/DPsim/cim_ieee_9_bus.py new file mode 100644 index 0000000000000000000000000000000000000000..55a51defda0466ecbaa70e811ab7b13f10b9bed9 --- /dev/null +++ b/examples/DPsim/cim_ieee_9_bus.py @@ -0,0 +1,13 @@ +from dataprocessing.readtools import * +from dataprocessing.timeseries import * + +path = 'C:\\Users\\mmi\\git\\PowerSystemSimulation\\DPsim\\VisualStudio\\DPsimVS2017\\' +logName = 'lvector-cim'; +dataType = '.csv'; +logFilename = path + logName + dataType; +ts_dpsim = read_timeseries_dpsim_cmpl(logFilename) +for ts in ts_dpsim: + ts_abs = ts.abs(ts.name + ' abs') + ts_phase = ts.phase(ts.name + ' phase') + print(ts.name + ': ' + str(ts_abs.values[0]) + '<' + str(ts_phase.values[0] * 180/np.pi)) +