Skip to content

SepehrMoalemi/DG_Linear_Advection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DG_Linear_Advection

Usage:
The Main Program is : "LinearAdvection_MAIN.cpp", under "StarUp1D"
This porgram uses the Eigen library which needs to be included in the path

Purpose:
Solving the 1D Linear Advection probelem using the STRONG form of the Discontinous Galerkin Method with use of explicit Runge-Kutta (RK) methods for integration in the temporal dimension.

For calculating the flux, this program uses an upwind scheme (Change ALPHA to 1.0 for Central).
ALPHA = 0.0 //Upwind
ALPHA = 1.0 //Central

Problem specifications:
// for x ranging [0, 2*pi]
xmin = 0.0 ; xmax = 2.0 * pi

FinalTime = 10.0 //State after 10s

a = 2.0 * pi //Advection Speed

NODETOL = 1e-10

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published