1

Retrieve MW and MVAR from Load

Sorry to ask a simple question that I hope has not been asked already. I have tried searching for it but am unable. I would like to gather the load values, MW and MVAR for a particular load.

Checking the api is seems like LODDT1 would do it, but I can only seem to get the MVA values. I can use LODDT2 to get them in a complex way, but wanted to avoid then digging into that with more code to get what I want. Unless that is the only option.

Does anyone have a simple like of code to retrieve load values from a particular load? psspy.loddt1(65818, '1' ,'MVA', 'ACT') - is where I am starting.

I have a script that reads in load values and sets them via csv, but I wanted to first scrap all the existing loads from the same bus and write them to a file for comparison later on (like to see % change from before to after).

georgc's avatar
21
georgc
asked 2020-08-14 14:45:15 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

So I decided to just make extra code to make it work, so here is how I did it, but I hope there is a single line/more elegant manner to complete it.

exist_load = psspy.busdt2(int(bus[0]),'MVA','ACT')
#gets returned as a list [0,MW+MVARj]
Y = exist_load[1]
Z = (Y.real, Y.imag)
MW = Y.real
MVAR = Y.imag
georgc's avatar
21
georgc
answered 2020-08-14 16:35:40 -0500
edit flag offensive 0 remove flag delete link

Comments

Thanks, I had the same issue and this was really helpful

QuinnP's avatar QuinnP (2023-08-06 21:33:36 -0500) edit
add a comment see more comments

Your Answer

Login/Signup to Answer