Programming, Science, Python, Mathematics, Towards Data Science.
according to given iteration filename="PUV{0}.txt".format(iteration) filepath=os.path.join(dir_path,filename) #Load text file as numpy array arr=np.loadtxt(filepath,delimiter="\t") rows,cols=arr.shape #Define empty arrays for pressure and velocities p_p=np.zeros((rowpts,colpts))