Page 1 of 1

ElmerGrid generating wrong geometry

Posted: 21 Dec 2022, 20:17
by envog
Hi All

I am trying to define a 2-dimensional geometry in ElmerGrid as described in detail here http://cfd.mace.manchester.ac.uk/ercoft ... es:case010 and generate a computational mesh for Elmer. The commands I am using can be found in the attached file. The issue I am facing is that the bottom boundary is not flat but curved and it actually follows the curvature of the top boundary surface. I have tried to define the bottom surface using a linear interpolation between two points but it did not work out.
Do you have any suggestion?

Thanks
Evangelos

Re: ElmerGrid generating wrong geometry

Posted: 22 Dec 2022, 01:06
by Rich_B
Hello,

The Elmergrid manual includes an example of a sinusoidal mapping. The attached file is taken from the manual, with a slight modification to have a flat lower boundary. I haven't tried to modify the upper boundary, that is something that will take some work.

Rich.
tube-sine.png
tube-sine.png (79.98 KiB) Viewed 490 times

Re: ElmerGrid generating wrong geometry

Posted: 22 Dec 2022, 13:27
by kevinarden
ElmerGrid for mesh definition is very confusing for me. It is a great translator, but with powerful easy to use mesh generators, like gmsh and Salome. I would never go to ElmerGrid to generate a mesh. Attached is a gmsh file to generate the mesh.
wall.geo
(1.02 KiB) Downloaded 49 times
gmsh.png
gmsh.png (20.12 KiB) Viewed 482 times

Re: ElmerGrid generating wrong geometry

Posted: 22 Dec 2022, 16:02
by Rich_B
I agree with Kevin, you are much better off using gmsh for your case.

Rich.

Re: ElmerGrid generating wrong geometry

Posted: 26 Dec 2022, 00:52
by raback
Hi, I also agree. Do not use ElmerGrid native format except for simple rectangular forms. Many tests favor ElmerGrid format since the tests are very simple usually and also the code always comes with Elmer installation. There are a few mapping possibilities to go from rectangular to curved but I think you should avoid those because of their obscurity. -Peter