Python, Simulation, Numerical Analysis, Beginner, Fluid Simulation.
x_vec = numpy.linspace(0, Lx, Nx) dx = x_vec[2] - x_vec[1] # defines dx as the space between 2 points # meshes the y dimension of the domain as being from 0 to Ly and # containing Ny points. The linspace function returns an array of # all the points y_vec = numpy.linspace(0, Ly, Ny) dy = y_vec[2] -