Dear Sirs,<br><br>I am trying to create a mesh of a quarter of a cube. What I need to do is to create a 2D mesh of a surface and then extrude it along the length of the cube edge.<br><br>Tha script I have written is the following.<br>
<br>lc = 0.1;<br>R= 0.5;<br>L = 2.0;<br><br>// ############# POINTS ##############<br>//Base<br>Point(0) = {0, R, -R};<br>Point(1) = {0, -R, -R};<br>Point(2) = {0, -R, R};<br>Point(3) = {0, R, R};<br><br>//############### LINES ##############<br>
//Base`<br>//Constrained face<br>Line (10) = {0,1};<br>Line (20) = {1,2};<br>Line (30) = {2,3};<br>Line (40) = {3,0};<br><br>Physical Line(500) = {10};<br>Physical Line(300) = {20};// <br><br>############# LINE LOOPS ############<br>
Line Loop(1000) = {10,20,30,40}; //creation face<br><br>// ############ SURFACES ############<br><br>Plane Surface(700) = {1000}; //on line loops<br>Physical Surface(400) = {700};<br><br>Transfinite Line{10,20,30,40}=5;<br>
Transfinite Surface { 700 } = {0,1,2,3} ; //on points<br><br>nb_layers=8;<br>out[] = Extrude{0, 0, L}{Surface{700}; Layers{nb_layers}; }; <br>IndexOutlet = out[0];<br><br>////////////////////////////////////////////////////////////////////<br>
<br>I get the following error:<br><br>Meshing surface 1013 (extruded)<br>Error : Uncoherent extruded quadrangle in surface 1013<br>Error : Uncoherent extruded quadrangle in surface 1013<br>Error : Uncoherent extruded quadrangle in surface 1013<br>
Error : Uncoherent extruded quadrangle in surface 1013<br>Error : Uncoherent extruded quadrangle in surface 1013<br><br>...and so on for other extruded surface.<br><br>Any suggestion about what is going wrong? The code is basically copied and pasted from the manual of gmsh so at the moment, I do not know what is going wrong.<br>
<br>I appreciate any suggestion I'll receive.<br><br>Thanks a lot,<br><br>Kind regards,<br><br>Paolo Tricerri<br>