Skip to content
Snippets Groups Projects
Select Git revision
  • cb68c3a04e7fd3dbf90c27429490ab7e50c31502
  • 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

FAQ

Blame
  • Forked from gmsh / gmsh
    Source project has a limited visibility.
    hybrid_order.py 573 B
    import gmsh
    import sys
    
    gmsh.initialize()
    gmsh.model.occ.addBox(0,0,0,1,1,1)
    gmsh.model.occ.addBox(1,0,0,1,1,1)
    gmsh.model.occ.removeAllDuplicates()
    gmsh.model.occ.synchronize()
    
    gmsh.model.mesh.generate(3)
    
    # Mesh.MeshOnlyVisible can be used to selectively mesh, or in this case set the
    # order, on parts of a model
    
    gmsh.option.setNumber('Mesh.MeshOnlyVisible', 1)
    gmsh.model.setVisibility([(3,2)], 0, recursive=True)
    
    gmsh.model.mesh.setOrder(2) # only on volume 1
    gmsh.model.setVisibility([(3,2)], 1, recursive=True)
    
    if '-nopopup' not in sys.argv:
        gmsh.fltk.run()