UNV mesh conversion from Salome using ElmerGrid

Mesh generators, CAD programs, and other tools
Post Reply
skaal
Posts: 6
Joined: 20 Nov 2023, 18:41
Antispam: Yes

UNV mesh conversion from Salome using ElmerGrid

Post by skaal »

I try to build a very simple test case using the provided mesh. The unv is created using salome.
After conversion using ElmerGrid bz the command

Code: Select all

ElmerGrid 8 2 data/Box_scaled.unv -autoclean
I do not get one body with six boundaries as expected. But instead six bodies with one boundary which does only contain the edges. The resulting mesh.boundary file on my end, for instance, looks like this:

Code: Select all

1 1 1 6 202 3 4
2 1 1 11 202 4 2
3 1 2 7 202 2 1
4 1 2 9 202 1 3
5 1 3 5 202 8 7
6 1 4 12 202 6 8
7 1 4 8 202 5 6
8 1 3 10 202 7 5
9 1 5 10 202 3 7
10 1 6 11 202 8 4
11 1 7 9 202 5 1
12 1 8 12 202 2 6
From other cases, where I was using the same pipeline for mesh creation, I would get 8 columns in this file instead of 7.
I am pretty sure that this is not a bug but that I am just missing a crucial step here. But I simply do not see what I am doing wrong.
Does someone have an idea?
Attachments
Box_scaled.unv
(4.93 KiB) Downloaded 16 times
kevinarden
Posts: 2316
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: UNV mesh conversion from Salome using ElmerGrid

Post by kevinarden »

Because you only have 2D elements, no 3D elements. The 2D elements are grouped into 6 faces. If only 2D then each group of faces become a body, and the edges are retained as boundaries. IF you wanted 3D elements, then the faces would be boundaries, but your mesh generation failed to produce any volume elements.
mesh.PNG
(196.95 KiB) Not downloaded yet
skaal
Posts: 6
Joined: 20 Nov 2023, 18:41
Antispam: Yes

Re: UNV mesh conversion from Salome using ElmerGrid

Post by skaal »

You are absolutely right. I mistakenly created a 2D mesh. With a 3D mesh everything works as expected.

Thanks for spotting this!
Post Reply