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

gmshFace.cpp

Blame
  • Forked from gmsh / gmsh
    Source project has a limited visibility.
    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;