<div dir="ltr">Thanks a lot for your quick answer Christophe.<div>I hope your relatives and yourself are doing good!</div><div>Nicolas</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 27 avr. 2020 à 16:55, Christophe Geuzaine <<a href="mailto:cgeuzaine@uliege.be">cgeuzaine@uliege.be</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Hello Nicolas,<br>
<br>
> On 27 Apr 2020, at 12:47, Karin&NiKo <<a href="mailto:niko.karin@gmail.com" target="_blank">niko.karin@gmail.com</a>> wrote:<br>
> <br>
> Dear Gmsh gurus, <br>
> <br>
> I would like to assign some size fields depending on some mathematical expressions *and* depending also on  regions. <br>
> To this end, I used the Restrict field but my use seems to be inappropriate. Unfortunately, there are no test or example.<br>
> <br>
<br>
cf. <a href="https://gitlab.onelab.info/gmsh/gmsh/-/blob/master/benchmarks/2d/field_restrict.geo" rel="noreferrer" target="_blank">https://gitlab.onelab.info/gmsh/gmsh/-/blob/master/benchmarks/2d/field_restrict.geo</a><br>
<br>
> Could you please provide me with some help?<br>
> <br>
<br>
Since you restrict all the fields to the volumes only, the 1D and 2D meshes have no mesh size constraint - hence the very coarse mesh boundary mesh.<br>
<br>
Here's your example with sizes on the boundaries as well:<br>
<br>
<br>
<br>
Cheers,<br>
<br>
Christophe<br>
<br>
<br>
<br>
> My example is attached to this email.<br>
> <br>
> Best regards,<br>
> NiKo<br>
> <field.tgz>_______________________________________________<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>
— <br>
Prof. Christophe Geuzaine<br>
University of Liege, Electrical Engineering and Computer Science <br>
<a href="http://www.montefiore.ulg.ac.be/~geuzaine" rel="noreferrer" target="_blank">http://www.montefiore.ulg.ac.be/~geuzaine</a><br>
<br>
<br>
<br>
</blockquote></div>