![]() These integration functions return updated particle coordinates based on a velocity function, f the initial coordinates, pts and the time step, dt.These functions would be faster if they operated on all coordinates simultaneously instead of looping however, that would require you to join the (N-by-2) coordinates into a single 1D array so that the integration routines will run properly.Are you solving an initial value or boundary value Ordinary Differential Equation (ODE)? So first of all, given this question is about general differential equations, the answer can vary depending on your problem.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |