Example 4: addmesh / delete

The objective is to create a mesh using the addmesh/delete command by

deleting one mesh from another. Two cubes, one smaller than the other, each having a different grid resolution are combined. The delete option finds the elements of mesh1 that intersect

mesh2 and removes them from mesh1, creating the resultant mesh (mesh3).

 

Images of GMV output


”” “”](image/addmesh_delete/addmesh_mesh1.gif”>[mesh1](image/addmesh_delete/addmesh_mesh1.gif”> ”” “”](image/addmesh_delete/addmesh_mesh2.gif”>[mesh2](image/addmesh_delete/addmesh_mesh2.gif”> ”” “”](image/addmesh_delete/addmesh_delete.gif”>[mesh2 deleted from mesh1](image/addmesh_delete/addmesh_delete.gif”> —————————————————————————————————————————————————————— —————————————————————————————————————————————————————— —————————————————————————————————————————————————————————————-

Input file

read / gmv / input_mesh1.gmv / cmo1

read / gmv / input_mesh2.gmv / cmo2

*

addmesh / delete / cmo3 / cmo1 / cmo2

*

resetpts / itp

dump / gmv / output_delete.gmv / cmo3

cmo/status

cmo/printatt//-all-/minmax

quality

finish