Welcome, Guest
Username: Password: Remember me

TOPIC: How to get some output in txt file ?

How to get some output in txt file ? 8 years 6 months ago #21470

  • special_20
  • special_20's Avatar
Hello all,

I would like to get some output of TELEMAC in txt file but I don't know how to do. For example is there a way to save U, V, H every hour at a given node, for example 32939, in a txt file that would be similar to the opt files of MASCARET ?

Regards
The administrator has disabled public write access.

How to get some output in txt file ? 8 years 6 months ago #21471

  • riadh
  • riadh's Avatar
Hello

Yes this possible through the keywords LIST OF POINTS=32939 and NAMES OF POINTS (optional).
These keywords will trigger the printout of the wanted graphical variables of this node in the listing. If you want to put the print in a txt file, you have to include subroutine preres_telemac2d.f in your fortran user file and change LU in lines 392 and 394 with a logical unit (199 for instance). In this case an ascii file called fort.199 will be written in the temporary working folder.

I hope that this helps

with my best regards

Riadh
The administrator has disabled public write access.

How to get some output in txt file ? 8 years 6 months ago #21481

  • pprodano
  • pprodano's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 96
  • Thank you received: 55
Hello,

I have a different way of doing the same thing. See script extract_pt.py available in pputils. It works something like:

extract_pt.py -i in.slf -x 100.0 -y 200.0 -o out.txt

where -i is the *.slf result file, -x and -y are coordinates, and -o is the output file. It gives time series output (for all variables) of the node closest to the one given in the arguments. It's not the fastest or the most efficient script, but it should work.

Best regards,

Pat
The administrator has disabled public write access.
The following user(s) said Thank You: riadh, huyquangtran
Moderators: pham

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