Skip to content
Snippets Groups Projects
Select Git revision
  • 5606de8f4a6ff84c683c2bc9a125a8cef02053aa
  • master default protected
  • patches-4.14
  • steplayer
  • bl
  • pluginMeshQuality
  • fixBugsAmaury
  • hierarchical-basis
  • alphashapes
  • relaying
  • new_export_boris
  • oras_vs_osm
  • reassign_partitions
  • distributed_fwi
  • rename-classes
  • fix/fortran-api-example-t4
  • robust_partitions
  • reducing_files
  • fix_overlaps
  • 3115-issue-fix
  • 3023-Fillet2D-Update
  • 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

MEdge.h

Blame
  • t17.geo 911 B
    // -----------------------------------------------------------------------------
    //
    //  Gmsh GEO tutorial 17
    //
    //  Anisotropic background mesh
    //
    // -----------------------------------------------------------------------------
    
    // As seen in `t7.geo', mesh sizes can be specified very accurately by providing
    // a background mesh, i.e., a post-processing view that contains the target mesh
    // sizes.
    
    // Here, the background mesh is represented as a metric tensor field defined on
    // a square. One should use bamg as 2d mesh generator to enable anisotropic
    // meshes in 2D.
    
    SetFactory("OpenCASCADE");
    
    // Create a square
    Rectangle(1) = {-2, -2, 0, 4, 4};
    
    // Merge a post-processing view containing the target anisotropic mesh sizes
    Merge "t17_bgmesh.pos";
    
    // Apply the view as the current background mesh
    Background Mesh View[0];
    
    // Use bamg
    Mesh.SmoothRatio = 3;
    Mesh.AnisoMax = 1000;
    Mesh.Algorithm = 7;