Programming, Science, Python, Mathematics, Towards Data Science.
while(t<time): #Print time left sys.stdout.write("\rSimulation time left: {0:.2f}".format(time-t)) sys.stdout.flush() #Set the time-step SetTimeStep(CFL_number,cavity,water) timestep=cavity.dt #Set boundary conditions SetUBoundary(cavity,noslip,noslip,flow,noslip)