*--* LAGriT Example Input file *--* Carl Gable *--* gable -at- lanl -dot- gov *--* *--*---------------------------------------------------- *--* Create a mesh with two materials. One material *--* is a sphere and the second material is a box outside *--* the sphere. This example shows how the connect algorithm *--* adds points at the material interface to break *--* multi-material edges. *--*---------------------------------------------------- * * Define the resolution of the point distribution. define / NX / 30 define / NY / 20 define / NZ / 10 * Create the mesh object data structure. cmo / create / cmotet / / / tet * Define surfaces surface / sbbox / reflect / box / -1. -1. -1. / 1. 1. 1. surface / ssphere / intrface / sphere / 0. 0. 0. 0.5 * Define regions region / rin / le ssphere region / rout / le sbbox and gt ssphere * Define material regions mregion / mrin / lt ssphere mregion / mrout / le sbbox and gt ssphere * Create a grid of points createpts / xyz / NX NY NZ / -1. -1. -1. / 1. 1. 1. * Assign imt (integer material type) values to nodes setpts * Connect the mesh connect * Assign itetclr (integer material type) values to elements. settets * * Output mesh * dump / gmv / connect.gmv / cmotet finish