Ask Your Question
0

Getting output without using .out file

asked 2020-11-23 02:41:12 -0600

Etki Acilan gravatar image

updated 2020-11-24 08:05:48 -0600

Hello, I am doing a large scaled simulation. But as the size of the .out file increases, the simulation gets slower. Therefore, I want to get the output of the channels without using .out file. OR I want to make the .out file only store the last time instant's outputs.

Can I do that?? How can I do that?

Thank you very much,

Solution: Thanks to perolofl, I solved my problem.

What I was doing (which was very slow): I was writing my output to .out file then by using dyntools I was reading the last output.

What I am doing now: I am not using any .out file. I am using psspy.chnval() to get the latest output.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-11-23 05:55:27 -0600

perolofl gravatar image

Do you mean to store only the output of the last time step of the whole simulation? It can be done by using NPLT=0 for the main part of the simulation and make another run for one time step with NPLT=1.

Do you have a large amount of channels?

edit flag offensive delete link more

Comments

Yes,I want to store only the last step. However, I do simulations in small intervals. I use psspy.run(tpause = last_instant + delta_time) for 1000 times for example, and I use each time step's output for something else. I am working on a kalman filter. So, actually, I want to overwrite on .out file.

Etki Acilan gravatar imageEtki Acilan ( 2020-11-23 08:35:49 -0600 )edit

You can't overwrite an out-file in the way you want, time step by time step. Why do you write to an out-file? Since you are pausing the simulation every time step, you can acces the channel values directly with psspy.chnval().

perolofl gravatar imageperolofl ( 2020-11-24 07:31:49 -0600 )edit

Hello, I solved my problem thanks to you. I edited my thread.

Etki Acilan gravatar imageEtki Acilan ( 2020-11-24 08:04:24 -0600 )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

Stats

Asked: 2020-11-23 02:41:12 -0600

Seen: 486 times

Last updated: Nov 24 '20