[Gmsh] problem with Matheval field

Giorgos Kourakos giorgk at gmail.com
Mon Jul 16 17:12:59 CEST 2012


Hi I'm trying to mesh a simple geometry with lines and points.
I want the mesh to be refined around the points and the lines up to a
specified distance

To do so, I define an Attractor field and a MathEval field with the
following relation "20*exp(-(F1/400)^2)" (radial basis function), where 20
is the minimum desired length near the attractor and 400 is the distance
from the attractor  that the relation vanishes to zero.

I'm attaching also the *.geo file
The zoom_out.png  image shows that the distribution is somewhat as
expected, however when I zoom (zoom_in.png) I see that just around the
point attractors the elements have larger size compared to the desired
lengths.

I have tried to change the points desired length, which partly solves my
problem (see zoom_in_1.png) but this refines unnecessarily the mesh in the
area between the points and line (see zoom_out_1.png plot)

I would appreciate any thoughts and suggestion

Kind regards

Giorgos

-- 
Giorgos Kourakos, Phd
Land Air and Water Resources
229 Veihmayer Hall
University of California Davis

Γιώργος Κουράκος
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20120716/c6cf09ab/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: large_examp.geo
Type: application/octet-stream
Size: 656 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20120716/c6cf09ab/attachment.geo>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zoom_out.png
Type: image/png
Size: 40995 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20120716/c6cf09ab/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zoom_in.png
Type: image/png
Size: 60842 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20120716/c6cf09ab/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zoom_in_1.png
Type: image/png
Size: 70870 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20120716/c6cf09ab/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zoom_out_1.png
Type: image/png
Size: 52490 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20120716/c6cf09ab/attachment-0003.png>