Example 1: addmesh / add

The objective is to join two meshes to create a third using the addmesh / add command. Two cubes, one smaller than the other, each having a different grid resolution are combined. The add option finds the intersection and refines one mesh to interface with the boundary of the other mesh using cell volume ration criterion.

 

Images of GMV output

  ———————————————————————————————————————————————————- ———————————————————————————————————————————————————- ——————————————————————————————————————————————————- “112” “87”](image/addmesh_add/addmesh_mesh1.gif”>[Input1](image/addmesh_add/addmesh_mesh1.gif”> ”” “”](image/addmesh_add/addmesh_mesh2.gif”>[Input2](image/addmesh_add/addmesh_mesh2.gif”> ”” “”](image/addmesh_add/addmesh_out2.gif”>[Output](image/addmesh_add/addmesh_out2.gif”> ———————————————————————————————————————————————————- ———————————————————————————————————————————————————- ——————————————————————————————————————————————————-

  Input file

*TEST addmesh/add (lagrit_input_add)

read / gmv / input_mesh1.gmv / cmo_mesh1

read / gmv / input_mesh2.gmv / cmo_mesh2

*

addmesh / add / cmo3 / cmo_mesh1 / cmo_mesh2 / 3 / edge

*

resetpts / itp

dump / gmv / output_add.gmv/ cmo3