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

Question about the DG implementation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 4, 2012, 11:20
Default Question about the DG implementation
  #1
Member
 
C. Ziyad
Join Date: Oct 2010
Posts: 37
Rep Power: 16
phy4me is on a distinguished road
Hello
I am asking your help because I'm stuck and I can't find help.
In fact, I try to develop a numerical code for solving shallow water equations (initially 1D) with the discontinuous Galerkin method. The first step that i can start it is construction of the discretized scheme by following the steps found everywhere in the articles (ideally Cockborne and all.). The physical states are approached by the following formula:

Uh = \sum U_h,i Ph_i

I understand at the moment that it need to inject this formula into the discretized form found above.In the case of i = 3 we have three equations to be solved to derive U_h,i.

My question: how i can go back to calculate the U_h
phy4me is offline   Reply With Quote

Old   July 4, 2012, 14:12
Default
  #2
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20
cfdnewbie is on a distinguished road
here's how you do it:
1) multiply your equation (the PDE) by the test function
2) integrate over the domain/cell
3) use integration by parts to separate volume and boundary terms
4) insert your expansion into the equation
5) that will give you a system to solve for your degrees of freedom u_h,i
6) evaluate the sum (the expansion) per element to get U_h
cfdnewbie is offline   Reply With Quote

Old   July 4, 2012, 14:53
Default
  #3
Member
 
C. Ziyad
Join Date: Oct 2010
Posts: 37
Rep Power: 16
phy4me is on a distinguished road
Thank you for your response.
Indeed, this is the sixth point that interests me, i must evaluate the degree of freedom for use it in the sum. And for each item of the sum, i must raplace the function test by his value. It's that required ?
phy4me is offline   Reply With Quote

Old   July 4, 2012, 14:59
Default
  #4
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20
cfdnewbie is on a distinguished road
Quote:
Originally Posted by phy4me View Post
Thank you for your response.
Indeed, this is the sixth point that interests me, i must evaluate the degree of freedom for use it in the sum. And for each item of the sum, i must raplace the function test by his value. It's that required ?
I am not sure I understand what you are asking.... You are solving for the degrees of freedom u, the basis functions are something you know... So you multily your basis by your dof, add them up and evaluate your polynomial where you need it...

Hope that helps!
cfdnewbie is offline   Reply With Quote

Old   July 4, 2012, 15:35
Default
  #5
Member
 
C. Ziyad
Join Date: Oct 2010
Posts: 37
Rep Power: 16
phy4me is on a distinguished road
In fact, what I meant is that after calculating the degrees of freedom we must return to the above formula of the sum to have the value of U in each element. I try to validate this point, because in some code I see U_h = U_h,n[n = max (i)] the last degrees of freedom
phy4me is offline   Reply With Quote

Old   July 4, 2012, 16:01
Default
  #6
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20
cfdnewbie is on a distinguished road
Quote:
Originally Posted by phy4me View Post
In fact, what I meant is that after calculating the degrees of freedom we must return to the above formula of the sum to have the value of U in each element. I try to validate this point, because in some code I see U_h = U_h,n[n = max (i)] the last degrees of freedom
Sorry, i don't understand the equation you posted...
To get U in your cell, just evaluate the (full) basis with the dof you computed....btw, are you referring to a modal or nodal scheme?
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 Re Engineering Data Source imnull ANSYS 0 March 5, 2012 14:51
internal field question - PitzDaily Case atareen64 OpenFOAM Running, Solving & CFD 2 January 26, 2011 16:26
Question about Table applicaiton. universez OpenFOAM Running, Solving & CFD 0 January 12, 2010 21:31
Please explain the implementation of species transport Eqn in reactingFoam kallipygian OpenFOAM Running, Solving & CFD 0 October 13, 2008 08:29
Poisson Solver question Suresh Main CFD Forum 3 August 12, 2005 05:37


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