OpenFOAM - 2nd order of discretization?
When FVM discretization is considered in OpenFOAM manuals, it is stated that linear variation of variable within CV represents 2nd order of accuracy:
f(x) = f(x0) + (x-x0) * (grad f(x))|x=x0
f(x) = f(x0) represents zero order of accuracy
f(x) = f(x0) + (x-x0) * (grad f(x))|x=x0 is of the 1st order of accuracy
and so on.
The same way we get first order temporal derivative:
dt(f)/dt = (f(t_n) - f(t_n-1)) / delta t
using only first two terms in Taylor series, and is necessary to use third term
to get second order approximation:
dt(f)/dt = (3/2*f(t_n) - 2*f(t_n-1) - 1/2*f(t_n-2)) / delta t
So what does actually mean "2nd order of accuracy" then?
Thank you for your attention! Waiting for your comments.
|All times are GMT -4. The time now is 06:35.|