[Gmsh] Restrict Field

Christophe Geuzaine cgeuzaine at uliege.be
Mon Apr 27 16:55:01 CEST 2020


Hello Nicolas,

> On 27 Apr 2020, at 12:47, Karin&NiKo <niko.karin at 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:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: script_Domaine.geo
Type: application/octet-stream
Size: 2192 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20200427/70e5debc/attachment.geo>
-------------- next part --------------


Cheers,

Christophe



> My example is attached to this email.
> 
> Best regards,
> NiKo
> <field.tgz>_______________________________________________
> gmsh mailing list
> gmsh at 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





More information about the gmsh mailing list