Structured mesh in gmsh without Extrude function
2 Attachment(s)
Hey everyone,
I have had good luck meshing tetras and prisms with gmsh. However now I am wanting to created a structured hex mesh. Here is what I currently can do. It requires two extrude functions and can only be controlled by the first parameter: ______________________________________ Point(1) = {0,0,0,0.1}; Point(2) = {1,0.2,0,0.1}; Point(3) = {2,0,0,0.1}; Spline(1) = {1,2,3} ; Extrude {0,1,0} { Line{1}; Layers{5}; Recombine; } Extrude {0,0,.1} { Surface{5}; Layers{1}; Recombine; } http://www.cfd-online.com/Forums/att...1&d=1262719081 ______________________________________ Here is what I want to do. This shape requires the mesh to be controlled by two parameters, and allows you to do much much more with it. Is it possible to do this? ______________________________________ Point(1) = {0,0,0,0.1}; Point(2) = {1,0.2,0,0.1}; Point(3) = {2,0,0,0.1}; Spline(1) = {1,2,3} ; Point(4) = {-.5,1,0,0.1}; Point(5) = {1,1.2,0,0.1}; Point(6) = {2.5,1,0,0.1}; Spline(2) = {4,5,6} ; Line(3)={1,4}; Line(4)={3,6}; Line Loop(5) = {1,4,-2,-3} ; Plane Surface(6) = {5} http://www.cfd-online.com/Forums/att...1&d=1262719169 ______________________________________ Thanks for your help! |
Got it to work!
1 Attachment(s)
Persistence is victorious again...
A big thanks to dolfyn.net or I may never have figured it out: Here is my script: Code:
// Kudos to dolfyn for an awesome tutorial |
structured mesh: transfinite surface with more than 6 corners
Hello,
I need to create a mesh in a wind blade for my phd. I want to use hex element with structured mesh. I will get the geometry in a .stp file (see the attach please) so I can not interfere in the geometry. I merge the stp with a scrip (see the attach please) to recombine and transfinite but I have problems with the surface which has more than 5 corners.... the files are in this link https://dl.dropboxusercontent.com/u/...RightBlade.zip Any ideas please? |
All times are GMT -4. The time now is 14:12. |