<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span><div><span style="font-size: 12pt;">Dear,</span><br></div><div><span style="font-size: 12pt;">I am a Phd student and I started use GMSH for quiet few months.</span></div><div style="font-size: 12pt;"><div style="font-size: 12pt;"><div id="yiv508236097"><div style="font-size: 12pt;"><div style="font-size: 16px; background-color: transparent;">I want to generate a 3 nodes and 6-nodes triangles on a domain defined by </div><div style="font-size: 16px; background-color: transparent;">X=rsin(u)cos(v); Y=rsin(u)sin(v); Z=rcos(u) with r=3; u in [pi/10;pi/2] and v in [0, pi/2].</div><div style="font-size: 16px; background-color: transparent;"><span>I used Matlab to plot the domain and then got some points to use in GMSH (as below).</span></div><div style="background-color: transparent;"><span style="font-size: 16px;">But
when I want to defined a plane surface, I got the wrong message (</span><span style="background-color: transparent;">Error : Plane surface 24 (0.487277x+-0.454202y+-0.74583z=-1.17328) is not plane!</span><span style="background-color: transparent; font-size: 16px;">).</span></div><div style="background-color: transparent;"><span style="background-color: transparent;">I don't know what to do. Please your help will be very useful for me. </span></div><div style="background-color: transparent; font-size: 16px;"><span style="background-color: transparent;">Thank you in advanced.</span></div><div style="background-color: transparent; font-size: 16px;"><span style="background-color: transparent;"><br></span></div><div style="background-color: transparent; font-size: 16px;"><span style="background-color: transparent;">Here is the gmsh code:</span></div><div style="background-color: transparent;"><span style="font-size: 16px; background-color:
transparent;"> </span><span style="background-color: transparent;">// Gmsh project created on Wed Apr 10 10:37:50 2013</span></div><div style="background-color: transparent;">l=1;</div><div style="background-color: transparent;">Point(1) = {0.9271, 0, 2.8532, l};</div><div style="background-color: transparent;">Point(2) = {3.0000, 0, 2.8532, l};</div><div style="background-color: transparent;">//big quater cirlce</div><div style="background-color: transparent;">Point(3) = {2.9631, 0.4693, 2.7145, l};</div><div style="background-color: transparent;">Point(4) = {2.8532, 0.9271, 2.5330, l};</div><div style="background-color: transparent;">Point(5) = {2.6730, 1.3620, 2.3115, l};</div><div style="background-color: transparent;">Point(6) = {2.4271, 1.7634, 2.0536, l};</div><div style="background-color: transparent;">Point(7) = {2.1213, 2.1213, 1.7634, l};</div><div style="background-color: transparent;">Point(8) = {1.7634, 2.4271, 1.4453, l};</div><div
style="background-color: transparent;">Point(9) = {1.3620, 2.6730, 1.1044, l};</div><div style="background-color: transparent;">Point(10) = {0.9271, 2.8532, 0.7461, l};</div><div style="background-color: transparent;">Point(11) = {0.4693, 2.9631, 0.3760, l};</div><div style="background-color: transparent;">Point(12) = {0.0000, 3.0000, 0.0000, l};</div><div style="background-color: transparent;">Point(13) = {0.0000, 0.9271, 0.0000, l};</div><div style="background-color: transparent;">//small quater cicle</div><div style="background-color: transparent;">Point(14) = {0.9156, 0.1450, 2.7145, l};</div><div style="background-color: transparent;">Point(15) = {0.8817, 0.2865, 2.5330, l};</div><div style="background-color: transparent;">Point(16) = {0.8260, 0.4209, 2.3115, l};</div><div style="background-color: transparent;">Point(17) = {0.7500, 0.5449, 2.0536, l};</div><div style="background-color: transparent;">Point(18) = {0.6555, 0.6555, 1.7634,
l};</div><div style="background-color: transparent;">Point(19) = {0.5449, 0.7500, 1.4453, l};</div><div style="background-color: transparent;">Point(20) = {0.4209, 0.8260, 1.1044, l};</div><div style="background-color: transparent;">Point(21) = {0.2865, 0.8817, 0.7461, l};</div><div style="background-color: transparent;">Point(22) = {0.1450, 0.9156, 0.3760, l};</div><div style="background-color: transparent;"><br></div><div style="background-color: transparent;">Line(1) = {1, 2};</div><div style="background-color: transparent;">Line(2) = {2, 3};</div><div style="background-color: transparent;">Line(3) = {3, 4};</div><div style="background-color: transparent;">Line(4) = {4, 5};</div><div style="background-color: transparent;">Line(5) = {5, 6};</div><div style="background-color: transparent;">Line(6) = {6, 7};</div><div style="background-color: transparent;">Line(7) = {7, 8};</div><div style="background-color: transparent;">Line(8) = {8, 9};</div><div
style="background-color: transparent;">Line(9) = {9, 10};</div><div style="background-color: transparent;">Line(10) = {10, 11};</div><div style="background-color: transparent;">Line(11) = {11, 12};</div><div style="background-color: transparent;">Line(12) = {12, 13};</div><div style="background-color: transparent;">Line(13) = {13, 22};</div><div style="background-color: transparent;">Line(14) = {22, 21};</div><div style="background-color: transparent;">Line(15) = {21, 20};</div><div style="background-color: transparent;">Line(16) = {20, 19};</div><div style="background-color: transparent;">Line(17) = {19, 18};</div><div style="background-color: transparent;">Line(18) = {18, 17};</div><div style="background-color: transparent;">Line(19) = {17, 16};</div><div style="background-color: transparent;">Line(20) = {16, 15};</div><div style="background-color: transparent;">Line(21) = {15, 14};</div><div style="background-color: transparent;">Line(22) = {14,
1};</div><div style="background-color: transparent;">Line Loop(23) = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22};</div><div style="background-color: transparent;"><span style="background-color: transparent;">Plane Surface(24) = {23};</span></div><div style="background-color: transparent;"><br></div><div style="background-color: transparent; font-size: 16px;"><br></div><div style="background-color: transparent; font-size: 16px;">Best regard,</div><div style="font-size: 12pt;"></div><div style="font-size: 12pt;"> </div><div style="font-size: 12pt;">MBEHOU Mohamed<br><br></div><div style="font-family: arial, helvetica, clean, sans-serif; font-size: 13px; background-color: transparent;"><span style="font-weight: bold;">Dpt of Mathematics and Applied Mathematics,</span><br style="font-weight: bold;"><span style="font-weight: bold;">Faculty of Natural and Agriculture Sciences</span><br style="font-weight: bold;"><span
style="font-weight: bold;">University of Pretoria, South Africa</span><br style="font-weight: bold;"><span style="font-weight: bold;">Phone (+27) (0) 7 36 55 04 87</span></div><div style="font-family: arial, helvetica, clean, sans-serif; font-size: 12.727272033691406px; background-color: transparent;"><span style="font-weight: bold;">Botany Building 3-1<br>mbehoumoh@gmail.com/</span>mbehoumoh@uy1.uninet.cm</div><div><br></div></div></div></div></div></span></div><div></div><div> </div><div><br></div></div></body></html>