*--* ex_pyramid *--* Header Begin *--* LAGriT Example Input file * Carl Gable * gable -at- lanl -dot- gov * * *--* Build a hex mesh and a tet mesh and then glue the two *--* together with pyramid elements in the transition volume. *--* *--*---------------------------------------------------- *--* Header End *--* ex_pyramid *--* * * Initialize a mesh object * cmo / create / cmo_hex / / / hex * * Select the mesh object (this is not needed since cmo_hex * is the active mesh object) * cmo / select / cmo_hex * * Create a set of points with hex connectivity * createpts/brick/xyz/5,5,5/0.,0.,0./1.,1.,1./1,1,1 * * Set the itetclr, imt and itp values * cmo / setatt / cmo_hex / itetclr / 1 0 0 / 1 cmo / setatt / cmo_hex / imt / 1 0 0 / 1 resetpts / itp * * Create a tet mesh object from the hex mesh object * hextotet / 5 / cmo_tet / cmo_hex * * Move the tet grid so that the xmin face will align with the * xmax face of the hex grid. * cmo / select / cmo_tet trans / 1 0 0 / 0. 0. 0. / 1. 0. 0. * * Use the addmesh/pyramid command to stitch together the two grids. * addmesh / pyramid / cmo_add / cmo_tet / cmo_hex * * Output the mesh. * dump / gmv / hex_tet_hybrid.gmv / cmo_add * finish