<div dir="ltr"><div>Such a thing is definitely possible with gmsh. The important thing, just like on stackoverflow, is to show that you have an actual problem and not just ask people to write code for you. Have you looked at the tutorials? In particular, tutorial 10, about mesh field size?<br><br><a href="http://geuz.org/gmsh/doc/texinfo/gmsh.html#t10_002egeo">http://geuz.org/gmsh/doc/texinfo/gmsh.html#t10_002egeo</a><br><br></div>That should get you started.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-04 16:53 GMT+01:00 Rastin Matin <span dir="ltr"><<a href="mailto:rastinmatin@gmail.com" target="_blank">rastinmatin@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi users of Gmsh<br><br>I am trying to generate an adaptive mesh of a cube that has sidelengths running from -1 to 1. The average tetrahedra-sidelength of a sphere with radius 0.5 inside the cube is R1 and the remaining part of the cube has resolution R2<R1. So basically a sphere within a cube, where I can vary the two resolutions.<br><br>Is it possible to generate such a mesh in Gmsh? Any help will be greatly appreciated. Thanks in advance.<br><br>Best,<br>Rastin.<br></div>
<br>_______________________________________________<br>
gmsh mailing list<br>
<a href="mailto:gmsh@geuz.org">gmsh@geuz.org</a><br>
<a href="http://www.geuz.org/mailman/listinfo/gmsh" target="_blank">http://www.geuz.org/mailman/listinfo/gmsh</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">
Oliver Willekens<br>
PhD Student <br>
<a href="https://lcp.elis.ugent.be/" target="_blank"><img src="http://lcp.elis.ugent.be/sites/lcp.elis.ugent.be/files/logo.jpg" alt="LCP group logo" style="float:left;margin-right:20px;margin-top:20px"></a>
<p style="margin-top:20px">
Liquid Crystals & Photonics Group <br>
Sint- Pietersnieuwstraat 41 <br>
9000 Gent <br>
Phone: +32 9 264.89.51
</p>
</div>
</div>