[Gmsh] Fatal Error in GMSH

Christophe Geuzaine geuzaine at acm.caltech.edu
Sun Apr 4 03:48:11 CEST 2004


Natali wrote:

> 
> HI
>  
> I need to create a volume.
> I have surface and a vector to extrude my surface.
>  
> But I have not found how to get numbers of surfaces created after
> "Extrude Surface" command. And I have not found how to create Volume
> and get it number via this command.
> I don't use "Extrude Surface {....} {Layers....}" because structured
> does not suit me.
>  
> So I decided take newreg before and after "Extrude Surface" command to
> create Volume.
> But while generation 3D mesh I have get Fatal Error
>  
> Can you help me with this problem?
>  

The volume should be defined as a list of surface loops.

Here is a correct version of your example, created with the graphical
user interface (the GUI is usually the best method to define volumes):

Point(1)={30,19,0,6.28012738724303};
Point(2)={25,50,0,3.83722523715525};
Point(3)={75,45,0,3.29046120722414};
Point(4)={75,14,0,6.2};
Point(7)={44.0909090909091,48.0909090909091,0,2.9221891767415};
Point(8)={54,58,0,2.9221891767415};
Point(9)={58.6293436293436,46.6370656370656,0,2.9221891767415};
Line(1)={1,2};
Line(2)={2,7};
Line(3)={3,4};
Line(4)={4,1};
Line(5)={7,9};
Line(7)={7,8};
Line(8)={9,3};
Line(9)={8,9};
Line Loop(11)={5,-9,-7};Plane Surface(12)={11};
Physical Surface (1) = {12};
Line Loop(13)={1,2,5,8,3,4};Plane Surface(14)={13};
Physical Surface (2) = {14};
Mesh.Smoothing = 10;
Extrude Surface {14, {0,0,40}};
Surface Loop(47) = {46,25,14,29,33,37,41,45};
Volume(48) = {47};
Physical Volume(1)={48};


Christophe

-- 
Christophe Geuzaine
Applied and Computational Mathematics, Caltech
geuzaine at acm.caltech.edu - http://geuz.org