Skip to content
Snippets Groups Projects
Select Git revision
  • dc9052c98c9ebf2371c726a419c3a38fb7b920a0
  • master default protected
  • alphashapes
  • quadMeshingTools
  • cygwin_conv_path
  • macos_arm64
  • add-transfiniteautomatic-to-geo
  • patch_releases_4_10
  • HierarchicalHDiv
  • isuruf-master-patch-63355
  • hyperbolic
  • hexdom
  • hxt_update
  • jf
  • 1618-pythonocc-and-gmsh-api-integration
  • octreeSizeField
  • hexbl
  • alignIrregularVertices
  • getEdges
  • patch_releases_4_8
  • isuruf-master-patch-51992
  • 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
  • gmsh_4_8_4
  • gmsh_4_8_3
  • gmsh_4_8_2
  • gmsh_4_8_1
  • gmsh_4_8_0
  • gmsh_4_7_1
  • gmsh_4_7_0
41 results

linearSystemPETSc.cpp

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