Beruflich Dokumente
Kultur Dokumente
*
* Gmsh tutorial 1
*
* Variables, elementary entities (points, lines, surfaces), physical
* entities (points, lines, surfaces)
*
*********************************************************************/
lc = 1e-2;
Line(1) = {1,2} ;
Line(2) = {3,2} ;
Line(3) = {3,4} ;
Line(4) = {4,1} ;
// We can then define the surface as a list of line loops (only one
// here, since there are no holes--see `t4.geo'):
// We can for example group the points 1 and 2 into the physical
// entity 1:
MyLine = 99;
Physical Line(MyLine) = {1,2,4} ;
// All the line elements created during the meshing of lines 1, 2 and
// 4 will be saved in the output mesh file with the region number 99;
// and all the triangular elements resulting from the discretization
// of surface 6 will be given an automatic region number (100,
// associated with the label "My fancy surface label").