Welcome, Guest
Username: Password: Remember me

TOPIC: Script sel2vtk 0.5.5

Script sel2vtk 0.5.5 8 years 11 months ago #19064

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi

Not sure about your problem as I don't have v6p3r2
As the message seems to indicate a problem in the execution, you probably have a stering file stb.cas generate by the converter script

Try to run it manually with stbtel.py stb.cas

Regards
Christophe
The administrator has disabled public write access.

Script sel2vtk 0.5.5 8 years 11 months ago #19065

  • Gaeta
  • Gaeta's Avatar
I tried to run the example in stbtel folder named srf_to_vtk.
I recompiled the code including the line DHAVE_ VTK as suggested in posts.

(gfortran -fopenmp -c -O3 -ffixed-line-length-132 -DHAVE_VTK -DHAVE_MPI -fconvert=big-endian -frecord-marker=4 <mods> <incs> <f95name>)


I got the following error

Schermata2015-12-03a13.17.28.png


Seems it missed the vtk library...
Helps?

G
The administrator has disabled public write access.

Script sel2vtk 0.5.5 8 years 11 months ago #19072

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Hi could you try two things:
First try to remove the file stbtel that should be in the folder in which you tried to converter.
And it still does not work after that try recompiling using the option --clean

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.
The following user(s) said Thank You: Gaeta

Script sel2vtk 0.5.5 8 years 11 months ago #19073

  • Watermotion.eu
  • Watermotion.eu's Avatar
Hi Gaeta. I tried to reproduce your case, guessing that you were playing with the Wesel example of Telemac2d. I do not experience the error you do (screenshot attached). I run sel2vtk in the folder where the slf file is.

A point of difference is that I am using Linux system and that I am working locally on my desktop (I see some connection error in your system).

A point of indifference is that I get the same result with 6.3.2 and with 7.0.1, so the version should not play a role in your case either.

This is not a solution but hopefully helps outline the trouble. Good luck.
Attachments:
The administrator has disabled public write access.

Script sel2vtk 0.5.5 8 years 11 months ago #19074

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

I wrote sel2vtk.py in pure python that does the same thing. So far, it only works for 2D files. When I have some time, I'll make it work for 3D as well.

The sel2vtk.py script is part of pputils, my own set of utilities for free surface flow modeling. My TUC2015 paper described some of its features.

Perhaps some of you will find it useful,

Pat
The administrator has disabled public write access.
The following user(s) said Thank You: Gaeta, Lux, DanieleD90, Watermotion.eu, huyquangtran, josekdiaz

Script sel2vtk 0.5.5 8 years 2 months ago #23586

  • huyquangtran
  • huyquangtran's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 271
  • Thank you received: 23
Dear Pat,

I have had a look into your pputils and read your TUC 2015's paper. It is definitely helpful for us. In this topic, you mentioned 8 months ago that you was going to make the scripts read 3D files. I am not sure if now QGIS can read Telemac 3D result files?

Thanks & Best Regards

Huy
The administrator has disabled public write access.

Script sel2vtk 0.5.5 8 years 11 months ago #19080

  • Gaeta
  • Gaeta's Avatar
Thanks to everybody for your help.
At the moment, I'm successfully using the STBTEL procedure to convert slf result files in vtk.
Unfortunately, if I well understood, the vtk files obtained in this way are ASCII files, right?
My mesh is quite huge and the vtk files will be uneasy to manage...
Any hints? How usually do you face this issue? Probably, if it works, the other wea is to install the plug-in in paraview.
Suggestions? Thanks a lot

G
The administrator has disabled public write access.

Script sel2vtk 0.5.5 8 years 11 months ago #19082

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

Using *.vtk files for models having large meshes can be a problem. My simple workaround is to open the *.vtk files in Paraview, and simply save it as *.vtu (Paraview's binary format for unstructured grids). Animating large models seemed to work much smoother with binary files.

Hope it helps,

Pat
The administrator has disabled public write access.

Script sel2vtk 0.5.5 8 years 11 months ago #19089

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

The fact that the Vtk are in ascii format should be changed in future version should be changed in future version.
I would like to add the XML VTK as well.

If you wanna try to convert directly in binary you can modifying the file sources/stbtel/conv_vtk.F at line 67 and replacing 'ASCII' by 'BINARY'.

I haven't had time to test it but it should work.

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.

Script sel2vtk 0.5.5 8 years 11 months ago #19182

  • MichaelaWoerndl
  • MichaelaWoerndl's Avatar
Hey, I am receiving the same error message concerning the vtk library just as you did. How did you solve the problem?
The administrator has disabled public write access.

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