Voltage Check Report to Excel
Hi All
Does anyone have a python script which extracts the buses and their voltages which are outside +/- 5% and exports them to excel after doing a load flow?
Thanks
First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
Hi All
Does anyone have a python script which extracts the buses and their voltages which are outside +/- 5% and exports them to excel after doing a load flow?
Thanks
Something like this does the job. After calling this function, write the following line: volviol.to_csv('voltage.csv') and that should do it.
def voltages_csv():
# get a dataframe of all buses and their voltages; you need to write this function
allBusData = AllBuses()
volviol = []
for index, iBus in allBusData.iterrows():
busPu = iBus['pu']
if not (0.95 <= busPu <= 1.05):
volviol.append(iBus)
volviolDF = pd.DataFrame(data=volviol)
return volviolDF
You can record the functionality using PSSE GUI and then modify it for your case.
Asked: 2018-02-22 05:38:36 -0500
Seen: 851 times
Last updated: Feb 22 '18
Calculate the impedance from one bus to all others
Where can I find bus voltage angles in PV analysis output?
Pelec calculation based on Efd
How to simulate higher voltage
power flow convergenceļ¼but Pgen is greater than Pmax
Weather in PV analyis,is it possible for practical grid to have voltage almost near to 1pu?
whit loves you. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.