CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

Compressible code problems

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 11, 2011, 00:00
Default Compressible code problems
  #1
Super Moderator
 
praveen's Avatar
 
Praveen. C
Join Date: Mar 2009
Location: Bangalore
Posts: 248
Blog Entries: 6
Rep Power: 9
praveen is on a distinguished road
Hello all

I am trying to modify rhoCentralFoam to introduce godunov finite volume scheme. I have attached my initial attempt in this thread. Basically, I have modified the main code rhoCentralFoam.C now called gFoam.C and createFields.H

I have added new variables rhoFlux, rhoUFlux and rhoEFlux which contain the numerical flux across all the faces.

Also added two new files numericalFlux.H and KFVS.H which contain the flux functions.

Its not working as I am getting nan on the oblique shock case. It would be nice if somebody can look at the code and tell me if there are any mistakes.

I assumed that rPsi = R*T where R=gas constant and T is the temperature.

Thanks
praveen
Attached Files
File Type: zip gFoam.zip (62.6 KB, 6 views)
File Type: zip obliqueShock.zip (87.9 KB, 2 views)
praveen is offline   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
Compressible Boundary Layer Code Kursat KARA Main CFD Forum 1 February 28, 2013 08:49
Problems with compiling CFD code! ravi Main CFD Forum 1 July 12, 2004 11:28
Problems with convergence and initial guessed fields in compressible steady flows Pedro Gil Main CFD Forum 3 April 25, 2000 11:34
Compressible Viscous Code vaidation test cases? Mohammad Kermani Main CFD Forum 2 November 11, 1999 15:22
State of the art in CFD technology Juan Carlos GARCIA SALAS Main CFD Forum 39 November 1, 1999 15:34


All times are GMT -4. The time now is 06:13.