def rd(self, line): """Read memory block""" args = parse_argstring(self.rd, line) d = self.shell.user_ns['d'] dump(d, args.address, args.size, fast=args.fast, check_fast=args.check_fast, addr_space=args.space)
def print_dump(tree, options): import report, paths, dump xp = paths.frameset_dict[options.path_name] pages = report.frameset_content(tree, xp.results(tree)) dump = dump.dumpers[options.output_format] print dump(pages, options)
steps_loop = len(steps_list) # Define the temperature temp = '0.45' for q in range(0,strain_loop): strain = strain_list[q] # Define an array to store the MSD values, initially 0 MSD = np.zeros(num_parts,dtype=float) print len(MSD) # Read in the dump files d = dump('Shear_BLJ_glass_TEMP'+temp+'_STRAIN'+strain+'_DIRxy_EQUIL.dump') df = dump('Shear_BLJ_glass_TEMP'+temp+'_STRAIN'+strain+'_DIRxy.REMAPPED.dump') # Assign names to columns d.map(1,"id",2,"type",3,"xu",4,"yu",5,"zu",6,"vx",7,"vy",8,"vz",9,"ix",10,"iy",11,"iz",12,"x",13,"y",14,"z") df.map(1,"idf",2,"typef",3,"xuf",4,"yuf",5,"zuf",6,"vxf",7,"vyf",8,"vzf",9,"ixf",10,"iyf",11,"izf",12,"xf",13,"yf",14,"zf") # Now we need to compute the mean square displacement by finding the particle data at each snapshot! # Isolate the initial positions of all the particles to be used later! d.tselect.one(50000) d.sort() t = d.time() int_x,int_y = d.vecs(t[-1],"x","y")