|
[Sponsors] |
Numerical Solution for one dimension linear wave problem |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 4, 2010, 07:27 |
Numerical Solution for one dimension linear wave problem
|
#1 |
New Member
cxcxcx0505
Join Date: May 2010
Posts: 17
Rep Power: 16 |
I am a newbie in CFD.I need to solve the one dimension linear wave problem.I have found some source from wiki here and wikipedia.
http://www.cfd-online.com/Wiki/Linea...Runga-Kutta.29 I need to solve using 6th compaq scheme,1st order upwind scheme,2th maccormack scheme and lax-wendroff scheme.And compare the results of this different schemes.The time derivative needs to be solve using 4th runge-kutta method.Can anybody explain more on how to do the numerical solution?Thanks.And,how to integrate the 4th runge-kutta into the equation? I need more help and resource on how to do it. Last edited by cxcxcx0505; September 6, 2010 at 04:26. Reason: delete |
|
September 5, 2010, 08:33 |
|
#2 |
New Member
cxcxcx0505
Join Date: May 2010
Posts: 17
Rep Power: 16 |
I have completed the numerical solution using maccormack scheme.Still need help for the other methods and on how to integrate the runge-kutta method into the time derivative.
Last edited by cxcxcx0505; September 6, 2010 at 04:26. Reason: delete |
|
September 7, 2010, 08:44 |
|
#3 |
Senior Member
Join Date: Nov 2009
Posts: 411
Rep Power: 20 |
Hello,
have you checked your solution with the exact solution of the wave equation ? Do |
|
September 10, 2010, 05:30 |
|
#4 |
New Member
cxcxcx0505
Join Date: May 2010
Posts: 17
Rep Power: 16 |
hello,Do.Thanks for your advice and support.
I have consulted my professor,the above graph is the exact solution since the cfl number is equal to one. I have solve the equation using lax-wendroff,maccormack,and upwind scheme. Now,I need to solve the wave equation using sixth-order compact scheme and time-integrated by a four-stage runge-kutta method.I really dont have any idea how to do it.Is there anybody know how to do it?I need some materials and guidance.Thanks! |
|
September 10, 2010, 08:36 |
|
#5 |
Senior Member
Join Date: Nov 2009
Posts: 411
Rep Power: 20 |
Basically you need to "split" your problem in two parts:
1. Replace the spatial derivative with a 6th order finite difference formula and move this in the right hand term. You will have now a problem of this form: df/dt=R(x) where R(x) contains your discretized spatial terms. 2. For temporal discretization use any good book of numerical methods, or simply search Google for Runge-Kutta ... Do |
|
September 10, 2010, 08:41 |
|
#6 |
Senior Member
Join Date: Nov 2009
Posts: 411
Rep Power: 20 |
About your professor confirmation that your solution is the "exact one" for CFL=1. This is true only if your implementation if faultless - this is exactly the point of comparing the "exact" analytical solution with the numerical one to prove that your implementation is correct.
From my experience the time spent in comparing a numerical solution with an analytical solution (when you have one) is always rewarded . Do |
|
September 10, 2010, 09:23 |
|
#7 |
New Member
cxcxcx0505
Join Date: May 2010
Posts: 17
Rep Power: 16 |
Thanks !
|
|
September 10, 2010, 23:10 |
|
#8 |
New Member
cxcxcx0505
Join Date: May 2010
Posts: 17
Rep Power: 16 |
when I solve for the runge-kutta equation,I use R(x) as the slope?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with a leapfrog scheme for wave equation | Shiranui | Main CFD Forum | 0 | June 22, 2010 10:19 |
Convergence problem | suthichock | Main CFD Forum | 27 | May 11, 2009 08:05 |
extremely simple problem... can you solve it properly? | Mikhail | Main CFD Forum | 40 | September 9, 1999 10:11 |
Wall functions | Abhijit Tilak | Main CFD Forum | 6 | February 5, 1999 02:16 |
Numerical methods for discontinuous grid interfaces? | Hansong Hang | Main CFD Forum | 12 | September 16, 1998 23:26 |