CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

2nd order TVD scheme

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By Wenjun
  • 1 Post By cfdnewbie

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 13, 2013, 09:03
Smile 2nd order TVD scheme
  #1
New Member
 
Join Date: Mar 2013
Posts: 14
Rep Power: 13
Wenjun is on a distinguished road
Hi, I am learning the second order TVD scheme which is listed in the attachment, and I want to verify the order of the scheme by the linear advection equation u_t+u_x=0, periodic BC, initial condition u0=sin(pi*x), x in [0, 2]. But the order I got is about 1.3, and the wave shape becomes flat at valley and peak. Why is the order less than 2 ? My code is in the attachment too. Thank you very much for your kind reply.TVD scheme.png

order.doc

solution.pdf
Baka BOi likes this.
Wenjun is offline   Reply With Quote

Old   March 13, 2013, 17:01
Default
  #2
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20
cfdnewbie is on a distinguished road
looks like your TVD limiter works as expected and cuts off your peaks when a grid point coincides with the maxima/minina.
Your initial projection looks ok, you should approach second order when refining the mesh. Order of convergence is a concept of h to zero, from your plot it looks like h is 2/6....
Wenjun likes this.
cfdnewbie is offline   Reply With Quote

Old   March 13, 2013, 21:45
Default
  #3
New Member
 
Join Date: Mar 2013
Posts: 14
Rep Power: 13
Wenjun is on a distinguished road
Thank you for your consideration. But even if I choose the step h=2/6,2/12..., the order is almost the same as before. I don't know why. I have already checked my code for several times.
Wenjun is offline   Reply With Quote

Old   March 13, 2013, 21:55
Default
  #4
New Member
 
Join Date: Mar 2013
Posts: 14
Rep Power: 13
Wenjun is on a distinguished road
I use the L1 error for order calculation, it confirms the second order accuracy. However, L_\infty does not work. Normally the two different measure both can confirm the order. Do you have some idea about this problem?
Wenjun is offline   Reply With Quote

Old   March 14, 2013, 03:06
Default
  #5
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20
cfdnewbie is on a distinguished road
The L infty will always be dominated by the limiter at the maxima, so since you are doing a first order approximation at the maxima (see your plot, the maxima are approximated by constants, not linears), the L infty will not give you second order. The L1 and L2 will converge to second order, since the influence of the "bad region" will decrease with increasing h!
cfdnewbie is offline   Reply With Quote

Old   March 14, 2013, 03:24
Default
  #6
New Member
 
kian
Join Date: Feb 2013
Posts: 14
Rep Power: 13
k_tafazoli is on a distinguished road
Hi, I've got a fortran code for solving flow over an airfoil with the method of first order van leer flux vector splitting . I have to change it to second order . Do you know how I can do that ? can you help me with it ?
k_tafazoli is offline   Reply With Quote

Old   March 14, 2013, 03:25
Default
  #7
New Member
 
Join Date: Mar 2013
Posts: 14
Rep Power: 13
Wenjun is on a distinguished road
Yes, I understand now. I tried L1, it works. Thank you very much. It is my pleasure to meet you in the forum.
Wenjun is offline   Reply With Quote

Old   March 14, 2013, 03:51
Default
  #8
New Member
 
Join Date: Mar 2013
Posts: 14
Rep Power: 13
Wenjun is on a distinguished road
Sorry, I only code by Matlab. I am a fresh guy in CFD and my problem is rather simple.
Wenjun is offline   Reply With Quote

Old   March 14, 2013, 13:31
Default
  #9
New Member
 
kian
Join Date: Feb 2013
Posts: 14
Rep Power: 13
k_tafazoli is on a distinguished road
Thanks anyway
k_tafazoli is offline   Reply With Quote

Reply

Tags
tvd; second order; shape

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Solution scheme: 1st, 2nd order, etc in momentum eqs nottern Main CFD Forum 1 May 11, 2012 01:30
2nd order boundary conditions for 2nd order discretization? quarkz Main CFD Forum 30 December 26, 2011 08:12
OpenFOAM - 2nd order of discretization? makaveli_lcf OpenFOAM Running, Solving & CFD 0 November 12, 2009 08:15
2nd order discretization Pavel O FLUENT 0 September 28, 2009 10:15
Unstable flow simpleFoam 2nd order Valle OpenFOAM 0 August 26, 2009 09:12


All times are GMT -4. The time now is 22:03.