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.

Input

      lagrit_input_add

Images of GMV output

+———————–+———————–+———————–+ <img height=”300” width=”300” src=”https://lanl.github.io/LaGriT/assets/images/addmesh_ad <img height=”300” width=”300” src=”https://lanl.github.io/LaGriT/assets/images/addmesh_ad <img height=”300” width=”300” src=”https://lanl.github.io/LaGriT/assets/images/addmesh_ad d/addmesh_mesh1tn.gi d/addmesh_mesh2_tn.gi d/addmesh_out2_tn.gif f)”112” f)”” )””
“87”](image/a “”](image/a “”](image/a ddmesh_add/addmesh_me ddmesh_add/addmesh_me ddmesh_add/addmesh_ou sh1.gif”>[Input1](imag sh2.gif”>[Input2](imag t2.gif”>[Output](image e/addmesh_add/addmesh e/addmesh_add/addmesh /addmesh_add/addmesh
_mesh1.gif”> _mesh2.gif”> out2.gif”>
+———————–+———————–+———————–+