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

Numerical Solution for one dimension linear wave problem

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By cxcxcx0505

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 4, 2010, 07:27
Default Numerical Solution for one dimension linear wave problem
  #1
New Member
 
cxcxcx0505
Join Date: May 2010
Posts: 17
Rep Power: 16
cxcxcx0505 is on a distinguished road
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.
Attached Images
File Type: jpg 1.jpg (14.7 KB, 24 views)
File Type: jpg compact.jpg (33.2 KB, 21 views)
File Type: jpg upwind scheme.JPG (58.4 KB, 23 views)
File Type: jpg MacCormack.JPG (73.2 KB, 15 views)
File Type: jpg Lax–Wendroff method.JPG (56.2 KB, 16 views)
hodcode likes this.

Last edited by cxcxcx0505; September 6, 2010 at 04:26. Reason: delete
cxcxcx0505 is offline   Reply With Quote

Old   September 5, 2010, 08:33
Default
  #2
New Member
 
cxcxcx0505
Join Date: May 2010
Posts: 17
Rep Power: 16
cxcxcx0505 is on a distinguished road
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.
Attached Images
File Type: jpg print1.JPG (56.4 KB, 31 views)
File Type: jpg print2.JPG (78.2 KB, 21 views)

Last edited by cxcxcx0505; September 6, 2010 at 04:26. Reason: delete
cxcxcx0505 is offline   Reply With Quote

Old   September 7, 2010, 08:44
Default
  #3
Senior Member
 
Join Date: Nov 2009
Posts: 411
Rep Power: 20
DoHander is on a distinguished road
Hello,

have you checked your solution with the exact solution of the wave equation ?

Do
DoHander is offline   Reply With Quote

Old   September 10, 2010, 05:30
Default
  #4
New Member
 
cxcxcx0505
Join Date: May 2010
Posts: 17
Rep Power: 16
cxcxcx0505 is on a distinguished road
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!
cxcxcx0505 is offline   Reply With Quote

Old   September 10, 2010, 08:36
Default
  #5
Senior Member
 
Join Date: Nov 2009
Posts: 411
Rep Power: 20
DoHander is on a distinguished road
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
DoHander is offline   Reply With Quote

Old   September 10, 2010, 08:41
Default
  #6
Senior Member
 
Join Date: Nov 2009
Posts: 411
Rep Power: 20
DoHander is on a distinguished road
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
DoHander is offline   Reply With Quote

Old   September 10, 2010, 09:23
Default
  #7
New Member
 
cxcxcx0505
Join Date: May 2010
Posts: 17
Rep Power: 16
cxcxcx0505 is on a distinguished road
Thanks !
cxcxcx0505 is offline   Reply With Quote

Old   September 10, 2010, 23:10
Default
  #8
New Member
 
cxcxcx0505
Join Date: May 2010
Posts: 17
Rep Power: 16
cxcxcx0505 is on a distinguished road
when I solve for the runge-kutta equation,I use R(x) as the slope?
Attached Images
File Type: jpg untitled.jpg (91.9 KB, 10 views)
cxcxcx0505 is offline   Reply With Quote

Reply


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
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


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