Ask Your Question

Getting y matrix through conet crashes pss e

asked 2019-02-27 11:53:18 -0500

marilyn3 gravatar image

updated 2019-02-27 11:56:44 -0500

I am using this api CALL OUTPUTYMATRIX in the conet subrutine , i need it for printing the ybus elements in the progress window , before running a simulation i use this code, but pss e crashes , i want to know if its possible to use this api during dynamic simulation in a user model for example



  IF (.NOT. IFLAG) GO TO 9000

  .  CALL OUTPUT_Y_MATRIX(0,1,1,0, 'x.txt', 0)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2019-02-28 01:31:22 -0500

perolofl gravatar image

The last argument in the subroutine call should be an integer variable, e.g. IERR. You have entered a constant.

Isn't it easier to just call the python API before the first run command, instead of calling it in Fortran from CONET?

edit flag offensive delete link more


@perolofl thanks , i want to do this with the conet subroutine in fortran because i want to know if it is possible to get the data of the admittance matrix during a dynamic simulation through an user model, i need some values of the Ybus so i want to know if its possible to do this

marilyn3 gravatar imagemarilyn3 ( 2019-02-28 09:51:23 -0500 )edit

Does it work after changing to IERR?

perolofl gravatar imageperolofl ( 2019-03-01 08:24:54 -0500 )edit

no , still crashes pss e , i used 0 as the IERR code , but anyway cant do the initialize activity because it just stops working

marilyn3 gravatar imagemarilyn3 ( 2019-03-01 15:05:22 -0500 )edit

Can you show the call statement you are using?

perolofl gravatar imageperolofl ( 2019-03-01 15:12:08 -0500 )edit

im using this code in CONET, then create dll gui and the cload4 command , i call the ymatrix output in mode 1 because i think i will print the ybus in the initialization strt WHEN (MODE.EQ.1) . . CALL OUTPUT_Y_MATRIX(0,1,1,1, 'OFILE.txt',0) ...FIN ELSE RETUN

marilyn3 gravatar imagemarilyn3 ( 2019-03-01 15:50:45 -0500 )edit

answered 2019-02-28 02:56:38 -0500

jfconroy gravatar image

I agree that Python is the easier way to get what you want.

The following is a lot more work, but it might be a preferred option for you, if you want to avoid writing/using Python code for every simulation. You could also consider writing a CCT model instead of a CONEC model. This is a v33+ feature. This type of model can be written as a DLL with the functionality that you want, and unlike a CONEC model it does not have to be compiled at run time. I'd advise you to get your CONEC code working correctly before you try to convert it to a CCT model.

Happy coding!

edit flag offensive delete link more


thanks a lot for the suggestion, i am currently using the version 32 of PSSE so for me its not possible use a cct model type , i want to know tho if its possible to get the values of the Ybus during dynamic simulation through an user model , do you know if its possible??

marilyn3 gravatar imagemarilyn3 ( 2019-02-28 09:53:27 -0500 )edit

It should be possible to get the Ybus through a user model, but you will have to write, test and debug this model to get it working (whether you write it as a CONEC model or something else). That seems like a lot of work when you can achieve the same objective using Python coding.

jfconroy gravatar imagejfconroy ( 2019-03-01 09:31:48 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower


Asked: 2019-02-27 11:53:18 -0500

Seen: 123 times

Last updated: Feb 28