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

Question about Discontinous Galerkin Method

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 25, 2014, 12:27
Default Question about Discontinous Galerkin Method
  #1
Member
 
C. Ziyad
Join Date: Oct 2010
Posts: 37
Rep Power: 16
phy4me is on a distinguished road
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
Attached Images
File Type: jpg gd.jpg (9.5 KB, 8 views)
phy4me is offline   Reply With Quote

Old   January 25, 2014, 13:23
Default
  #2
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20
cfdnewbie is on a distinguished road
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.
cfdnewbie is offline   Reply With Quote

Old   January 25, 2014, 14:19
Default
  #3
Member
 
C. Ziyad
Join Date: Oct 2010
Posts: 37
Rep Power: 16
phy4me is on a distinguished road
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,
phy4me is offline   Reply With Quote

Old   January 25, 2014, 14:21
Default
  #4
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20
cfdnewbie is on a distinguished road
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.
cfdnewbie is offline   Reply With Quote

Reply


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
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


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