Saturday, July 26, 2014

MOL vs Finite Difference



During a recent hallway conversation with my esteemed colleague Dr. Grigoriev, we were discussing the Method of Lines and he had posed the question of why it was referred to as the MOL and not the Finite Difference method.

Numerical solution of any differential equation (ordinary or partial) requires marching one step at a time, given the initial conditions at time t=0. The basic principle behind this marching goes back to the fundamental principle of the limit of a function. Given a function f(x), the derivative of the function can be represented as
 



The smaller the value of h, the more accurate is the derivative function. This principle of the limit, represented typically as the Taylor’s series expansion, is the “discretized” version of the ODE. Of course, “discretization” is a misnomer for an ODE since there is only one independent variable.

In the case of PDE’s, there exists the spatial dependence in addition to a time variable. The discretization thus has to be performed in both the spatial and the time domains. Once discretized separately as time and spatial domains, the independent variable becomes just one. The PDE has thus been converted into an ODE. This process of “replacement of the spatial derivatives with ODE’s” is referred to as the Method of Lines (ref: Hamdi et al).

So, how does one achieve this conversion from PDE to ODE? That is where the finite difference method comes in handy. The finite difference is thus the tool that discretizes the spatial domain, while the process of performing this change is the MOL.

Stated yet another way, the finite difference method is used to convert the 2nd order partial equation by using the following equality,  
 
followed by the Method of Lines, which uses this knowledge to replace the spatial derivatives with the ODE’s, i.e.,
 

No comments:

Post a Comment