Programming, Science, Python, Mathematics, Towards Data Science.
space.u[0,:]=bottom.value*space.dy+space.u[1,:] #Set boundary conditions for vertical velocity def SetVBoundary(space,left,right,top,bottom): if(left.type=="D"): space.v[:,0]=2*left.value-space.v[:,1] elif(left.type=="N"): space.v[:,0]=-left.value*space.dx+space.v[:,1] if(right.type=="D"):