You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _tutorials/compressible_flow/Unsteady_NACA0012.md
+19-20
Original file line number
Diff line number
Diff line change
@@ -44,10 +44,10 @@ This problem will solve the flow about the airfoil with these conditions:
44
44
- Reynolds number = 1E3
45
45
- Reynolds length = 1.0 m
46
46
47
-
These subsonic flow conditions cause a detached flow about the airfoil, that exhibts a vortex street and is therefore periodic.
47
+
These subsonic flow conditions cause a detached flow on the upper side of the airfoil, which result in a vortex street and therefore periodic behavior.
48
48
49
49
### Mesh Description ###
50
-
The computational domain consists of a grid of 14495 quadrilaterals, that sourrounds the NACA0012 airfoil. We note that this is a very coarse mesh, and should one wish to obtain more accurate solutions for comparison with results in the literature, finer grids should be used.
50
+
The computational domain consists of a grid of 14495 quadrilaterals, that sourrounds the NACA0012 airfoil. Note that this is a very coarse mesh, and should one wish to obtain more accurate solutions for comparison with results in the literature, finer grids should be used.
51
51
52
52
Two boundary conditions are employed: the Navier-Stokes adiabatic wall condition on the wing surface and the far-field characteristic-based condition on the far-field marker.
53
53
@@ -61,23 +61,23 @@ Figure (3): Close-up view of the airfoil surface and the aerodynamic coefficient
61
61
### Configuration File Options ###
62
62
63
63
Configuration of the physical problem is similar to the ONERA M6 tutorial, that one can access [here](../Turbulent_ONERAM6). However, contrary to the ONERA M6 case, here a unsteady simulation is performed, hence, the Unsteady RANS (URANS) equations in 2D must be solved.
64
-
Unsteady simulations in SU2 are computed employing a dual time-stepping scheme. To this end, one first performs a spatial discretization as explained in the [ONERA M6](../Turbulent_ONERAM6)tutoral.
64
+
Unsteady simulations in SU2 are computed by employing a dual time-stepping scheme. To this end, one first performs a spatial discretization as explained in the [ONERA M6](../Turbulent_ONERAM6)tutorial.
65
65
After that, a time discretization in physical time is performed, that results in a residual equation of the form
66
66
67
67
$$ R(u^n) = 0 \qquad \forall n=1,\dots,N. $$
68
68
69
69
Here, $$n$$ denotes the current physical time iteration, $$N$$ is the final (physical) time of the simulation, and $$R$$ is the residual, one has to solve.
70
70
In this tutorial, a second order BDF scheme is employed.
71
-
The idea of dual time-stepping is, that the current solution $$u^n$$ of the residual equation is computed for each time step by solving an ordinary differential equation in fictional time $$\tau$$. The ODE for physical time-step $$n$$ reads
71
+
The idea of dual time-stepping is, that the current solution $$u^n$$ of the residual equation is computed for each time step by solving an ordinary differential equation in pseudo time $$\tau$$. The ODE for physical time-step $$n$$ reads
72
72
73
73
$$ \partial_\tau u^n + R(u^n) = 0. $$
74
74
75
75
Now, a steady state solution for this ODE is computed using the steady state solver. Once a solution is aquired, the residual equation for the next physical time step $$n+1$$ is set up.
76
-
As a result there are two time iterators. The inner (fictional time) iterator and the outer (physical time) iterator. The number of iterations for the fictional time iterator is specified by `INNER_ITER` and the number of iterations
76
+
As a result there are two time iterators. The inner (pseudo time) iterator and the outer (physical time) iterator. The number of iterations for the pseudo time iterator is specified by `INNER_ITER` and the number of iterations
77
77
for the physical time iterator by `TIME_ITER`. The option `TIME_DOMAIN=YES` activates the time dependent solver in SU2.
78
78
The option `TIME_MARCHING` specifies the numerical method to discretize the time domain in physical time and `TIME_STEP`
79
79
denotes the length of the physical time-step used.
80
-
The numerical method to solve the inner (fictional time) ODE is given by the option `TIME_DISCRE_FLOW`.
80
+
The numerical method to solve the inner (pseudo time) ODE is given by the option `TIME_DISCRE_FLOW`.
This unsteady simulation results in a periodic flow, which can be seen by the vortex street in the flow visualization above. However, since the initial conditions are set to free-stream conditions, which have no physical meaning, a couple of iterations are needed to reach the periodic state.
104
+
This unsteady simulation results in a periodic flow, which can be seen by the vortex street in the flow visualization above. However, since the initial conditions are set to free-stream conditions, a couple of iterations are needed to reach the periodic state.
Figure (4): Timedependent drag (black) and lift (red) coefficient. The transient time spans approximately 300 (physical) time-steps.
108
+
Figure (4): Time-dependent drag (black) and lift (red) coefficient. The transient time spans approximately 300 (physical) time-steps.
109
109
110
-
In a periodic flow, an insantaneous output value, e.g. $$C_D(t)$$ is not meaningful in some applications, e.g. aerodynamic shape optimization. Hence one often uses the average value of one period $$T$$.
110
+
Usually in a periodic flow an instantaneous output value, e.g. $$C_D(t)$$, is not meaningful. Hence one often uses the average value of one period $$T$$:
111
111
112
112
$$ \frac{1}{T}\int_0^T C_D(t) \mathcal{d}t$$
113
113
114
114
However, the exact duration of a period is unknown or cannot be resolved due to a too coarse time discretization. Therefore,
115
115
one averages over a finite time-span $$M$$, which lasts
116
-
a couple of periods and hopes for convergence to the period-average.
116
+
a couple of periods and hopes for convergence to the period-average
117
117
118
-
$$ \frac{1}{M}\int_0^M C_D(t) \mathcal{d}t$$
118
+
$$ \frac{1}{M}\int_0^M C_D(t) \mathcal{d}t.$$
119
119
120
-
If one employs a weighting function $$w(t)$$, called window-function, the time-average converges faster to the actual period-average.
120
+
If one employs a weighting function $$w(t)$$, called window-function, the time-average converges faster to the actual period-average
A windowing function is a function, that is zero on its boundaries $$0$$ and $$M$$ and has integral $$1$$. The iteration
125
-
to start the windowed time-average is specified with `WINDOW_START_ITER`. Note, that at this iteration, the transient phase of the flow must have passed. Otherwise a time average, that approximates a period average is not meaningful.
125
+
to start the windowed time-average is specified with `WINDOW_START_ITER`. Note, that at this iteration the transient phase of the flow must have passed. Otherwise a time average that approximates a period average is not meaningful.
126
126
The windowing function can be specified with the option `WINDOW_FUNCTION`.
127
127
Note, that windowing functionality also works for sensitivities of time dependent outputs. In this case, the order of convergence is reduced by 1.
128
-
The following options are implemented.
128
+
The following options are implemented:
129
129
130
130
| Window | Convergence Order | Convergence Order (sensitivity) |
131
131
| --- | --- | --- |
@@ -137,9 +137,8 @@ The following options are implemented.
Figure (5): Different window-functions in the time span from 0 to 1.
139
139
140
-
The `SQUARE`-window denotes the case of uniform weighting by 1, i.e. the case, where no special windowing-function is applied. It is not recommended to use `SQUARE`- windowing for senstivities, since no convergence is guarantied.
141
-
For further information about the windowing approach, we refer to the work of Krakos et al. ([Sensitivity Analysis of Limit Cycle Oscillations](https://arc.aiaa.org/doi/abs/10.2514/6.2011-3553"Sensitivity Analysis of Limit Cycle Oscillations")) and
142
-
the work of Schotthöfer et al. ([AIAA PAPER, TBA](TBA"AIAA PAPER")).
140
+
The `SQUARE`-window denotes the case of uniform weighting by 1, i.e. the case, where no windowing-function is applied. It is not recommended to use `SQUARE`- windowing for sensitivities, since no convergence is guaranteed.
141
+
For further information about the windowing approach, we refer to the work of Krakos et al. ([Sensitivity Analysis of Limit Cycle Oscillations](https://arc.aiaa.org/doi/abs/10.2514/6.2011-3553"Sensitivity Analysis of Limit Cycle Oscillations")).
143
142
The windowed time-averaged output-field can be accessed in `SCREEN_OUTPUT` by adding the prefix `TAVG_` to the chosen output-field. For
144
143
time-averaged sensitivities, one adds the prefix `D_TAVG_`.
145
144
@@ -148,7 +147,7 @@ The Cauchy-criterion is applied to the windowed time-average from the iteration
148
147
The field or the list of fields to be monitored can be specified by `CONV_WINDOW_FIELD`.
149
148
The solver will stop, if the average over a certain number of elements (set with `CONV_WINDOW_CAUCHY_ELEMS`) is smaller than the value set with `CONV_WINDOW_CAUCHY_EPS`.
150
149
The windowed time-averaged Cauchy criterion can be activated by setting `WINDOW_CAUCHY_CRIT = YES` (default is `NO`).
151
-
If a list of multiple convergence fields is chosen, the sovlver terminates, if the Cauchy criterion is satisfied for all fields on the list.
150
+
If a list of multiple convergence fields is chosen, the sovlver terminates, if the Cauchy criterion is satisfied for all fields in the list.
152
151
```
153
152
% --- Coefficient-based Windowed Time Convergence Criteria ----%
154
153
%
@@ -173,7 +172,7 @@ WINDOW_START_ITER = 500
173
172
% Window-function to weight the time average. Options (SQUARE, HANN, HANN_SQUARE, BUMP), SQUARE is default.
174
173
WINDOW_FUNCTION = HANN_SQUARE
175
174
```
176
-
Note, that in application, it may happen that a test case is not purely periodic, but the period-mean has a slight shift upwards
175
+
Usually a case is not purely periodic, but the period-mean has a slight shift upwards
177
176
or downwards. Hence, the time-convergence epsilon value is typically not as small as in the time-steady case.
178
177
179
178
As one can see in Fig. (4), the transient phase of drag (and lift) is about 500 iterations, thus a suitable starting time for the windowed-average is `WINDOW_START_ITER=500`.
0 commit comments