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

How to implement exact riemann solver with godunov method?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 15, 2023, 22:51
Default How to implement exact riemann solver with godunov method?
  #1
Member
 
Join Date: Feb 2019
Posts: 69
Rep Power: 7
cfdnewb123 is on a distinguished road
For the exact Riemann solver, it mainly involves calculating the p* and subsequently u*. Once p* is obtained, it is used to define the parameters in the other cells. However, how do I extend it to flux like format?

Because for approximate Riemann solver used in conjunction with Godunov method, the approximate Riemann solver are mostly used to obtain the flux at cell using values from left and right cell interfaces.

How do I modify the exact Riemann solver such that it gives me the flux at the cell? I suspect this will require iteration at every cells in order to compute p* at each cell.

I think it is obtained by
F=[rho*u*,rho*u*^2+p*,u*(E*+p*)] whereby u* can be obtained from p*. However, how to obtain rho*?
cfdnewb123 is offline   Reply With Quote

Old   June 16, 2023, 18:19
Default
  #2
Senior Member
 
Join Date: Oct 2011
Posts: 242
Rep Power: 17
naffrancois is on a distinguished road
Hello,

Yes, once you get the full * solution your flux is obtained as you wrote. However, getting p* and u* is only the first step. You need to get rho* and to do this you need the relations across the rarefaction wave using Riemann invariants or across the shock using Rankine-Hugoniot jump relations. Then E* is obtained using the equation of state.

This is very well explained in Riemann Solvers and Numerical Methods for Fluid Dynamics by E. Toro.
naffrancois is offline   Reply With Quote

Old   June 17, 2023, 06:56
Default
  #3
Member
 
Join Date: Feb 2019
Posts: 69
Rep Power: 7
cfdnewb123 is on a distinguished road
Thanks for the reply. I try implementing exact riemann solver as flux in conjunction with godunov method and it seems to be at most as accurate as Roe solver. Is it possible to make the exact Riemann solver flux as accurate as just using exact Riemann solver without Godunov method (whereby p* is only obtained once)?
cfdnewb123 is offline   Reply With Quote

Old   June 17, 2023, 10:27
Default
  #4
Senior Member
 
Eifoehn4's Avatar
 
-
Join Date: Jul 2012
Location: Germany
Posts: 184
Rep Power: 14
Eifoehn4 is on a distinguished road
Quote:
Originally Posted by cfdnewb123 View Post
Thanks for the reply. I try implementing exact riemann solver as flux in conjunction with godunov method and it seems to be at most as accurate as Roe solver. Is it possible to make the exact Riemann solver flux as accurate as just using exact Riemann solver without Godunov method (whereby p* is only obtained once)?
The exact flux should in most cases be more accurate than the Roe solver, since you compare
  • the exact flux of the original problem with
  • the exact flux of the linearized problem.
Curiously, even the exact Riemann flux violates some entropy constraints if used as flux function. Moreover, you won't get the same accuracy if you compare your CFD simulation to the exact Riemann solution, since
  • the latter one is a microscopic solution (independent of the mesh), whereas
  • the other one is a macroscopic solution (and mesh dependent).
Regards
__________________
Check out my side project:

A multiphysics discontinuous Galerkin framework: Youtube, Gitlab.
Eifoehn4 is offline   Reply With Quote

Reply

Tags
finite volume method, godunov method, iteration, riemann solver, riemann solvers


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
On the Roe approximate Riemann solver in the preconditioned density based method sbaffini Main CFD Forum 22 March 19, 2022 12:20
PEMFC model with FLUENT brahimchoice FLUENT 22 April 19, 2020 16:44
Hybrid discretisation - blend factor gcoopermax CFX 5 September 23, 2016 09:05
Compile error with a solver using electric potential method from an article mykkujinu2201 OpenFOAM Programming & Development 10 April 7, 2016 22:39
fluent divergence for no reason sufjanst FLUENT 2 March 23, 2016 17:08


All times are GMT -4. The time now is 22:31.