|
[Sponsors] |
January 25, 2014, 12:27 |
Question about Discontinous Galerkin Method
|
#1 |
Member
C. Ziyad
Join Date: Oct 2010
Posts: 37
Rep Power: 16 |
Hi,
I use the DG to solve the 1d shallow water. I want to know how calculate the state value in the Riemann solver ( Roe for example ). If I use the formula in attachments i have minor oscillation but if i use Uh=U0 the result is good. What is the right ? Thanks in advance |
|
January 25, 2014, 13:23 |
|
#2 |
Senior Member
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20 |
What is written there in the equation is just the solution representation, i.e. the basis functions times your DOF. For the input into the flux functions, you should evaluate U on the boundaries, then calculate the fluxes from that.
Are you using a modal or a nodal basis? If you are using a modal basis, u0 would be (I'm guessing here) the value of your first Legendre polynomial, i.e. the mean value. That will give you a first order approximation of your fluxes, and thus result in a globally first order method. The correct way to do is indeed to evaluate the basis fully at the location it is needed. I recommend you do a convergence study for a simple model problem (Burgers, linear advection etc) first to make sure you got everything right. |
|
January 25, 2014, 14:19 |
|
#3 |
Member
C. Ziyad
Join Date: Oct 2010
Posts: 37
Rep Power: 16 |
Thanks for your response,
I use here a legendre polynomial basis, I think that are modal approach ( if it lagrange basis here is nodal ... right ? ). In the case when I use the fully basis, osciallations are generated in the solution in same problems ( Haudraulic jump for example ). Here, what I want know is how evaluate the physical state to calculate the flux at each edge. Thanks, |
|
January 25, 2014, 14:21 |
|
#4 |
Senior Member
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20 |
You do that evaluation the full basis / full expansion at the location where you need it. If you are getting oscillations (for a smooth problem), then you will need to check your code. If you are talking about non-smooth problems, then oscillations are to be expected if you don't use any form of limiting.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Question of Anil Date's SIMPLE method | universez | Main CFD Forum | 0 | November 18, 2009 21:12 |
QUESTION in finite volume method | jack | Main CFD Forum | 9 | September 10, 2007 06:06 |
Question about fractional step method | Harish | Main CFD Forum | 2 | September 25, 2006 10:29 |
discontinous galerkin finite element | Nashat | Main CFD Forum | 2 | November 10, 2005 15:52 |
Channel flow - Galerkin method | Ingo Meisel | Main CFD Forum | 1 | November 15, 2002 06:15 |