(no title)
scott00 | 2 years ago
There are two numerically painful parts of the problem: the advection term and the oscillation inducing terminal condition (because it has a discontiuous derivative). I like to deal with advection by transforming the equation to an advection free equation. I'm under NDA on the best solution to the oscillatory terminal condition so I can't give that one away unfortunately.
quanto|2 years ago
AFAIK, discontinuous first derivative per se may act as a seed to an oscillation due to its high frequency content that are not captured by any finite resolution algorithm (n.b. Gibbs phenomenon). But it is Crank-Nicolson that characteristically creates these oscillatory problems -- in other words, there are algorithms that can gracefully handle the discontinuity without creating oscillation.
scott00|2 years ago