Welcome, Guest
Username: Password: Remember me

TOPIC: After sel2vtk fails, where is the expected stbtel script?

After sel2vtk fails, where is the expected stbtel script? 9 years 1 month ago #18485

  • Watermotion.eu
  • Watermotion.eu's Avatar
My aim in the last few days was to convert slf files from Telemac 6.3.2 into vtk files for Paraview 3.14.1.

After having spent considerable time giving credit to sel2vtk based on the website and forum information, it looks like such a tool is of no use. I have been then suggested to use stbtel.

In order to learn what it is and proceed in an informed way, I have typeset the stbtel_report from the documentation folder in the Telemac distribution. This document is enclosed (there, images are missing at source and the date 9 October 2015 on the cover page is just the date of compilation).

File Attachment:

File Name: stbtel_report.pdf
File Size: 238 KB


On page 8 it is claimed that:
Instead of running STBTEL with a steering a script, named runStbtel.py, has been created in order to launch the converter in a one-line-command. This script is written in Python 2.6.

Here is the way it works (To see to following message run runStbtel.py --help):

Usage:
runStbtel.py input-file-name -o output-file-name [options]
Example:
runStbtel.py coarse.slf -b coarse.cli -o coarse.med --debug
Obviously this is just the example to convert to a med format, but vtk is a valid output format too.

I then searched for all files named *tbtel.py in the Telemac folders. Such a runStbtel.py file is nowhere to find. Only a file stbtel.py exists, which does not run with the same syntax as the runStbtel.py. The following screenshot shows this:

Screenshotfrom2015-10-09180312.png


These pieces of information seem to be pretty much inconsistent. I would very much rather want that this is due to something that I missed rather than to poor quality control. So I am happy to be corrected.

But, more pragmatically, would someone please point me to a program which
  1. converts slf to vtk
  2. actually exists in the Telemac distribution
  3. is readily usable to the ordinary user
in line with the claims that I read around?

Or, even better, would someone share this program as an attachment?
The administrator has disabled public write access.

After sel2vtk fails, where is the expected stbtel script? 9 years 1 month ago #18487

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Stbtel is a module of the telemac system which run like all other modules with a steering file.
You just have to type stbtel.py name_of steering_file and this should works...

There is a dedicated example in the version 7.0 in the directory
examples\stbtel\srf_to_vtk

Hope this helps
Christophe
The administrator has disabled public write access.

After sel2vtk fails, where is the expected stbtel script? 9 years 1 month ago #18489

  • Watermotion.eu
  • Watermotion.eu's Avatar
If I literally follow your indications, the result is what follows:

Screenshotfrom2015-10-09200004.png


Would you or anyone else be so kind to copy and paste the syntax with which stbtel is expected to be used in order to convert a sfl file into a vtk file?

I am happy to explore new things but, after quite some documented and undocumented effort, I would like to receive one positive and complete answer rather than avenues to possibly find new questions. Hope this is understandable and in line with the purpose of the forum.
The administrator has disabled public write access.

After sel2vtk fails, where is the expected stbtel script? 9 years 1 month ago #18490

  • konsonaut
  • konsonaut's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 413
  • Thank you received: 144
Hello,
the sel2vtk utility does normally a good job.

To complement the answer by Christophe, if you want to use the stbtel program for the - slf to vtk conversion - you have to include the vtk library: so in the systel configuration file you have to add the flag -DHAVE_VTK to the compiler instructions. By default in the standard systel configuration examples it is not included.

Clemens
The administrator has disabled public write access.

After sel2vtk fails, where is the expected stbtel script? 9 years 1 month ago #18492

  • Watermotion.eu
  • Watermotion.eu's Avatar
Hello. Thanks for contributing.

So it looks that I have to recompile Telemac! Not obvious at all and good to know since I set off from not wanting to recompile Paraview.

Could you please point me to (send me) the documentation where this compilation procedure is described in a stepwise and fail-safe way? Just not to fall in pointless guesswork and hacking the way around fragments and obsolete clues.

I am happy to hear that sel2vtk does a good job 'normally'. This was my initial hope too. My case is very easy to replicate and should take no more than 15 minutes to an experienced user. If it works for you, then we could start thinking about what went wrong in a more grounded way.

The question of what the syntax of stbtel is still holds. Any piece of documentation at hand?
The administrator has disabled public write access.

After sel2vtk fails, where is the expected stbtel script? 9 years 1 month ago #18594

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Hi,

I am afraid this part is not well documented. I will work on that.

The documentation is not up to date the name of the python command to do it in one line is converter.py

Hope it helps


And the name of the python file to

Hope it helps
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

After sel2vtk fails, where is the expected stbtel script? 8 years 9 months ago #19593

  • Debar
  • Debar's Avatar
Hello,
I try to convert slf file result in vtk to visualised the result file on paraview so I try to use converter.py but I have an error message, I try with stbtel.py too.( I also try to use sel2vtk but I have also an error message)
What this message means and what I have to do to convert my file ?

Thank you in advance
Attachments:
The administrator has disabled public write access.

After sel2vtk fails, where is the expected stbtel script? 8 years 9 months ago #19594

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Hi,

The erro you are having with converter.py seems to come from your install it is crashing when trying to run stbtel.py.

After the run of converter.py you should have stb.cas file in your folder.
Try to run the following command:
stbtel.py stb.cas
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

After sel2vtk fails, where is the expected stbtel script? 8 years 9 months ago #19601

  • Debar
  • Debar's Avatar
Hi,

Thank you for help,I have tried what you said and I still have an error message.
Attachments:
The administrator has disabled public write access.

After sel2vtk fails, where is the expected stbtel script? 8 years 9 months ago #19602

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Okay,

The error is comming from your environement that does not seem to be set as it should.

Try running the following command:
set PYTHONPATH="path_to_telemac_root\scripts\python27"
Where path_to_telemac_root is the path to your telemac installation

If that does not work try running :
runcode.py stbtel stb.cas

Hope it helps
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.
Moderators: borisb

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