Ask Your Question
0

How to save a value in fortran and re-use it ?

asked 2019-07-10 06:42:52 -0500

anonymous user

Anonymous

Hello,

I have a basic issue in PSS/E and fortran. In my fortran program, I wish to record a value in a certain situation and re-use it for other situations.

The specific value is obtained during a deadband, for example active power value recorded before every droop (in the deadband) happening. How can I record this value so that I can use for other calculations, after the deadband ?

Thank you in advance

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2019-07-11 12:13:35 -0500

perolofl gravatar image

I am not sure what you want to do. Please explain your problem better.

But a general rule is to never use static or SAVE in a user written dynamic model in PSSE. Assign a VAR to store the value between model calls.

edit flag offensive delete link more
0

answered 2019-07-10 08:03:27 -0500

drsgao gravatar image

Have you tried the "static" data type?

The very worst case is just to save the var to a file and then let others read it. But this is really the last resort.

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

1 follower

Stats

Asked: 2019-07-10 06:42:52 -0500

Seen: 454 times

Last updated: Jul 11