Welcome, Guest
Username: Password: Remember me

TOPIC: Split result file

Split result file 9 years 8 months ago #16123

  • Filippi
  • Filippi's Avatar
Hello everyone!
I'm trying to figure out how to split my result file excluding part of the frames. I need to reduce the size of the file. Can somebody help me please?

Best regards.
The administrator has disabled public write access.

Split result file 9 years 8 months ago #16137

  • riadh
  • riadh's Avatar
Hello

I'm not expert of FUDAA but I think that you can extract part of the frames with FUDAA. I'm using TECPLOT, and this can be done with it. I'm not sure that BK can do that.
If you are more familiar with Fortran programming, you can edit telemac2d.f in the following way:
- put it in your fortran file
- remove all what is done in the time loop except result writing: bief_suite will read all your frames and bief_desimp will write them
- you need to edit bief_desimp in order to keep frames you want.

I hope that this helps

with my best regards

Riadh ATA
The administrator has disabled public write access.

Split result file 9 years 8 months ago #16141

  • konsonaut
  • konsonaut's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 413
  • Thank you received: 144
Hello,

to promote as a user the maybe in the community a little bit myterious Python scripts I suggest to use the very handy Python scripts which are included in the Telemac installation. runSELAFIN.py does some cool things and has a class named chopSELAFIN which does exactly this job.
If the operating system is Windows you will find probably the Python scripts in C:\.....\v7pr0\scripts\python27\
So one has to run the runSELAFIN.py in a command prompt by providing additonal flags: e.g.
python runselafin.py chop -f 50 -s 100 -d 10 Inputfile.slf Outputfile.slf
Meaning of the flags:
-f: --from
-s: --stop
-d: --step
You could create a batch file as the one enclosed. Rename the extension to .bat.

However, you need Python 2.7.x, Numpy and Matplotlib.

Hope this helps,
Clemens
Attachments:
The administrator has disabled public write access.
Moderators: pham

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