Example 2: addmesh / amr

The objective is to join two meshes to create a third using the addmesh / amr command.

Two cubes, one smaller than the other, each having a different grid resolution are combined. The amr option finds the intersection and refines one mesh to interface with the boundary of the other mesh using adaptive mesh refinement.

Input
     lagrit_input_amr

 

Output Images

mesh 1

mesh 2

combined (view 1)

combined (view 2)

combined (view 3)