Welcome, Guest
Username: Password: Remember me

TOPIC: using Gmsh grid in TELEMAC

using Gmsh grid in TELEMAC 4 years 10 months ago #35242

mathieu.alquier wrote:
Hello, i am using pputils, but i have a problem with script gmsh2adcirc.py :
Traceback (most recent call last):
File "D:\pputils-master\pputils-master\gmsh2adcirc.py", line 76, in <module>
n = int(n) # now it becomes an integer
ValueError: invalid literal for int() with base 10: '122 119 1 0\n'



I work with an exemple (gis2gmsh/exemple01holes) provided in pputils folders

Tank you in advance.

PS: congratulation for the quality of the pputils's manual
It seems like .shm format, generated by GMSH, has changed!

NB: It is OK with GMSH version <4
The administrator has disabled public write access.

using Gmsh grid in TELEMAC 4 years 9 months ago #35276

Hello, I'm still using PPUTILS and i have a problem with another case already with scipt gmsh2adcirc.py :
C:\opentelemac-mascaret\python27\lib\site-packages\numpy\lib\npyio.py:1361: UserWarning: genfromtxt: Empty input file: "temp_elements"
warnings.warn('genfromtxt: Empty input file: "%s"' % fname)
Traceback (most recent call last):
File "D:\pputils-master\pputils-master\gmsh2adcirc.py", line 113, in <module>
e1 = elements_data[5,:]
IndexError: index 5 is out of bounds for axis 0 with size 0


I have more than 1 000 000 nodes, perhaps it is the problem??

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

using Gmsh grid in TELEMAC 4 years 9 months ago #35277

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

As this script is not a part of Telemac-mascaret system itself, I think you should report the problem as an issue on the github platform of pputils

Nevertheless, I'm not convinced by the limitation to 1 M nodes.

Regards
Christophe
The administrator has disabled public write access.

using Gmsh grid in TELEMAC 4 years 9 months ago #35278

OK, thank you i will do it!
The administrator has disabled public write access.

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