options[DBOPT_YLABEL] = 'Y' options[DBOPT_XUNITS] = 'a' options[DBOPT_YUNITS] = 'b' options[DBOPT_HI_OFFSET] = hi_offset[i] mesh_name = 'mesh' s.put_quadmesh(mesh_name, axes, coordtype=DB_COLLINEAR, optlist=options) mesh_names.append((file_name + ':' + mesh_name, DB_COLLINEAR)) options = dict() options[DBOPT_UNITS] = 'unit' var_name = 'variable' s.put_quadvar1(var_name, mesh_name, data, data.shape, centering=DB_NODECENT, optlist=options) var_names.append((file_name + ':' + var_name, DBObjectType.DB_QUADVAR)) options = dict() options[DBOPT_CYCLE] = 99 options[DBOPT_DTIME] = 0.99 options[DBOPT_XLABEL] = 'xx' options[DBOPT_YLABEL] = 'yy' options[DBOPT_XUNITS] = 'a' options[DBOPT_YUNITS] = 'b' s = SiloFile('example.silo', mode=DB_CLOBBER, filetype=DB_HDF5,
options[DBOPT_DTIME] = 0.99 options[DBOPT_XLABEL] = 'X' options[DBOPT_YLABEL] = 'Y' options[DBOPT_XUNITS] = 'a' options[DBOPT_YUNITS] = 'b' options[DBOPT_HI_OFFSET] = hi_offset[i] mesh_name = 'mesh' s.put_quadmesh(mesh_name, axes, coordtype=DB_COLLINEAR, optlist=options) mesh_names.append((file_name+':'+mesh_name, DB_COLLINEAR)) options = dict() options[DBOPT_UNITS] = 'unit' var_name = 'variable' s.put_quadvar1(var_name, mesh_name, data, data.shape, centering=DB_NODECENT, optlist=options) var_names.append((file_name+':'+var_name, DBObjectType.DB_QUADVAR)) options = dict() options[DBOPT_CYCLE] = 99 options[DBOPT_DTIME] = 0.99 options[DBOPT_XLABEL] = 'xx' options[DBOPT_YLABEL] = 'yy' options[DBOPT_XUNITS] = 'a' options[DBOPT_YUNITS] = 'b' s = SiloFile('example.silo', mode=DB_CLOBBER, filetype=DB_HDF5, target=DB_LOCAL, fileinfo='Example Metadata.') s.put_multimesh('mesh', mesh_names, optlist=options) s.put_multivar('scalar', var_names, optlist=options)