Making structured mesh (with brick elements) using a .geo file #538
Replies: 3 comments 10 replies
-
Hi, Best, |
Beta Was this translation helpful? Give feedback.
-
Hi Mohammad,
Eg - Suppose you have the following .msh file for a 2D structured grid. $MeshFormat Then the 3D version of this mesh extruded in the 3rd direction by one element should be $MeshFormat Notice that since there were 4 nodes in the original mesh on one face, there are now 8 nodes for the 3D grid where for each node in the 2D mesh there is a corresponding node translated in the 3rd direction which differs in the value of that coordinate. Also notice that the element type has changed from 3(quadrangle) to 5(hexahedron) and that there are 8 nodes mentioned in the rearrangement as opposed to 4. The number of square elements remains the same as the number of hexahedral elements since for a single element in the 3rd direction, for each square there is a corresponding cube. I would prefer the second alternative since all we need to do is work with numbers and it should be quick to automate this in MATLAB. I hope the above helps. Best, |
Beta Was this translation helpful? Give feedback.
-
Hi Mohammad, Best, |
Beta Was this translation helpful? Give feedback.
-
Dear Participants
Are you able to kindly let me know how can I create a structured mesh (with brick elements) in a .geo model file that is generated using "savegeo(G,'DP600_meshed.geo')" function of the GMSH toolbox?
To be mentioned my model consists several grains which are already converted to square shape (from their primary hexagonal form).
Sincerely yours
Mohammad Hasan Joudivand
Beta Was this translation helpful? Give feedback.
All reactions