|
[Sponsors] |
upwind finite volume order of accuracy less than one ?? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 28, 2015, 15:49 |
upwind finite volume order of accuracy less than one ??
|
#1 |
New Member
youheng
Join Date: May 2015
Location: sc
Posts: 3
Rep Power: 11 |
Hi, I am working to check the order of accuracy of upwind finite volume method for 1D Burgers' equation: partial (u) / partial (t) + partial (0.5 u^2) / partial (x) = 0.
I look at the post at : http://www.cfd-online.com/Forums/mai...-accuracy.html , and follow the steps but finding the order of accuracy is less than one. For time stepping, I used Euler forward, with 1000 element for domain [-1, 1], initial condition u = 1 for x < 0, u = 0.5 for x >0. If I used Courant # =1.0, dt = 1.0e(-3), it gave L2 Norm of error 5.4046e(-3); with Courant #=0.5, dt = 5e(-4), it gave L2 Norm of error 7.53269e(-3). So small time step will give less accuracy? and the order is log( 5.4046/7.53269) / log(2) =(-0.479), should it be 1? I also found that it is most accurate with Courant = 1.0, and become less accurate when Courant # become less than 1. For space accuracy, the post above suggest using different mesh size while keep constant dt/h, that is constant Courant. I wonder why, should it keep constant dt? If keep consant dt/dx, 100 elements give L2 norm of error = 2.37773e(-2), 200 elements give L2 norm of error 1.68432e(-2), order = log(2.37773/1.6843)/log(2) = 0.4974, less than one? If keep constant dt = 0.0025, 100 elements give L2 norm of error = 2.8048e(-2), 200 elements give L2 norm of error 1.68432e(-2), order = log(2.8048/1.6843)/log(2) = 0.7357, still less than one? So my question is that should upwind finite volume method be first order accurate in space, Euler forward first order accurate in time? Is there any difference is order of accuracy and rate of convergence ? Thanks. |
|
May 28, 2015, 17:02 |
|
#2 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73 |
your question is not very clear to me....
1) what about the exact solution you are using to compute the errors? 2) what about the discretization you are using? 3) have you first performed the analysis on a linear equation? |
|
May 29, 2015, 17:43 |
|
#4 | ||
New Member
youheng
Join Date: May 2015
Location: sc
Posts: 3
Rep Power: 11 |
Quote:
Quote:
1) As I used initial condition u = 1 for x < 0, u = 0.5 for x >0, the exact solution is u = 1 for x < time * (1 + 0.5)/2, u = 0.5 for x >time * (1 + 0.5)/2. 2) I used cell-centered finite volume method. 3) I tried solving the linear convection problem: partial (C) / partial (t) + partial (u C) / partial (x) = 0, where u = const. As suggested by sbaffini, I didn't use discontinuous initial condition this time, instead I used sine wave. My finding are follows: For linear convection with smooth initial condition, the rate of spatial convergence is close to theoretical value 1.0 when Courant number equals unity. The numerical solution is most accurate when Courant # = 1.0, the smaller Courant #, the less accuracy is the solution. For nonlinear Burgers' equation, I still can not get rate of spatial convergence of 1.0. Looks like sbaffini is right. |
|||
May 29, 2015, 18:03 |
|
#5 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73 |
1) linear equation with first-order upwind is solved exactly at c=1, did you checked that? could you post the convergence curve at c=0.5?
2) Burgers equations with piecewice initial data defines the so-called Riemann problem, you cannot check the accuracy order this way. Have a look to the LeVeque book on FV for hyperbolic equations, you will find this issue explained quite well. Furthermore, you cannot you the differential form for non regular solutions |
|
May 29, 2015, 18:05 |
|
#6 |
Senior Member
|
On a uniform grid, a courant equal to 1 should give you the exact solution for an explicit euler-1st order upwind scheme, at least in the linear case. Maybe there is some problem in your scheme. Can you post it here?
|
|
May 31, 2015, 22:51 |
|
#7 | ||
New Member
youheng
Join Date: May 2015
Location: sc
Posts: 3
Rep Power: 11 |
Quote:
Quote:
1) For Cr = 0.5, the error and order of accuracy are given below, N = 100, L2 = 1.02472e-1, N = 200, L2 = 6.56238e-2, 0.6429, N = 400, L2 = 3.95699e-2, 0.7298, N = 800, L2 = 2.31858e-2, 0.7712, N = 1600, L2 = 1.34426e-2, 0.7864, N = 3200, L2 = 7.78293e-3, 0.7884. It's 0.6429-0.7884, still less than 1.0 though increasing with dx decreasing. Is it correct? 2) For discontinuous solution, on Page 156 of LeVeque, it says: "This indicates the 1-norm of the error decays only like (dx)^{1/2} even though the method is formally first-order accurate based on the local truncation error, which is valid only for smooth solutions". Does this mean the order of accuracy analysis is valid only for smooth solutions. Also, on Page 150 Section 8.5 Order of Accuracy isn't Everything, it says "higher-order terms may in fact be larger than the dominant term". Does it mean we should choose numerical method with smaller error even it's lower order? Thanks again. |
|||
June 1, 2015, 05:02 |
|
#8 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73 |
the order of accuracy can be estimated only on smooth solutions
|
|
Tags |
order of accuracy, rate of convergence, upwind finite volume |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
multiphase turbulance case floating error | harsha_kulkarni | OpenFOAM Running, Solving & CFD | 3 | February 18, 2016 06:06 |
discretization error and order of accuracy | Phil_ | OpenFOAM Running, Solving & CFD | 0 | November 19, 2014 08:52 |
influence of convex or concave control volume in finite volume discretization | openfoammaofnepo | Main CFD Forum | 1 | March 24, 2014 03:13 |
Error with higher order (2nd, GAMMA) upwind scheme | quarkz | Main CFD Forum | 0 | September 24, 2012 04:02 |
effect of order of temporal accuracy | zonexo | Main CFD Forum | 4 | August 14, 2006 01:36 |