Skip to content
Snippets Groups Projects
Select Git revision
  • f2becbcde6e09c2922ea0e3a4f9e50ac65761c92
  • master default protected
  • patch_releases_4_14
  • fix_alphaShapes
  • hierarchical-basis-refactor
  • hierarchical-basis
  • revert-ef4a3a4f
  • overlaps_tags_and_distributed_export
  • overlaps_tags_and_distributed_export_rebased
  • relaying
  • alphashapes
  • steplayer
  • bl
  • pluginMeshQuality
  • fixBugsAmaury
  • new_export_boris
  • oras_vs_osm
  • reassign_partitions
  • distributed_fwi
  • rename-classes
  • fix/fortran-api-example-t4
  • 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

t12.geo

Blame
  • t12.geo 1.27 KiB
    /*********************************************************************
     *
     *  Gmsh tutorial 12
     *
     *  Cross-patch meshing with compounds
     *
     *********************************************************************/
    
    // Compound geometrical entities can be defined to compute a new parametrization
    // of groups of elementary geometrical entities. This parametrization can then
    // be used for remeshing the compound as if it were a single CAD entity.
    
    lc = 0.1;
    
    Point(1) = {0, 0, 0, lc};       Point(2) = {1, 0, 0, lc};
    Point(3) = {1, 1, 0.5, lc};     Point(4) = {0, 1, 0.4, lc};
    Point(5) = {0.3, 0.2, 0, lc};   Point(6) = {0, 0.01, 0.01, lc};
    Point(7) = {0, 0.02, 0.02, lc}; Point(8) = {1, 0.05, 0.02, lc};
    Point(9) = {1, 0.32, 0.02, lc};
    
    Line(1) = {1, 2}; Line(2) = {2, 8}; Line(3) = {8, 9};
    Line(4) = {9, 3}; Line(5) = {3, 4}; Line(6) = {4, 7};
    Line(7) = {7, 6}; Line(8) = {6, 1}; Spline(9) = {7, 5, 9};
    Line(10) = {6, 8};
    
    Curve Loop(11) = {5, 6, 9, 4};     Surface(1) = {11};
    Curve Loop(13) = {9, -3, -10, -7}; Surface(5) = {13};
    Curve Loop(15) = {10, -2, -1, -8}; Surface(10) = {15};
    
    // Treat curves 2, 3 and 4 as a single curve
    Compound Curve{2, 3, 4}; 
    // Idem with curves 6, 7 and 8
    Compound Curve{6, 7, 8}; 
    
    // Treat surfaces 12, 14 and 16 as a single surface
    Compound Surface{1, 5, 10};