Example 5: addmesh / intersect

The objective is to create a point set that are the nodes in mesh1 that intersect elements of mesh2. Two cubes defined by mesh1 and mesh2 are read. The perimeter of mesh2 lies within that of mesh1. The addmesh / intersect command is used to determine the nodes in mesh1 that intersect elements of mesh2.

Input

    lagrit_input_inter Images of GMV output


[mesh1](image/addmesh_intersect/addmesh_mesh1.gif”> [mesh2](image/addmesh_intersect/addmesh_mesh2.gif”>“122” [mesh3](image/addmesh_intersect/add_inter.gif”>“151” “93”](image/addmesh_intersect/addmesh_mesh1.gif”> “102”](image/addmesh_intersect/addmesh_mesh2.gif”> “107”](image/addmesh_intersect/add_inter.gif”>

     

     

     

     

     

     

     

        Nodes of mesh1(red) that intersect elements of mesh2 —————————————————————————————— —————————————————————————————— ——————————————————————————————

Input File

read / gmv / input_mesh1.gmv / cmo1

read / gmv / input_mesh2.gmv / cmo2

*

addmesh / intersect / pset_overlap / cmo1 / cmo2

cmo/setatt/cmo1/imt/1 0 0/1

cmo/setatt/cmo1/imt/pset get pset_overlap/2

dump/gmv/output_inter.gmv/cmo1

cmo/status

cmo/printatt//-all-/minmax

quality

finish