<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Try this:<div><div>a = 100 ;</div><div>lc1 = 10 ;</div><div>lc2 = 1 ;</div><div><br></div><div>Point(1) = {0,0,0,lc1};</div><div>Point(2) = {a,0,0,lc1};</div><div><br></div><div>Line(1) = {1,2};</div><div><br></div><div>Extrude {0, a, 0} {</div><div> Line{1}; Layers{a/lc2};</div><div>}</div></div><div><br></div><div>Regards,</div><div>Ruth</div><div><br><div apple-content-edited="true">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--</div><div>Dr. Ir. Ruth V. Sabariego</div><div>University of Liege, Electrical Engineering & Computer Science, </div><div>Applied & Computational Electromagnetics (ACE),</div><div>phone: +32-4-3663737 - fax: +32-4-3662910 - <a href="http://ace.montefiore.ulg.ac.be/">http://ace.montefiore.ulg.ac.be/</a></div><br class="Apple-interchange-newline"><br></div></span></div>
</div>
<br><div><div>On 10 Jan 2012, at 13:48, Martin Meyer wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi,<br><br>I'm pretty new to gmsh, and so far I haven't succeeded in creating a mesh with different element sizes in different spatial directions (for instance a 100m*100m square with average element sizes of 10m in x direction and 1m in y direction).<br>Is this possible, and if so, can you show me how to do that (either script or GUI)?<br><br>Thanks in advance for your thoughts,<br>Martin<br><br>_______________________________________________<br>gmsh mailing list<br><a href="mailto:gmsh@geuz.org">gmsh@geuz.org</a><br>http://www.geuz.org/mailman/listinfo/gmsh<br></div></blockquote></div><br></div></body></html>