Skip to content

Youtong-Rong/dg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repositary contains the solution to the coding homework for APMA 2810 Discontinuous Galerkin Methods by Prof. Chi-Wang Shu. Below is a description of these homeworks(including 1 take-home exam). The written homework is not included here.

HW1

Use DG to find the solution to the following equation:

\begin{equation}
\left\{
             \begin{array}{lr}
             u_x=\cos x, &  0\leq x \leq 1\\
             u(0)=0 &  
             \end{array}
\right.
\end{equation}

and plot error tables.

HW2

Use DG to find the solution to the following equation with two different initial conditions on $[0,2\pi]\times[0,2\pi]$:

\begin{equation}
\left\{
             \begin{array}{lr}
             u_t+u_x=0, \\
             u(x,0)=\sin(x) &  
             \end{array}
\right.
\end{equation}

\begin{equation}
\left\{
             \begin{array}{lr}
             u_t+u_x=0, \\
             u(x,0)=1, &  x\in(\frac{\pi}{2},\frac{3\pi}{2})\\
             u(x,0)=0, &  x\in(0,\frac{\pi}{2})\cup(\frac{3\pi}{2},2\pi)
             \end{array}
\right.
\end{equation}

and plot error tables.

HW3

Plot moment error tables of the problem last week.

HW4

Apply TVD limiter and TVB limiter with $M = 0.1$, $1$, $5$, $10$ to the problem in week 2. Plot error tables and report the points changed by the limiters.

HW5

Apply Bound Preserving Limiter to the problem in week 2. Plot error tables.

HW6

Use LDG with central flux and alternating flux to find the solution to the following equation on $[0,2\pi]\times[0,1]$:

\begin{equation}
\left\{
             \begin{array}{lr}
             u_t=u_{xx}, \\
             u(x,0)=\sin(x) &  
             \end{array}
\right.
\end{equation}

and plot error tables.

HW7

Use Bauman-Oden, SIPG and Ultra-Weak scheme to solve the problem last week and plot error tables.

HW8

Use LDG to find the solution to the following equation on $[0,2\pi]\times[0,1]$:

\begin{equation}
\left\{
             \begin{array}{lr}
             u_t=u_{xxx}, \\
             u(x,0)=\sin(x) &  
             \end{array}
\right.
\end{equation}

and plot error tables.

HW9

Use Ultra-weak scheme to solve the problem last week and plot error tables.

Final Exam

Use LDG to find the solution to the following two equations on $[0,2\pi]\times[0,1]$:

\begin{equation}
\left\{
             \begin{array}{lr}
             u_t+u_x=\epsilon u_{xx}, \\
             u(x,0)=\sin(x) &  
             \end{array}
\right.
\end{equation}

\begin{equation}
\left\{
             \begin{array}{lr}
             u_t+u_x=\epsilon u_{xxx}, \\
             u(x,0)=\sin(x) &  
             \end{array}
\right.
\end{equation}

and plot error tables.

About

Discontinuous Galerkin Homework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • MATLAB 93.6%
  • M 6.4%