Workflow development for Tinerator This work explores setting facesets based on boundary line attributes. Input Data: Create surfaces and extract boundary line. Stack into prism mesh. This example includes an Exodus Mesh with 3 facesets set for bottom, top, and sides. 1) Create triangulated surface and extract boundary line. lagrit < mk_surf_wave.lgi cp outx3dgen mk_surf_wave.out.txt -rw-r--r-- 1 tamiller sft 9.7K Nov 6 08:26 bndry_line.gmv -rw-r--r-- 1 tamiller sft 32K Nov 6 08:26 bndry_line.inp -rw-r--r-- 1 tamiller sft 19K Nov 6 08:26 surf_wave.gmv -rw-r--r-- 1 tamiller sft 54K Nov 6 08:26 surf_wave.inp 2) Create surfaces and stack into 3D prism mesh. Note the .lagrit file will maintain the CMO name and all attributes. lagrit < stack.lgi cp outx3dgen stack.out.txt -rw-r--r-- 1 tamiller sft 189K Nov 6 08:30 stack.gmv -rw-r--r-- 1 tamiller sft 241K Nov 6 08:30 stack.inp -rw-r--r-- 1 tamiller sft 283K Nov 6 08:30 stack.lagrit 3) Add attributes and values to the boundary lines. lagrit < color_bndry_lines.lgi color_bndry_lines.out.txt -rw-r--r-- 1 tamiller sft 11K Nov 6 08:38 bndry_line_colors.gmv -rw-r--r-- 1 tamiller sft 33K Nov 6 08:38 bndry_line_colors.inp 4) Optional to Check the mesh and default facesets set for top, bottom, and sides. Paraview and GMV can view faceset surfaces. lagrit < write_exodus_fs3.lgi cp outx3dgen write_exodus_fs3.out.txt -rw-r--r-- 1 tamiller sft 194K Nov 6 08:49 mesh_exo.gmv -rw-r--r-- 1 tamiller sft 66K Nov 6 08:49 mesh_fs3.exo 5) Write Exodus Mesh with 8 facesets defined by boundary line attributes. Both Paraview and GMV can display faceset surfaces. lagrit < write_exodus.lgi cp outx3dgen write_exodus.out.txt -rw-r--r-- 1 tamiller sft 69732 Nov 6 10:04 mesh_fs8.exo -rw-r--r-- 1 tamiller sft 203420 Nov 6 10:04 mesh_exo.gmv ------------------------------------------------------------------------------ Input boundary lines coincident with mesh boundary: itetclr for all side faces and lay1_out flagging top layer outlet faces cmo/printatt/CMO_BNDRY/itetclr minmax ATTRIBUTE NAME MIN MAX DIFFERENCE LENGTH itetclr 1 5 4 62 lay1_out 0 1 1 62 Input mesh is stacked mesh: surface name layer color type llcorner zic surf_bottom.inp 1 1 -1 1) 0.000000E+00 surf_bot_slope_under.inp 2 2 0 201) 3.000000E+00 surf_bot_slope.inp 3 3 0 401) 4.000000E+00 refine 4 3 2 601) 5.500000E+00 surf_top_slope_above.inp 5 3 -2 801) 7.000000E+00 Elements per layer: 336 stacked total: 1680 Nodes per layer: 200 stacked total: 1000 stacked mesh attributes: There are 3 materials with 4 layers The top material has 2 layers itetclr 1 3 2 1344 layertyp -2 2 4 1000 nlayers 5 5 0 1 nnperlayer 200 200 0 1 neperlayer 336 336 0 1 extracted surfmesh attributes are the faces colored by their source elements: itetclr 1 7 6 920 itetclr0 0 0 0 920 itetclr1 1 3 2 920 idnode0 1 1000 999 586 idelem0 0 0 0 920 idelem1 1 1344 1343 920 facecol 1 3 2 920 idface0 0 0 0 920 idface1 1 5 4 920 layertyp -2 2 4 586 ncon50 0 0 0 1 nconbnd 0 0 0 1 id_side 1 7 6 920 Output Exodus Mesh: Title: LAGRIT TO EXODUSII number of dimension: 3 number of nodes: 1000 number of elements: 1344 number of edges: 0 number of edge blocks: 0 number of element blocks: 3 EXPSS loop: 1 Side Set tag: 1 Faces: 336 2 Side Set tag: 2 Faces: 336 3 Side Set tag: 3 Faces: 72 4 Side Set tag: 4 Faces: 18 5 Side Set tag: 5 Faces: 96 6 Side Set tag: 6 Faces: 28 7 Side Set tag: 7 Faces: 28 8 Side Set tag: 8 Faces: 6 ------------------------------------------ Done ExodusII Side Sets Total: 8 ------------------------------------------------------------------------------ LOCAL WORK DIRECTORIES: /project/meshing/demos_simple/stack_fs_from_bndry Example Input Data are created in /input_data surfmesh colors based on boundary line itetclr are in /interp_from_bndry_elem surfmesh colors based on boundary line itetclr and lay1_out attribute /interp_layer1_outlet NOT USED: surfmesh colors based on boundary nodes imt /interp_from_bndry_nodes See also work in /scratch/sft/tam/IDEAS/East_River/ https://meshing.lanl.gov/proj/IDEAS/lower_triangle/index.html