if __name__ == '__main__': print('VERSION 4.1') # GEOMETRY if menu.build_surface: from geocubitlib import surfaces surfaces.surfaces() if menu.build_volume: from geocubitlib import volumes volumes.volumes() # MESHING if menu.meshing: from geocubitlib import mesh_volume mesh_volume.mesh() # MERGING and EXPORTING if menu.collect: from geocubitlib.exportlib import collect_new try: output = menu.output except: output = 'totalmesh_merged' output = output.upper() # collect_new(menu.cpuxmin, menu.cpuxmax, menu.cpuymin, menu.cpuymax, menu.cpux, menu.cpuy, menu.cubfiles, menu.ckbound_method1, menu.ckbound_method2, menu.merge_tolerance, curverefining=menu.curverefining, outfilename=output, qlog=menu.qlog, export2SPECFEM3D=menu.export2SPECFEM3D,
if __name__ == '__main__': print 'VERSION 4.1' # GEOMETRY if menu.build_surface: from geocubitlib import surfaces surfaces.surfaces() if menu.build_volume: from geocubitlib import volumes volumes.volumes() # MESHING if menu.meshing: from geocubitlib import mesh_volume mesh_volume.mesh() # MERGING and EXPORTING if menu.collect: from geocubitlib.exportlib import collect_new try: output = menu.output except: output = 'totalmesh_merged' output = output.upper() # collect_new(menu.cpuxmin, menu.cpuxmax, menu.cpuymin, menu.cpuymax, menu.cpux, menu.cpuy, menu.cubfiles, menu.ckbound_method1, menu.ckbound_method2, menu.merge_tolerance, curverefining=menu.curverefining, outfilename=output, qlog=menu.qlog, export2SPECFEM3D=menu.export2SPECFEM3D,
#!/usr/bin/env python import cubit try: cubit.init([""]) except: pass cfg='fullpath_myparameterfile.cfg' o='fullpath_specfem3d_meshfiles_outputdir' o1='fullpath_cubit_meshfiles_outputdir' from geocubitlib import volumes, mesh_volume, exportlib volumes.volumes(cfg) mesh_volume.mesh(cfg) exportlib.collect(outdir=o1) #exportlib.e2SEM(outdir=o,listblock=[4],listflag=[-1]) exportlib.e2SEM(outdir=o)
#!/usr/bin/env python import cubit try: cubit.init([""]) except: pass cfg = './tomographic_model//tomographic_model.cfg' o = './tomographic_model/specfem3d_mesh_files' o1 = './tomographic_model/cubit_mesh_files' from geocubitlib import volumes, mesh_volume, exportlib volumes.volumes(cfg) mesh_volume.mesh(cfg) exportlib.collect(outdir=o1) exportlib.e2SEM(outdir=o, listblock=[4], listflag=[-1])