Most common ODE solver
It's my understanding that the method of lines is quite commonly used in CFD. What is the most common ODE solver used with this approach? For example, LSODA, VODE, or simply 4th order Runge-Kutta?
|
Quote:
from my experience, RK4 is high up on the list! |
It also depends on solved equations. If a problem is stiff, implicit numerical methods are more suitable for that task. For non-stiff problems Dorman-Prince method is the first shot integrator in many numerical solvers.
|
Quote:
But if you plan to use it to solve Navier-Stokes equations in an explicit way, RK4 is quite expensive in CPU time and storage. A special RK3 method has been specifically designed to lower that cost. |
Dormand-Prince method is linked to RK method familly and seems to be more expensive than RK4. check this link for a gpl subroutine using this method.
http://www.unige.ch/~hairer/prog/nonstiff/dopri5.f RK4 can be coded with 20 lines !!! |
All times are GMT -4. The time now is 03:55. |