[Gmsh] internal boundaries in gmsh

=?windows-1252?Q?Jean-Fran=8D=E7ois_Remacle?= jean-francois.remacle at uclouvain.be
Mon Oct 1 11:18:38 CEST 2007


Christophe Geuzaine a écrit :
> Gergina V Pencheva wrote:
>   
>> Hi,
>>
>> I am trying to generate a simple 2d domain with an internal boundary (a 
>> square with a crack in it). I tried different things but nothing seemed
>> to work. Is it possible at all to do this in GMSH?
>>
>>     
>
> With the current version it's not possible: you need to connect this 
> internal boundary with the exterior boundary.
>
>
>
>   
Indeed it IS possible to do that,

Point(1) = {-0,0.3,0,0.2};
Point(2) = {-0,1.1,0,0.2};
Point(3) = {0.9,1.1,0,0.2};
Point(4) = {0.9,0.3,0,0.2};
Point(5) = {0.3,0.7,0,0.03};
Point(6) = {0.6,0.7,0,0.03};
Line(1) = {1,2};
Line(2) = {2,3};
Line(3) = {3,4};
Line(4) = {4,1};
Line(5) = {5,6};
Line Loop(6) = {3,4,1,2};
Plane Surface(7) = {6};
Line{5} In Surface {7};

The line 5 will be embedded in surface 7 i.e. the 2D mesh generation 
process will
ensure that the line segments are present in the 2D mesh and will be 
classified
(tagged) on line 5.



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