While I had a course a couple years ago concerning the implementation of linear time marching methods, I'm pretty rusty and am getting stumped here. I'm attempting to implement the BDF2 time marching method in order to convect Lagrangian points in space and time. What I have are the locations of these points and the velocities at which the points need to be convected (which is really just linear advection), but the underlying methodology that governs the velocity at each point is said to be unstable for explicit TMMs and BDF2 was specifically recommended as a higher order method to ensure stability after the first time step.
So, the equation that I'm trying to integrate (where r is a position vector, t is time, and V is velocity):
$$ \frac{\delta \vec{r}}{\delta t}=\vec{V} $$
The RHS of this expression is highly nonlinear, although it is analytical and I have discrete values of V readily available.
So, the query: how do I implement a time marching method (specifically BDF2) for this problem? The formulation that I've found is as follows (where n denotes the time step level): $$ \vec{r}_{n+1}=\frac{4}{3}\vec{r}_n-\frac{1}{3}\vec{r}_{n-1}+\frac{2}{3}(\Delta t)\frac{\delta \vec{r}_{n+1}}{\delta t} $$
The kicker for me is discretizing the last term (i.e., the derivative of r with respect to t). My thought is that I could just make a 2nd order Taylor approximation for the derivative using a predicted value the future time step (using the Euler explicit method) and then the actual values at present and prior time steps and use that. Would that be a correct methodology?
\partialinstead of\deltain your LaTeX. Perhaps you should cite the textbook/source you are using. Might be easier. – parsiad Apr 27 '17 at 18:23r is a little more straightforward. It's a position vector that only depends on the points of interest. It varies in time and space.
Does that answer your query? I'm not sure how to express that mathematically.
– Marius Apr 28 '17 at 00:27