First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
2

Inertia of a Power System

asked Jul 24 '19

jconto gravatar image

I have posted at my Google Drive site a python script to calculate the inertia of a power system. Generator models supported are 'GENDCO', 'GENROE', 'GENROU', 'GENTPJ1','GENSAE', 'GENSAL','GENTRA'. Data input are base case non-converted or converted and the corresponding snp file. It prints out the inertia (in GW-sec) of the system.

Comments

awesome! thanks!

bikiran1991 gravatar imagebikiran1991 (Sep 5 '19)

Hi, I got a problem with *snp file, do you know how to create the *snp file from *dyr file ? I used Save As the *dyr file to *snp file. However, when I run the API, the comment is " No data in memory" do you know why ?

dunguyen9003 gravatar imagedunguyen9003 (Feb 12 '0)

Thanks for this! The result is basically in GW-s, so we need to divide it by the total production if we want to get inertia in seconds. WPP type 4 and PV are fully connected via converter but should we consider the impact of WPP type 3 on system inertia?

pvinkovic gravatar imagepvinkovic (Jul 10 '4)

2 answers

Sort by » oldest newest most voted
1

answered Feb 12 '0

jconto gravatar image

* saving a SNP file *

In the PSSe GUI, after reading the case, convert the loads and generators, apply activities ORDR, FACT, TYSL, then save it as a converted case (still with sav extension).
Next read the dyr file (use OPEN file) and enter data as needed (see API manual for "dyre_new"). In code format:

psspy.dyre_new([1,1,1,1],dyrfile)   #as example

After this step, select "SAVE" and enter a name with extension.snp. In code format:

ierr = psspy.snap([-1,-1,-1,-1,-1],'case.snp')   #as example
link
0

answered Mar 8 '3

powerflow gravatar image

Hi,This python code of yours can be used normally in the savnw .sav that comes with PSSE, but can your python script calculate the inertia of the new energy power system containing wind farms? I still use your New energy power systems with wind farms(ieee39RE.sav and ieee39RE.snp) to calculate the system inertia, but the results are shown as follows after operation:

Inertialess Machine model found:GENTPJU1

Inertialess Machine model found:GENTPJU1

Inertialess Machine model found:GENTPJU1

Inertialess Machine model found:GENTPJU1

Inertialess Machine model found:GENTPJU1

Inertialess Machine model found:GENTPJU1

Inertialess Machine model found:GENTPJU1

Inertialess Machine model found:GENTPJU1

Inertialess Machine model found:GENTPJU1

Inertialess Machine model found:GENTPJU1

 Bus   ID   MacInertia  TotalInertia

System Inertia: 0.00 GW-sec

Please how can I get the correct system inertia,?I would be very grateful if you could reply!

link

Comments

I have updated the code "inertia.py" to process the generator model "GENTPJU1". Thanks for your feedback and interest. Download the script again.

jconto gravatar imagejconto (Mar 8 '3)

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

3 followers

Stats

Asked: Jul 24 '19

Seen: 1,785 times

Last updated: Mar 07 '23