Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Is there a way to create mesh fast

Is there a way to create mesh fast 4 years 5 months ago #36142

  • Omarseleem
  • Omarseleem's Avatar
Hi,

I am performing 2D TELEMAC model for an urban area. I have a 1x1 m resolution DEM. Thus, I would like to have the mesh triangle side length 1m.
I applied this on an area 1x1 km and it took time but worked.
Now, I am working on a more powerful computer and increased the simulation area. The number of nodes is 8840419 but it takes a too long time to generate the mesh ( more than two days until now and it only reached 63%). The Blue Kenue is only using a few amounts of the available RAM, CPU,.. (for example, it uses only 6 GB from 294 available GB). I would like to ask if there is a way to make it faster, or is it another way to generate mesh faster.

Thanks in advance
Best regards.
Attachments:
The administrator has disabled public write access.

Is there a way to create mesh fast 4 years 5 months ago #36143

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

if you want to generate a regular triangular mesh based on a DEM, you can use the triangulation option in Blue Kenue: File -> New -> Triangulation.

This should be much faster.

Hope this helps,
Clemens
The administrator has disabled public write access.

Is there a way to create mesh fast 4 years 5 months ago #36173

  • Omarseleem
  • Omarseleem's Avatar
Hi Clemens,
Thank you for your reply.
I tried to do it but it only creates one or two triangles. Is there a pdf or tutorial that I can get more information about it.

Best regards.
Omar
The administrator has disabled public write access.

Is there a way to create mesh fast 4 years 5 months ago #36146

  • Serrer
  • Serrer's Avatar
  • OFFLINE
  • Moderator
  • Posts: 720
  • Thank you received: 304
Try...

Select the DEM in the workspace and use File->Save As...
Choose t3s as the FileType.

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

Is there a way to create mesh fast 4 years 5 months ago #36172

  • Omarseleem
  • Omarseleem's Avatar
I import the DEM as a ArcShapefile. Thus, it is not possible to save it as t3s File type
The administrator has disabled public write access.

Is there a way to create mesh fast 4 years 5 months ago #36175

  • Omarseleem
  • Omarseleem's Avatar
Hi,

I waited for three days for Blue Kneue to create the mesh and the result is as attached. Does anyone have an explanation? recommendations?

Best regards.
Omar
Attachments:
The administrator has disabled public write access.

Is there a way to create mesh fast 4 years 5 months ago #36176

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
It seems your are is regular.
Do you have buildings in it?

If no, I would say it will be probably easier and faster to create the mesh by a python script. You could create a grid with 1m x 1m size and split the square in 2 triangles...
Christophe
The administrator has disabled public write access.

Is there a way to create mesh fast 4 years 5 months ago #36177

  • Omarseleem
  • Omarseleem's Avatar
Hi,
Thank you for your response.
Yes, it is regular. I have buildings and I only define the buildings with a higher roughness to allow some water to pass through it. Can you recommend a script or should I write a script?

Best regards.
Omar
The administrator has disabled public write access.

Is there a way to create mesh fast 4 years 5 months ago #36178

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
I don't have a known script in mind...
But with python and numpy, it's not so hard to write a small script which create the nodes (on a regular basis) and the element...
You could then directly write the selafin file (potentially with the python api of hermes)
Otherwise, you could probably more easily generate the T3S file which could be read by BK to generate the selafin file. T3S file format is available in the BK documentation

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

Is there a way to create mesh fast 4 years 5 months ago #36181

  • konsonaut
  • konsonaut's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 413
  • Thank you received: 144
Ok there we are. Your input is not a regular grid or DEM as per definition but a shape file. Totally different starting point for us in order to give you some useful answers. And no wonder that the mesh generator fries...

Maybe the easiest and most convenient way, using Blue Kenue:
1) Create a regular grid which covers your domain and corresponding cell sizes: -> File -> New -> Regular Grid
2) Interpolate Shape Points to the grid: File -> New -> 2D Interpolation. In your case as interpolation method you can use "Nearest Neighbor". Or maybe before you have to save the shape file as xyz point file or other Blue Kenue format.
3) Save the regular grid as 2D T3 Scalar Mesh as Martin already said.

Hope this works,
Clemens
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: pham

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