Skip to content
Snippets Groups Projects
Select Git revision
  • 9ca500f78387ba9ff289b58d0c2683810ef2dae6
  • master default protected
  • dof-renumbering
  • gdemesy-master-patch-30528
  • eval-space-time
  • oscillating_multiharm
  • MH_movement
  • axisqu
  • write_vtu_and_ensight_formats
  • movingband
  • CP_1972_add_vtu_file_writing
  • mortar
  • fast_freq_sweep_Resolution
  • applyresolvent_again
  • marteaua-master-patch-54323
  • patch-1
  • binde-master-patch-08072
  • binde-master-patch-52461
  • BCGSL
  • resolvent
  • TreeElementsOf
  • getdp_3_5_0
  • getdp_3_4_0
  • getdp_3_3_0
  • getdp_3_2_0
  • getdp_3_1_0
  • getdp_3_0_4
  • getdp_3_0_3
  • getdp_3_0_2
  • getdp_3_0_1
  • getdp_3_0_0
  • onelab_mobile_2.1.0
  • getdp_2_11_3 protected
  • getdp_2_11_2 protected
  • getdp_2_11_1 protected
  • getdp_2_11_0 protected
  • getdp_2_10_0 protected
  • getdp_2_9_2 protected
  • getdp_2_9_1 protected
  • getdp_2_9_0 protected
  • getdp_2_8_0 protected
41 results

BF_Volume.cpp

Blame
  • t7.geo 1.26 KiB
    // -----------------------------------------------------------------------------
    //
    //  Gmsh GEO tutorial 7
    //
    //  Background meshes
    //
    // -----------------------------------------------------------------------------
    
    // Mesh sizes can be specified very accurately by providing a background mesh,
    // i.e., a post-processing view that contains the target mesh sizes.
    
    // Merge a list-based post-processing view containing the target mesh sizes:
    Merge "t7_bgmesh.pos";
    
    // If the post-processing view was model-based instead of list-based (i.e. if it
    // was based on an actual mesh), we would need to create a new model to contain
    // the geometry so that meshing it does not destroy the background mesh. It's
    // not necessary here since the view is list-based, but it does no harm:
    NewModel;
    
    // Merge the first tutorial geometry:
    Merge "t1.geo";
    
    // Apply the view as the current background mesh size field:
    Background Mesh View[0];
    
    // In order to compute the mesh sizes from the background mesh only, and
    // disregard any other size constraints, one can set:
    Mesh.MeshSizeExtendFromBoundary = 0;
    Mesh.MeshSizeFromPoints = 0;
    Mesh.MeshSizeFromCurvature = 0;
    
    // See `t10.geo' for additional information: background meshes are actually a
    // particular case of general "mesh size fields".