Gmsh Layers Command
Hi everyone,
I have started learning gmsh and kinda got stuck at one command. I try to create multiple layers on a particular surface using the command Code:
Layers { { expression-list }, { expression-list } } The code below is taken from a tutorial case, if someone can please explain what those 0.5 and 1 mean and how to define them, it would be great Code:
Extrude {0,0,h} { |
Hi,
Did you check documentation? http://www.geuz.org/gmsh/doc/texinfo...ructured-grids Quote:
|
2 Attachment(s)
Hi,
I did read the manual but I couldnt understand what they exactly mean by the height of the layer because when I used it in my code shown below to mesh a simple box geometry it gives me an error. I have attached the geometry, error generated and the code. Can you Please take a look and let me know what is going wrong. Code:
Point(1) = {0.6, -0.2, 0.1, 1.0}; |
Hi,
I am not quite sure that I have got what you are trying to achieve (i.e. why use extrude instead of just creating straight lines). I did not checked Gmsh sources yet, but I think, the last value in relative heights should be 1 (at least if you put 1 in your case, error disappears). Also see comment in t3.geo before Extrude command. |
1 Attachment(s)
Hi,
I am trying to create a structured mesh for this geometry but i am just not able to do it. Also, I am unable to create a structured mesh for a geometry which has two blocks sitting next to each other..can you please help because im really stuck at this...:( Code:
Point(1) = {0.9, -0.2, -0, 1.0}; |
2 Attachment(s)
Hi,
I was not able to guess what geometry you are trying to mesh (L-shaped channel?). Please find example mesh of two adjacent blocks attached to the message. If you attach just a sketch of the geometry you are trying to mesh, maybe I will be able to help you. |
Hi,
Thank you so much for the example. That really helps. I have a question, for the transfinite algorithm to create structured mesh i.e no rtiangles or tetrahedra is it necessary for the lines being selected have equal number of points distributed? |
Hi,
In fact I do not know exactly but in my meshes I keep number of points on opposite lines equal. Guess if number of points is different recombination algorithm may fail. |
2d Mesh
Hi guys!
What happen if i set Layer >1 and use mesh for 2D simulation in Open Foam,(so set "empty" for the faces that are along 3d dimension)? Have you got any idea? Best Regards |
All times are GMT -4. The time now is 00:27. |