Going from 1-D to 2-D arrays
Extending the solver from one to two dimensions carries two major implications: In other words, whereas so far we’ve been solving for a single velocity u(:) and water height h(:), now we’ll be solving for velocities in x and y axes (u(:,:) and v(:,:), respectively), and for water height h(:,:). This is illustrated in figure 8.6. Figure 8.6 Comparison of data arrays for water height […]