[Gmsh] MathEval and extrude

Christophe Geuzaine cgeuzaine at ulg.ac.be
Tue Jul 9 07:17:49 CEST 2013


On 14 Jun 2013, at 12:03, Jonathan Mc Govern <mcgovej at gmail.com> wrote:

> Hi there,
> 
> I have a tetrahedral mesh I created with extrude, from a triangular base, in a .geo file. At the moment the domain is rectangular.
>  
> Does anyone know if there is a way in GMSH to set the thickness and surface elevation to vary. In this case, the surface elevation to vary sinusoidally as given by a certain function and a constant slope in the thickness as given by a function. 
> 
> I know there is MathEval - I was wondering if / how this can be used with the tetrahedral mesh I created with extrude, so that the thickness and surface elevation vary. 

There's a little used feature in Extrude, that allows you to extrude using a post-processing view.

If the view contains a vector field, the extrusion is done along this field. If it contains a scalar field, the extrusion is done along the mesh normals, scaled by the field.

Here's an example:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sphere_boundary_layer_from_view.geo
Type: application/octet-stream
Size: 1333 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20130709/36ee4f23/attachment.geo>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sphere_boundary_layer_from_view.pos
Type: application/octet-stream
Size: 661016 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20130709/36ee4f23/attachment.pos>
-------------- next part --------------



> Thanks,
> 
> Jonathan
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh

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