CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Compressible code problems (https://www.cfd-online.com/Forums/openfoam-programming-development/87064-compressible-code-problems.html)

praveen April 11, 2011 00:00

Compressible code problems
 
2 Attachment(s)
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


All times are GMT -4. The time now is 12:41.