Programming, Science, Python, Mathematics, Towards Data Science.
save the velocities and pressures inside the boundaries to new variables, which can then be written to text files. def SetCentrePUV(space): space.p_c=space.p[1:-1,1:-1] space.u_c=space.u[1:-1,1:-1] space.v_c=space.v[1:-1,1:-1] Finally, we define two functions for I/O purposes — MakeResultDirectory