Skip to content
Snippets Groups Projects
Select Git revision
  • 5fe2d05a331913a5e2eb434a397082d35235e606
  • master default
  • cgnsUnstructured
  • partitioning
  • poppler
  • HighOrderBLCurving
  • gmsh_3_0_4
  • gmsh_3_0_3
  • gmsh_3_0_2
  • gmsh_3_0_1
  • gmsh_3_0_0
  • gmsh_2_16_0
  • gmsh_2_15_0
  • gmsh_2_14_1
  • gmsh_2_14_0
  • gmsh_2_13_2
  • gmsh_2_13_1
  • gmsh_2_12_0
  • gmsh_2_11_0
  • gmsh_2_10_1
  • gmsh_2_10_0
  • gmsh_2_9_3
  • gmsh_2_9_2
  • gmsh_2_9_1
  • gmsh_2_9_0
  • gmsh_2_8_6
26 results

GEdgeLoop.cpp

Blame
  • Forked from gmsh / gmsh
    Source project has a limited visibility.
    t1.jl 829 B
    # See the corresponding Python tutorial for detailed comments.
    
    import gmsh
    
    gmsh.initialize()
    
    gmsh.option.setNumber("General.Terminal", 1)
    
    gmsh.model.add("t1")
    
    lc = 1e-2
    gmsh.model.geo.addPoint(0, 0, 0, lc, 1)
    gmsh.model.geo.addPoint(.1, 0,  0, lc, 2)
    gmsh.model.geo.addPoint(.1, .3, 0, lc, 3)
    
    p4 = gmsh.model.geo.addPoint(0, .3, 0, lc)
    
    gmsh.model.geo.addLine(1, 2, 1)
    gmsh.model.geo.addLine(3, 2, 2)
    gmsh.model.geo.addLine(3, p4, 3)
    gmsh.model.geo.addLine(4, 1, p4)
    
    gmsh.model.geo.addCurveLoop([4, 1, -2, 3], 1)
    gmsh.model.geo.addPlaneSurface([1], 1)
    
    gmsh.model.addPhysicalGroup(0, [1, 2], 1)
    gmsh.model.addPhysicalGroup(1, [1, 2], 2)
    gmsh.model.addPhysicalGroup(2, [1], 6)
    
    gmsh.model.setPhysicalName(2, 6, "My surface")
    
    gmsh.model.geo.synchronize()
    
    gmsh.model.mesh.generate(2)
    
    gmsh.write("t1.msh")
    
    gmsh.finalize()