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.

 

Output Images

 

------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------------------
[mesh 1](image/addmesh_amr/addmesh_amr1.gif"><img height="300" width="300" src="https://lanl.github.io/LaGriT/assets/images/addmesh_amr/addmesh_amr1_tn.gif">"" ""](image/addmesh_amr/addmesh_amr1.gif">               [mesh 2](image/addmesh_amr/addmesh_amr2.gif"><img height="300" width="300" src="https://lanl.github.io/LaGriT/assets/images/addmesh_amr/addmesh_amr2_tn.gif">"" ""](image/addmesh_amr/addmesh_amr2.gif">               [combined (view 1)](image/addmesh_amr/addmesh_amr3.gif"><img height="300" width="300" src="https://lanl.github.io/LaGriT/assets/images/addmesh_amr/addmesh_amr3_tn.gif">"" ""
[combined (view 2) ](image/addmesh_amr/addmesh_amr4.gif"><img height="300" width="300" src="https://lanl.github.io/LaGriT/assets/images/addmesh_amr/addmesh_amr4_tn.gif">"" ""](image/addmesh_amr/addmesh_amr4.gif">   [combined (view 3) ](image/addmesh_amr/addmesh_amr5.gif"><img height="300" width="300" src="https://lanl.github.io/LaGriT/assets/images/addmesh_amr/addmesh_amr5_tn.gif">"" ""](image/addmesh_amr/addmesh_amr5.gif">   
------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------------------

 

Input file

*TEST addmesh/amr (lagrit_input_amr)

read gmv input_mesh1.gmv cmo1

*dump/ gmv / out_mesh1.gmv

read gmv input_mesh2.gmv cmo2

*dump/ gmv / out_mesh2.gmv

addmesh amr cmo3 cmo1 cmo2

dump/ gmv / output_amr.gmv