Skip to content

Commit b6eeaeb

Browse files
committed
made changes to order. Now: Theory and backgorund --> available limiter options --> empirical comparison. Added introduction and changed grammer in a few places
1 parent 18397a5 commit b6eeaeb

File tree

1 file changed

+75
-66
lines changed

1 file changed

+75
-66
lines changed

_docs_v7/Gradients-Limiters.md

Lines changed: 75 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,19 @@ title: Gradients and Limiters
33
permalink: /docs_v7/Gradients-Limiters/
44
---
55

6-
Write a brief summary once we are done with most of this.
7-
Generally, the documenation is written with one sentence per line.
6+
This page lists the limiters available in SU2 and their associated options, it is not meant as a detailed theory guide but a brief review of the governing mathematics is presented.
7+
The options listed here do not apply to the high order DG solver.
88

99
---
1010
<!-- TODO: add/update a table of contents -->
11+
- [Theory: An introduction to slope limiters](#theory-an-introduction-to-slope-limiters)
12+
- [Total Variation and Total Variation Diminishing](#total-variation-and-total-variation-diminishing)
13+
- [Godunov's Theorem](#godunovs-theorem)
1114
- [Available Limiter Options](#available-limiter-options)
15+
- [Slope Limiter Fields](#slope-limiter-fields)
16+
- [Available Limiters](#available-limiters)
17+
- [Limiter Parameters and Further Details](#limiter-parameters-and-further-details)
18+
- [Empirical comparison of limiters on a periodic advective domain](#empirical-comparison-of-limiters-on-a-periodic-advective-domain)
1219

1320
---
1421
<!--
@@ -25,6 +32,69 @@ Kal will work on:
2532
* general documentation logistics, formatting, CURC navigation -->
2633

2734

35+
## Theory: An introduction to slope limiters
36+
For many studying compressible flow or high-speed aerodynamics, the formation of shock discontinuities are a common occurrence. The use of high-order numerical schemes are desired to resolve these regions as the strength of the shock largely governs the behavior of the downstream flowfield. However, linear high-resolution schemes often result in numerical oscillations near the shock due to high-frequency content associated with the shock. These oscillations can result in non-physical values (e.g. negative density) that greatly degrade the accuracy of your solution and pollute the domain. An example of this phenomena is shown below with the Lax-Wendroff scheme for scalar advection. Although the Lax-Wendroff method is second-order, note that it introduces numerical oscillations that result in the state value of $$u$$ becoming negative.
37+
38+
<!-- high order == high accuracy, maybe change wording KM: changed wording -->
39+
<!-- oscillations can result **in** non-physical values KM: fixed grammer-->
40+
<!-- second order to second-order ? KM: fixed to add hyphen -->
41+
<!-- ??? "second order" may actually be correct when "order" is used as a noun.
42+
definitely "second-order" when used as an adjective, but not sure if "second-order" when used as
43+
-->
44+
45+
<img src="../../docs_files/LW_example.png" width="500">
46+
47+
Figure (1): A one period advection (red) of an initial value discontinuity (black) using the Lax-Wendroff method.
48+
49+
SU2 uses **slope limiters** to avoid these oscillations by switching to a low-resolution scheme near the shock, while switching back to a high-resolution scheme where the solution is smooth. This preserves solution accuracy in regions with smooth gradients and ensures numerical stability in regions close to the shock.
50+
51+
Before mathematically describing the form of the limiters implemented in SU2, it is useful to briefly understand two concepts. These include **Total Variation** and **Godunov's Theorem**.
52+
53+
### Total Variation and Total Variation Diminishing
54+
We can first introduce the concept of **total variation** (TV) which is a measure of how oscillatory a solution is. In a discrete one dimensional setting, TV can be calculated as the following:
55+
56+
$$ TV(u^n) = \sum_j |u^n_{j+1} - u^n_j| $$
57+
58+
<img src="../../docs_files/TV_example.png" width="500">
59+
60+
Figure (2): A numerical scheme resulting in both high and low TV.
61+
62+
A scheme can be said to be **total variation diminishing** (TVD) if
63+
64+
$$ TV(u^{n+1}) \leq TV(u^n) $$
65+
66+
where for every successive timestep $$n$$, the total variation of the solution does not increase.
67+
68+
A favorable property of TVD schemes is that they are **monotonicity preserving**. This means they do not introduce new extrema into the solution and local minimum (maximum) are non-decreasing (increasing) in time. These are both desirable qualities for correctly resolving a shock and ensuring the solution is physical.
69+
70+
### Godunov's Theorem
71+
The question of "How accurate can a TVD scheme be?" is still unanswered. For this, we turn to [Godunov's Theorem](https://en.wikipedia.org/wiki/Godunov%27s_theorem).
72+
73+
**Godunov's Theorem**:
74+
1. A linear scheme is monotone if and only if it is total variation diminishing.
75+
2. Linear total variation diminishing schemes are at most first-order accurate.
76+
77+
<!-- Maybe source? KM: sourced wiki link-->
78+
79+
The first statement is simple, stating that for linear schemes, the characteristic of being monotone and TVD is equivalent. The second statement is more interesting. It states that if we want to construct a linear TVD (monotone) scheme, the best we can be possibly hope for is first-order accuracy.
80+
81+
Recall that the original motivation for a slope limiter was to prevent the formation of oscillations in the solution. In the section above, we noted that TVD schemes are monotonicity preserving (a favorable property in resolving a shock). However, through Godunov's theorem, we note that if we also want high-order accuracy, **our TVD discretization MUST be nonlinear**
82+
83+
The inclusion of a slope limiter into a TVD scheme accomplishes this idea.
84+
85+
86+
87+
<!-- ## Mathematically describe limiters available to user in SU2 -->
88+
<!-- ??? do we need to include this section??? -->
89+
<!-- It would make more sense to include the limiters in the section above -->
90+
91+
<!-- TODO: Reorganize? -->
92+
<!-- Maybe change transition above if we remove this section. -->
93+
94+
95+
<!-- TODO: Kal and Grant need to resolve notation, ex: k vs. K -->
96+
97+
2898
## Available Limiter Options
2999
<!-- Also we assume that the user will know the theory, and that they are just looking for the limiters that are available in SU2 first. -->
30100

@@ -150,70 +220,8 @@ SU2_MPI::Error("Unknown limiter type.", CURRENT_FUNCTION);
150220
151221
-->
152222

153-
## Theory: Purpose of Slope Limiters
154-
For many studying compressible flow or high-speed aerodynamics, the formation of shock discontinuities are a common occurrence. The use of high-order numerical schemes are desired to resolve these regions as the strength of the shock largely governs the behavior of the downstream flowfield. However, linear high-resolution schemes often result in numerical oscillations near the shock due to high-frequency content associated with the shock. These oscillations can result in non-physical values (e.g. negative density) that greatly degrade the accuracy of your solution and pollute the domain. An example of this phenomena is shown below with the Lax-Wendroff scheme for scalar advection. Although the Lax-Wendroff method is second-order, note that it introduces numerical oscillations that result in the state value of $$u$$ becoming negative.
155-
156-
<!-- high order == high accuracy, maybe change wording KM: changed wording -->
157-
<!-- oscillations can result **in** non-physical values KM: fixed grammer-->
158-
<!-- second order to second-order ? KM: fixed to add hyphen -->
159-
<!-- ??? "second order" may actually be correct when "order" is used as a noun.
160-
definitely "second-order" when used as an adjective, but not sure if "second-order" when used as
161-
-->
162-
163-
<img src="../../docs_files/LW_example.png" width="500">
164-
165-
Figure (1): A one period advection (red) of an initial value discontinuity (black) using the Lax-Wendroff method.
166-
167-
SU2 uses **slope limiters** to avoid these oscillations by switching to a low-resolution scheme near the shock, while switching back to a high-resolution scheme where the solution is smooth. This preserves solution accuracy in regions with smooth gradients and ensures numerical stability in regions close to the shock.
168-
169-
Before mathematically describing the form of the limiters implemented in SU2, it is useful to briefly understand two concepts. These include **Total Variation** and **Godunov's Theorem**.
170-
171-
### Total Variation and Total Variation Diminishing
172-
We can first introduce the concept of **total variation** (TV) which is a measure of how oscillatory a solution is. In a discrete one dimensional setting, TV can be calculated as the following:
173-
174-
$$ TV(u^n) = \sum_j |u^n_{j+1} - u^n_j| $$
175-
176-
<img src="../../docs_files/TV_example.png" width="500">
177-
178-
Figure (2): A numerical scheme resulting in both high and low TV.
179-
180-
A scheme can be said to be **total variation diminishing** (TVD) if
181-
182-
$$ TV(u^{n+1}) \leq TV(u^n) $$
183-
184-
where for every successive timestep $$n$$, the total variation of the solution does not increase.
185-
186-
A favorable property of TVD schemes is that they are **monotonicity preserving**. This means they do not introduce new extrema into the solution and local minimum (maximum) are non-decreasing (increasing) in time. These are both desirable qualities for correctly resolving a shock and ensuring the solution is physical.
187-
188-
### Godunov's Theorem
189-
The question of "How accurate can a TVD scheme be?" is still unanswered. For this, we turn to [Godunov's Theorem](https://en.wikipedia.org/wiki/Godunov%27s_theorem).
190-
191-
**Godunov's Theorem**:
192-
1. A linear scheme is monotone if and only if it is total variation diminishing.
193-
2. Linear total variation diminishing schemes are at most first-order accurate.
194-
195-
<!-- Maybe source? KM: sourced wiki link lol-->
196-
197-
The first statement is simple, stating that for linear schemes, the characteristic of being monotone and TVD is equivalent. The second statement is more interesting. It states that if we want to construct a linear TVD (monotone) scheme, the best we can be possibly hope for is first-order accuracy.
198-
199-
Recall that the original motivation for a slope limiter was to prevent the formation of oscillations in the solution. In the section above, we noted that TVD schemes are monotonicity preserving (a favorable property in resolving a shock). However, through Godunov's theorem, we note that if we also want high-order accuracy, **our TVD discretization MUST be nonlinear**
200-
201-
The inclusion of a slope limiter into a TVD scheme accomplishes this idea.
202-
203-
204-
205-
<!-- ## Mathematically describe limiters available to user in SU2 -->
206-
<!-- ??? do we need to include this section??? -->
207-
<!-- It would make more sense to include the limiters in the section above -->
208-
209-
<!-- TODO: Reorganize? -->
210-
<!-- Maybe change transition above if we remove this section. -->
211-
212-
213-
<!-- TODO: Kal and Grant need to resolve notation, ex: k vs. K -->
214-
215223
## Empirical comparison of limiters on a periodic advective domain
216-
An example problem of the linear advection problem against four unique wave-forms was simulated to illustrate differences between the limiters in SU2. The wave forms contain both smooth and discontinuous initial conditions and are advected for a single period with a CFL of $$\sigma = 0.8$$. The domain is discretized with $$N = 200$$ cells. The Lax-Wendroff scheme was used as a comparative case:
224+
An example problem of the linear advection problem against four unique wave-forms was simulated to illustrate differences between the primary limiters in SU2. The wave forms contain both smooth and discontinuous initial conditions and are advected for a single period with a CFL of $$\sigma = 0.8$$. The domain is discretized with $$N = 200$$ cells. The Lax-Wendroff scheme was used as a comparative case:
217225

218226
$$ u_j^{n+1} = u_j^{n} - \sigma (u_j^{n} - u_{j-1}^{n}) - \frac{1}{2}\sigma(1-\sigma) \left[ \phi_{j+\frac{1}{2}}(u_{j+1}^{n} - u_j^{n}) - \phi_{j-\frac{1}{2}}(u_{j}^{n} - u_{j-1}^{n}) \right] $$
219227

@@ -229,4 +237,5 @@ From the above example we note:
229237
* The **Van-Albada** limiter also performs well. It is slightly more diffusive than Barth-Jespersen but has robust convergence properties.
230238
* The **Venkatakrishnan** limiter is similar to the Barth-Jespersen and has significantly improved convergence properties. However, it is more diffusive and does require a user-specified parameter $$K$$ that is flow dependent.
231239

232-
<!-- Maybe we should add a small conclusion too? KM: agreed. Talk on Thursday. -->
240+
<!-- Maybe we should add a small conclusion too? KM: agreed. Talk on Thursday.
241+
KM: Other user guide sections seem to not include a conclusion. We can submit and see what the feedback is? -->

0 commit comments

Comments
 (0)