Skip to content
Snippets Groups Projects
Select Git revision
  • b7707a412508438c806be9c08fff681144f7fe55
  • master default protected
  • patches-4.14
  • overlaps_tags_and_distributed_export
  • overlaps_tags_and_distributed_export_rebased
  • relaying
  • alphashapes
  • steplayer
  • bl
  • pluginMeshQuality
  • fixBugsAmaury
  • hierarchical-basis
  • new_export_boris
  • oras_vs_osm
  • reassign_partitions
  • distributed_fwi
  • rename-classes
  • fix/fortran-api-example-t4
  • robust_partitions
  • reducing_files
  • fix_overlaps
  • gmsh_4_14_0
  • gmsh_4_13_1
  • gmsh_4_13_0
  • gmsh_4_12_2
  • gmsh_4_12_1
  • gmsh_4_12_0
  • gmsh_4_11_1
  • gmsh_4_11_0
  • gmsh_4_10_5
  • gmsh_4_10_4
  • gmsh_4_10_3
  • gmsh_4_10_2
  • gmsh_4_10_1
  • gmsh_4_10_0
  • gmsh_4_9_5
  • gmsh_4_9_4
  • gmsh_4_9_3
  • gmsh_4_9_2
  • gmsh_4_9_1
  • gmsh_4_9_0
41 results

hybrid_order.py

Blame
  • 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()