Hello Nicolas,

> On 27 Apr 2020, at 12:47, Karin&NiKo <niko.ka...@gmail.com> wrote:
> 
> Dear Gmsh gurus, 
> 
> I would like to assign some size fields depending on some mathematical 
> expressions *and* depending also on  regions. 
> To this end, I used the Restrict field but my use seems to be inappropriate. 
> Unfortunately, there are no test or example.
> 

cf. 
https://gitlab.onelab.info/gmsh/gmsh/-/blob/master/benchmarks/2d/field_restrict.geo

> Could you please provide me with some help?
> 

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.

Here's your example with sizes on the boundaries as well:

Attachment: script_Domaine.geo
Description: Binary data


Cheers,

Christophe



> My example is attached to this email.
> 
> Best regards,
> NiKo
> <field.tgz>_______________________________________________
> gmsh mailing list
> gmsh@onelab.info
> http://onelab.info/mailman/listinfo/gmsh

— 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine



_______________________________________________
gmsh mailing list
gmsh@onelab.info
http://onelab.info/mailman/listinfo/gmsh

Reply via email to