<div dir="ltr"><div>Here is your file. Try with this.<br><br><br></div>Deepak<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 16 May 2016 at 23:37, Deepak Garg <span dir="ltr"><<a href="mailto:deepak.garg@ingv.it" target="_blank">deepak.garg@ingv.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi Ali<br><br></div>In place of Plane Surface(6) = {5};<br><br></div>you should write Ruled Surface(6) = {5};<br><br></div>Best<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">Deepak<br></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 16 May 2016 at 20:17, CHARCHI AGHDAM, ALI <span dir="ltr"><<a href="mailto:alic@email.sc.edu" target="_blank">alic@email.sc.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hi Felix,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Thanks for your reply. I made the changes you suggested but I am still getting some errors:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Info : Meshing surface 14 (transfinite)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">.Error : Surface 14 cannot be meshed using the transfinite algo 1 != 19<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Info : Meshing surface 14 (extruded)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Info : Meshing surface 18 (transfinite)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Info : Meshing surface 21 (transfinite)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">.Error : Surface 21 cannot be meshed using the transfinite algo 19 != 1<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">My new geo file is:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">n1=10;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">n2=20;<u></u><u></u></span></p><span>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Point(1) = {0.000000000000e+00 , 0.000000000000e+00 , 0.000000000000e+00 , 1e-5 };
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Point(2) = {1.998096443164e-05 , 0.000000000000e+00 , -8.723877473067e-07 , 1e-5 };
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Point(3) = {1.198857865898e-04 , 0.000000000000e+00 , -5.234326483840e-06 , 1e-5 };
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Point(4) = {0.000000000000e+00 , 1.400000000000e-04 , 0.000000000000e+00 , 1e-5 };
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Point(5) = {0.000000000000e+00 , 8.000000000000e-05 , 0.000000000000e+00 , 1e-5 };<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Rotate {{0, 1, 0}, {0, 0, 0}, -0.04363323129985824} {<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> Point{5, 4, 2, 3};<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">}<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Line(1) = {5, 4};<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Line(2) = {2, 3};<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Ellipse(3) = {5, 1, 4, 2};<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Ellipse(4) = {4, 1, 4, 3};<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Line Loop(5) = {3, 2, -4, -1};<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Plane Surface(6) = {5};<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Extrude {{0, 1, 0},{0,0,0},0.08726646259971647}{
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> Surface{6};<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> Layers{1};<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> Recombine;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">}<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Surface Loop(24) = {6, 14, 18, 21, 23};<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Volume(25) = {24};<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
</span><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Transfinite Line {1,2} = n1;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Transfinite Line {3,4} = n2;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Transfinite Surface {6} = {};<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Transfinite Surface {21} = {3,4,13};<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Transfinite Surface {14} = {2,9,5};<u></u><u></u></span></p><span>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Transfinite Surface {18} = {};<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Transfinite Surface {23} = {};<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Recombine Surface {6,21,14,18,23};<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
</span><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Transfinite Volume{25} = {2,3,4,5,9,13,4,5};<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Physical Surface("front") = {6};<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Physical Surface("back") = {23};<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Physical Surface("right") = {21};<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Physical Surface("down") = {18};<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Physical Surface("electrode") = {14};<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Note that 14 and 21 surfaces are bounded by 3 lines so, I have specified the corners.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Ali<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Felix Salazar [mailto:<a href="mailto:felix.a.salazar@gmail.com" target="_blank">felix.a.salazar@gmail.com</a>]
<br>
<b>Sent:</b> Monday, May 16, 2016 12:09 PM<br>
<b>To:</b> CHARCHI AGHDAM, ALI <<a href="mailto:alic@email.sc.edu" target="_blank">alic@email.sc.edu</a>><br>
<b>Cc:</b> <a href="mailto:gmsh@onelab.info" target="_blank">gmsh@onelab.info</a><br>
<b>Subject:</b> Re: [Gmsh] structured mesh in a wedge<u></u><u></u></span></p><div><div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">Hello,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">All your surfaces should be Transfinite. And if they are bounded by 4 lines, you don't need to specify the corners. You might try:<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Transfinite Surface {6} = {};<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Transfinite Surface {21} = {};<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Transfinite Surface {14} = {};<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Transfinite Surface {18} = {};<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Transfinite Surface {23} = {};<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Recombine Surface {6,21,14,18,23};<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Although, you might just need to increase the number of layers in your extrusion. This PC does not have GMSH installed so I can't check your GEO file<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><br clear="all">
<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">-------------------------<br>
<b>Félix Salazar</b><br>
<a href="mailto:felix.a.salazar@gmail.com" target="_blank">felix.a.salazar@gmail.com</a></span><u></u><u></u></p>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">-------------------------</span><u></u><u></u></p>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Thu, May 12, 2016 at 4:50 PM, CHARCHI AGHDAM, ALI <<a href="mailto:alic@email.sc.edu" target="_blank">alic@email.sc.edu</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">Hi everyone,<u></u><u></u></p>
<p class="MsoNormal">I would like to mesh a wedge using gmsh. I have already been able to mesh all the surfaces but the 3D mesh module fails to extrude the 2D mesh and generate 3D mesh. I am getting
the following error:<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Incompatible surface 14 in transfinite volume 25.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">And here is my geo file:<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">n1=20;<u></u><u></u></p>
<p class="MsoNormal">n2=40;<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Point(1) = {0.000000000000e+00 , 0.000000000000e+00 , 0.000000000000e+00 , 1e-5 };
<u></u><u></u></p>
<p class="MsoNormal">Point(2) = {1.998096443164e-05 , 0.000000000000e+00 , -8.723877473067e-07 , 1e-5 };
<u></u><u></u></p>
<p class="MsoNormal">Point(3) = {1.198857865898e-04 , 0.000000000000e+00 , -5.234326483840e-06 , 1e-5 };
<u></u><u></u></p>
<p class="MsoNormal">Point(4) = {0.000000000000e+00 , 1.400000000000e-04 , 0.000000000000e+00 , 1e-5 };
<u></u><u></u></p>
<p class="MsoNormal">Point(5) = {0.000000000000e+00 , 8.000000000000e-05 , 0.000000000000e+00 , 1e-5 };<u></u><u></u></p>
<p class="MsoNormal">Rotate {{0, 1, 0}, {0, 0, 0}, -0.04363323129985824} {<u></u><u></u></p>
<p class="MsoNormal"> Point{5, 4, 2, 3};<u></u><u></u></p>
<p class="MsoNormal">}<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Line(1) = {5, 4};<u></u><u></u></p>
<p class="MsoNormal">Line(2) = {2, 3};<u></u><u></u></p>
<p class="MsoNormal">Ellipse(3) = {5, 1, 4, 2};<u></u><u></u></p>
<p class="MsoNormal">Ellipse(4) = {4, 1, 4, 3};<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Line Loop(5) = {3, 2, -4, -1};<u></u><u></u></p>
<p class="MsoNormal">Plane Surface(6) = {5};<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Extrude {{0, 1, 0},{0,0,0},0.08726646259971647}{
<u></u><u></u></p>
<p class="MsoNormal"> Surface{6};<u></u><u></u></p>
<p class="MsoNormal"> Layers{1};<u></u><u></u></p>
<p class="MsoNormal"> Recombine;<u></u><u></u></p>
<p class="MsoNormal">}<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Surface Loop(24) = {6, 14, 18, 21, 23};<u></u><u></u></p>
<p class="MsoNormal">Volume(25) = {24};<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Transfinite Line {1,2} = n1 Using Progression 1;<u></u><u></u></p>
<p class="MsoNormal">Transfinite Line {3,4} = n2 Using Progression 1;<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Transfinite Surface {6} = {2,3,4,5};<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Recombine Surface {6,21,14,18,23};<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Transfinite Volume{25} = {2,3,4,5,9,13,4,5};<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Would you please help?<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Best regards,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><b><span style="color:#1f4e79">Ali Charchi</span></b><u></u><u></u></p>
<p class="MsoNormal"><b><span style="color:#1f4e79"> </span></b><u></u><u></u></p>
<p class="MsoNormal"><b><span style="color:#1f4e79">PhD Student of Mechanical Engineering</span></b><u></u><u></u></p>
<p class="MsoNormal"><b><span style="color:#1f4e79">University of South Carolina</span></b><u></u><u></u></p>
<p class="MsoNormal"><b><span style="color:#1f4e79">Columbia, SC</span></b><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
gmsh mailing list<br>
<a href="mailto:gmsh@onelab.info" target="_blank">gmsh@onelab.info</a><br>
<a href="http://onelab.info/mailman/listinfo/gmsh" target="_blank">http://onelab.info/mailman/listinfo/gmsh</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>
<br>_______________________________________________<br>
gmsh mailing list<br>
<a href="mailto:gmsh@onelab.info" target="_blank">gmsh@onelab.info</a><br>
<a href="http://onelab.info/mailman/listinfo/gmsh" rel="noreferrer" target="_blank">http://onelab.info/mailman/listinfo/gmsh</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>