Welcome, Guest
Username: Password: Remember me

TOPIC: record only the last time step of the model

record only the last time step of the model 7 years 11 months ago #24578

  • jonathan
  • jonathan's Avatar
Hello all,


My model is running for a month (31 days) with an output of one hour. I want to use this model as a previous computation file, however the result file is really heavy (3 giga) and I would like to record only the last day of the model. Does someone know how to do it please?

You can find attached my cas file

regards

Joanthan
Attachments:
The administrator has disabled public write access.

record only the last time step of the model 7 years 11 months ago #24581

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
If you read the documentation carefully, you will see it exists some dedicated keywords to define the first time step to store ...

Regards
Christophe
The administrator has disabled public write access.

record only the last time step of the model 7 years 11 months ago #24584

  • josekdiaz
  • josekdiaz's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 161
  • Thank you received: 48
Dear Jonathan,

Additional to the previous answer, you could also "chop" or slice your existent result to a new one using the bundled python scripts.

Launch the opentelemac command prompt (windows) or terminal (linux) and type:
runSELAFIN.py chop -f [ini_frame] -s [end_frame] [Inputfile.slf] [Outputfile.slf]

Please replace the brackets ([ ]) with your data,if your last frame is "100" and your want only your last frame:
runSELAFIN.py chop -f 100 -s 100 results_model.slf last_frame_model.slf

Also you could check the last frame using Bluekenue, using the animate/time toolbar.

Some (aditional) flags for the chop command and its equivalent:
-f: --from
-s: --stop
-d: --step
-r: --replace

Please, make a backup of your SLF file if you decide to use the "-r" option, as it overwrites the input file!

Hope it helps.

Regards,

José D.
The administrator has disabled public write access.
The following user(s) said Thank You: Tian

record only the last time step of the model 7 years 6 months ago #26193

  • jose2kk
  • jose2kk's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 161
  • Thank you received: 59
Dear José D.,

I am trying to chop or slice a results file (basically to record the last frame/time step and get a smaller file), however, I am getting an error (see the image attached) when I try it, I have tried it many times and I always get the same error.

As you said, I launched the command prompt and typed what you indicated with the required changes for my case. I am not sure if I am doing it properly, could you please check if I am?

Cheers,

José
Attachments:
The administrator has disabled public write access.

record only the last time step of the model 7 years 6 months ago #26197

  • josekdiaz
  • josekdiaz's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 161
  • Thank you received: 48
Hello José,

Seems like a bug that existed in that realease (6p3r2?). Have you tried using a newer v7.x version?

Regards,

José D.
The administrator has disabled public write access.
The following user(s) said Thank You: jose2kk

record only the last time step of the model 7 years 6 months ago #26198

  • jose2kk
  • jose2kk's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 161
  • Thank you received: 59
Hi José D.,

Indeed, it is a bug in that release (v6p3r2), I already tried with v7p2 (as you said) and it works fine.

Thanks a lot!

Cheers,

José
The administrator has disabled public write access.
Moderators: pham

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.