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

OCCFace.cpp

Blame
  • Forked from gmsh / gmsh
    Source project has a limited visibility.
    fullsplit.script 1.45 KiB
    Include "param.geo";
    Merge "part.msh";
    N_DOM=NUM_SLICES;
    
    vol[] = {};         idx_vol[] = {};
    sur_scat[] = {};    idx_sur_scat[] = {};
    sur_inf[] = {};     idx_sur_inf[] = {};
    sigma_left[] = {};  idx_sigma_left[] = {};
    sigma_right[] = {}; idx_sigma_right[] = {};
    For i In {1:N_DOM}
      idx_vol[] += #vol[];                 vol[] += Physical Volume{4000 + i};
      idx_sur_scat[] += #sur_scat[];       sur_scat[] += Physical Surface{1000 + i};
      idx_sur_inf[] += #sur_inf[];         sur_inf[] += Physical Surface{2000 + i};
      idx_sigma_left[] += #sigma_left[];   sigma_left[] += Physical Surface{3000 + 1000 * (i-2)};
      idx_sigma_right[] += #sigma_right[]; sigma_right[] += Physical Surface{3000 + 1000 * (i-1)};
    EndFor
    idx_vol[] += #vol[];
    idx_sur_scat[] += #sur_scat[];
    idx_sur_inf[] += #sur_inf[];
    idx_sigma_left[] += #sigma_left[];
    idx_sigma_right[] += #sigma_right[];
    
    Mesh.Binary = 1;
    Geometry.OrientedPhysicals = 0; // partitions have negative tags!!
    
    For i In {1:N_DOM}
      idom = i-1;
      Delete Physicals;
      Physical Volume(4000+i) = vol[{idx_vol[i-1]:idx_vol[i]-1}];
      Physical Surface(1000+i) = sur_scat[{idx_sur_scat[i-1]:idx_sur_scat[i]-1:1}];
      Physical Surface(2000+i) = sur_inf[{idx_sur_inf[i-1]:idx_sur_inf[i]-1:1}];
      Physical Surface(-(4000 + 1000 * (i-2))) = sigma_left[{idx_sigma_left[i-1]:idx_sigma_left[i]-1:1}];
      Physical Surface(4000 + 1000 * (i-1)) = sigma_right[{idx_sigma_right[i-1]:idx_sigma_right[i]-1:1}];
      Save Sprintf("falcon_mshcut%g.msh", idom);
    EndFor