CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Most common ODE solver (https://www.cfd-online.com/Forums/main/96872-most-common-ode-solver.html)

Nereus February 3, 2012 10:02

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?

cfdnewbie February 3, 2012 10:12

Quote:

Originally Posted by Nereus (Post 342615)
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?


from my experience, RK4 is high up on the list!

Sixkillers February 3, 2012 15:11

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.

leflix February 3, 2012 18:56

Quote:

Originally Posted by cfdnewbie (Post 342619)
from my experience, RK4 is high up on the list!

Yes I agree with cfdnewbie. RK4 is known to be the most accurate method (if you exclude RK5, RK6 etc....)
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.

leflix February 3, 2012 19:05

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.