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

CFD code for homework

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 12, 2008, 18:25
Default CFD code for homework
  #1
Hugo
Guest
 
Posts: n/a
Hi,

I'm working on a university project and I really feel like this is my last resort... It's for my computational gasdynamic class, I don't even know where to start and have tried school libraries and all books are out and I spent several hour googling but to no avail.

So I am wondering if anyone knows how to do the following:

1) Using the programming environment of your choice, write a code to solve the linear advection equation du/dt + a du/dx = 0 numerically. Choose one 1rst order and one second order linear scheme (out of those covered in the course or any other one you fancy to try out) and incorporate them into your code. Problem to be simulated is the propagation of a disturbance specified at the initial mo- ment t = 0 as follows: u(x; 0) = 0:5+0:075x for 0 x 20 and u(x; 0) = 0:5 everywhere else. Assume that the wave speed a in the linear advection equation is equal to 2. We are interested in the solution at time moment t = 100.

2)

Using the programming environment of your choice, write a code to solve the one- dimensional Euler equations numerically. Your code should be capable of using the fol- lowing schemes: 1) The 1rst-order Godunov scheme (use the exact Riemann solver you have developed in the mini-project 1); 2) The Lax-Wendroff scheme; 3) Any 1rst order upwind scheme of your choice: Flux Vector Splitting, HLLC, Roe method etc.

Help on anything, even just to get started would be a tremendous help, I'd deeply appreciate it and wouldn't even know how to thank you.
  Reply With Quote

Old   April 12, 2008, 20:59
Default Re: CFD code for homework
  #2
ch
Guest
 
Posts: n/a
Did you attend the class? There are many books that give you step by step instructions on the solution of those problems. Just google for some of the keywords and you should even find free resources on the specific topics. I've done a similar homework recently and I don't believe that you were unable to find useful information...
  Reply With Quote

Old   April 13, 2008, 14:39
Default Re: CFD code for homework
  #3
saygin
Guest
 
Posts: n/a
C.B.Laney's Computational Gasdynamics book would be helpful for you. Its sample codes were also available on the web some time ago, but I'm not sure whether they are available now. You could also try Toro's and LeVeque's books.
  Reply With Quote

Old   April 13, 2008, 15:02
Default Re: CFD code for homework
  #4
otd
Guest
 
Posts: n/a
Try looking for the Berger equation.
  Reply With Quote

Old   April 14, 2008, 05:22
Default Re: CFD code for homework
  #5
Rami
Guest
 
Posts: n/a
Assuming it is not just laziness, there are lots of resources for beginners (even online). The closest one is the Wiki of this site (http://www.cfd-online.com/Wiki/Main_Page).
  Reply With Quote

Old   April 14, 2008, 16:07
Default Re: CFD code for homework
  #6
Hugo
Guest
 
Posts: n/a
Thanks to everyone who responded,

I picked up the LeVeque book at school today, I tried to get the other books recommended in the course pack and this thread. They are simple not available within 2 weeks either by ordering online or through my school's library due to the fact that our teacher recommended not buying them, now since apparently we should of gotten them the few examples available have been rented for several weeks.

My problem lies not in the theory (although my understanding of the theory is far from optimal), but rather how to transpose theory into a computer algorithm..
  Reply With Quote

Old   April 14, 2008, 16:13
Default Re: CFD code for homework
  #7
Hugo
Guest
 
Posts: n/a
I'd like to add that in class we didn't cover numerical methods at all, but only dealt with theory for those suspecting my class attendance being the main issue.
  Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Future CFD Research Jas Main CFD Forum 10 March 30, 2013 13:26
CFD Code with Fortran murat Main CFD Forum 0 October 11, 2009 17:05
Where do we go from here? CFD in 2001 John C. Chien Main CFD Forum 36 January 24, 2001 22:10
CFD JOBS and Expected Salary.... Noel Harrison Main CFD Forum 11 November 22, 2000 08:15
public CFD Code development Heinz Wilkening Main CFD Forum 38 March 5, 1999 12:44


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