- **OpenFOAM Running, Solving & CFD**
(*https://www.cfd-online.com/Forums/openfoam-solving/*)

- - **Solving a Riemann problem in OpenFoam**
(*https://www.cfd-online.com/Forums/openfoam-solving/58732-solving-riemann-problem-openfoam.html*)

Hello
I would like to writeHello
I would like to write a Riemann solver for Euler's equations, as i have all the usual functions for calculating the intercell fluxes. But i am unsure about how to implement it in openFoam. I need to do the following 1)Loop over all internal faces 2)Find the 2 cells sharing a particular face 3)Extract values such as u,rho,p etc from these 2 cells and assign a flux to that face(after solving a Riemann problem) But how would i do this in OpenFoam? Just a couple of code snippets and some info on where to look in the source code should suffice. None of the existing solvers, seem to do anything like this Thanks Srinath |

Did you have a look into g3dFoDid you have a look into g3dFoam? I think this can help you.
g3dFoam: Implementing third order compressible flow solver for hexahedral meshes in OpenFoam, by Martin Olausson. http://www.tfd.chalmers.se/~hani/kurser/OF_phD_2007/ |

Thanks Patricio
I will takeThanks Patricio
I will take a look. Srinath |

All times are GMT -4. The time now is 21:56. |