2

Inertia of a Power System

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.

jconto's avatar
2.9k
jconto
asked 2019-07-24 11:58:23 -0500
edit flag offensive 0 remove flag close merge delete

Comments

awesome! thanks!

bikiran1991's avatar bikiran1991 (2019-09-04 21:41:11 -0500) edit

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's avatar dunguyen9003 (2020-02-12 06:01:44 -0500) edit

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's avatar pvinkovic (2024-07-10 03:25:57 -0500) edit
add a comment see more comments

2 Answers

1

* 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
jconto's avatar
2.9k
jconto
answered 2020-02-12 09:59:31 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

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!

powerflow's avatar
1
powerflow
answered 2023-03-07 20:49:49 -0500
edit flag offensive 0 remove flag delete 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's avatar jconto (2023-03-08 13:20:23 -0500) edit
add a comment see more comments

Your Answer

Login/Signup to Answer