Ask Your Question

maryamfzainal's profile - activity

2021-11-22 02:19:39 -0500 received badge  Famous Question (source)
2021-08-12 19:48:30 -0500 received badge  Notable Question (source)
2021-08-12 19:48:30 -0500 received badge  Popular Question (source)
2021-08-11 18:56:47 -0500 received badge  Enthusiast
2021-08-10 19:35:58 -0500 asked a question how to extract out file and plot with matplotlib

Hi all,

I have some issue to plot out file with matplotlib. Here is the code i've used.

outfile=tk.askopenfilename(title="Select a .out file",filetypes=(("PSS/E outfile","*.out"),("all files","*.*")))

### Run dyntools to extract the data###
chnfobj = dyntools.CHNF(outfile)

short_title, chanid_dict, chandata_dict = chnfobj.get_data()


### Extract time as a variable###
time = chandata_dict ['time']

f = chandata_dict['freq']

Here is the error

Traceback (most recent call last):
  File "C:\Users\dyntoolstest.py", line 34, in <module>
    f = chandata_dict['freq']
KeyError: 'freq'

What should i put in [] of f ?

Thank you in advance.

2020-05-05 22:19:59 -0500 received badge  Famous Question (source)
2020-05-04 05:39:50 -0500 received badge  Notable Question (source)
2020-05-03 22:21:42 -0500 commented answer how to model battery energy storage in load flow and cbest modelling?

thanks for your answer, btw, in load flow, how about the pgen and pmax?

2020-05-03 09:27:52 -0500 received badge  Popular Question (source)
2020-04-30 23:19:15 -0500 asked a question how to model battery energy storage in load flow and cbest modelling?

currently i am working on effect of renewable energy on system frequency and how battery energy storage can solve this issue. unfortunately i have no idea on how to model BESS in PSSE32. can someone guide me on how to model bess in load flow as well as on dynamic modelling.