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