Skip to content
Snippets Groups Projects
Select Git revision
  • a279a84395eccdef351c70abc8ab7331c1724308
  • master default protected
  • release/1.0
3 results

mmdg2.geo

Blame
  • mmdg2.geo 619 B
    //characteristic length
    lc = 5e-2;
    
    //domain corners, domain = [0,1] x [0,1]
    Point(1) = {0, 0, 0, lc};
    Point(2) = {1, 0, 0, lc};
    Point(3) = {1, 1, 0, lc};
    Point(4) = {0, 1, 0, lc};
    
    //points for interface x = 0.5
    Point(5) = {0.5, 0, 0, lc};
    Point(6) = {0.5, 1, 0, lc};
    Point(7) = {0.5, 0.5, 0, lc};
    
    //domain outline
    Line(1) = {1, 2};
    Line(2) = {2, 3};
    Line(3) = {3, 4};
    Line(4) = {4, 1};
    
    //interface outline
    Line(6) = {5, 7};
    Line(7) = {7, 6};
    
    //curve loops
    Curve Loop(1) = {1:4}; //domain boundary
    
    //surfaces
    Plane Surface(1) = {1};
    Physical Surface(1) = {1};
    
    Curve{6:7} In Surface{1};
    Physical Curve(2) = {6:7};