Ask Your Question
0

Which language (Python Vs FORTRAN) is better for Algorithm development in PSS/e?

asked 2015-04-22 09:39:25 -0500

Sarina gravatar image

Dear all,

I need to write an online state estimator program in PSSE. I have some experience with Python and know it better than Fortran. So, I was thinking of using Python to write this program as well. Can anyone suggest if it can be done with Python or it has to be done with Fortran?

Is it possible to access the system DSTATE by using Python? I might need to access this matrix while writing this program. Also, I might need to solve the differential equations. I do not have any way of comparing the usage and features of Fortran Vs Python to perform this job.

Could anyone suggest something? I would greatly appreciate the answers.

Thank you very much in advance.

edit retag flag offensive close merge delete

Comments

Thank you yfwing for your helpful answer. I am trying to do the dynamic state estimation in which I continuously need the updated DSTATE. I understood that STATE can be accessed with Python but not sure about DSTATE in dynamic simulation. So, according to your suggestion, I guess Fortran is better??

Sarina gravatar imageSarina ( 2015-04-23 14:57:48 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2019-05-09 05:56:56 -0500

drsgao gravatar image

Python way better than Fortran for algorithm development. It is simple and elegant and the language takes care a lot of things by itself, like, you can have different data type in a list (note, Python does not have array, list is similar but is not array). Its package support is also tremendous, the since stack of Python is so good that once you have use them you don't want to go back.

Fortran is more efficient if performance is your concern. But I find it ugly and if I need performance, I would turn to C or C++, which are not natively supported by PSSE.

Also, if readability is a concern, then Python beats Fortran hands down.

edit flag offensive delete link more
0

answered 2015-04-22 16:29:23 -0500

yfwing gravatar image

Not sure what exactly you are going to do with the state estimation. If you are talking only about the steady-state, then you don't need access the DSTATE. If you don't have to access the variables related to dynamic simulation, in my opinion, you can use Python and it shall be easier to you as you are familiar with it.

However, if you have to access the variables and/or the arrays related to dynamic simulation, then it is better to use Fortran. Python can be used access some of the variables in PSS/E, however, it is very limited to the arrays used in the dynamic simulation.

edit flag offensive delete link more

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

Stats

Asked: 2015-04-22 09:39:25 -0500

Seen: 643 times

Last updated: May 09