Professional Documents
Culture Documents
found to reduce solution accuracy. Finally, performance of various PyFR simulations is compared, and it is found
that fifth-order simulations with antialiasing via an L2 projection are the most efficient. Results indicate that
high-order flux reconstruction schemes with antialiasing via an L2 projection are a good candidate for
underpinning accurate wall-resolved implicit large-eddy simulation of separated, turbulent flows over complex
engineering geometries.
the fluid velocity vector, and E is the total energy per unit volume. This is accomplished as follows. First, the solution polynomial is
For a perfect gas, the pressure p and total energy are related through the evaluated at each of the flux points. As the flux points on the faces of
ideal gas law adjacent elements pair up, this results in two distinct values of the
solution at a single point in physical space. By employing a local
p 1 discontinuous Galerkin (LDG)-type method, it is possible to correct
E ρkvk2 (2)
γ−1 2 these discontinuous solutions to obtain an approximation, which is
C0 continuous at the flux points and the gradient of which sits in
where γ cp ∕cv is the ratio of specific heats. The flux can be P3k Ω.
~ The gradients of this approximate solution, along with the
written as f α f α u; ∇u f cα − f vα , where f c is the inviscid flux original discontinuous solution defined by Eq. (7), can be used to
given by compute a discontinuous flux within each as
0 1
ρvx ρvy ρvz X
Nu
B ρv2x p ρvx vy ρuvz C f~D
B C iα x
~ f~ijα uij ; ∇uij lj x
~ (8)
fc B
B ρvx vy ρv2y p ρvy vz C C (3) j
@ ρvx w ρvvz ρv2z p A
ρvx E p ρvy E p ρvz E p where the transformed flux is given by
the ith modal basis function, and ηm k 1. Damping is only antialiasing via an approximate L2 projection, especially with a large
applied to modes of which the degree is greater than the cutoff with number of points, is more computationally expensive than a simple
higher modes receiving progressively more damping. The rate at collocation projection.
which this ramps up is controlled by s.
D. Antialiasing via Approximate L2 Projection III. Flow over NACA0021 Aerofoil in Deep Stall
The principle behind antialiasing is to compute the modal A. Overview
expansion coefficients of the desired polynomial exactly. Taking the In this study, we use PyFR to simulate unsteady separated
projection of the nonlinear volume flux as an example, we note that in turbulent flow over a NACA0021 aerofoil in deep stall. The aerofoil
modal form the polynomial inside of the ith element can be expressed is set at a 60 deg angle of attack to the oncoming freestream flow. The
as Reynolds number Re∞ (based on the aerofoil chord c, the freestream
velocity u∞, the freestream density ρ∞, and the fluid viscosity μ) is set
X
Nu
at 270,000. The Mach number Ma∞ (based on the freestream
f~D
iα x
~ f^ ijα Lj x
~ (12) velocity u∞, the freestream density ρ∞, and the freestream pressure
j
p∞ ) is set at 0.1. The setup exhibits significant unsteady dynamics
and is hence a good test case for scale-resolving approaches such
with the modal coefficients being given by as detached-eddy simulation (DES), LES, and DNS. Moreover,
Z significant experimental [19] and computational (from the DESider
f^ ijα f~iα xL
~ j x
~ dx~ (13) project) [20,21] data exist for the test case, including time-span-
Ω
~ averaged pressure coefficient distributions on the aerofoil, associated
lift and drag coefficients, and lift and drag coefficient spectra.
where the integration domain Ω ~ is that of the reference element. It can
be readily verified that the resulting polynomial is optimal in that it is
the one that minimizes the norm kf~D ~ − f~iα xk
iα x ~ Ω;2
~ . The integrals
B. Domains and Meshes
can be approximated through Gaussian quadrature in which Four domains were considered. All had an extent of 30c in the
stream- and crosswise directions. However, the spanwise extent Lz
Z X
Nq was varied. Specifically, values of Lz c, 2c, 4c, 7c were
f~iα xL
~ j x
~ dx~ ≈ ωl f~iα x~j Lj x~l (14) considered. Previous experimental data were obtained with a span of
Ω
~
l 7.2c [19], and previous computational results suggest that
simulations should employ a span of at least 4c [20]. The leading
where {x~l } are the abscissa of an N q -point quadrature rule and {ωl } edge of the aerofoil was located at the center of the cross-streamwise
are a set of associated weights. In the case of a nonpolynomial
Fig. 2 Modal filter coefficients for the P3-F simulation obtained with
Fig. 1 View of P3 mesh with Lz c. κ 36, s 16, and ηc 1.
PARK, WITHERDEN, AND VINCENT 2189
Table 2 Effect of filter strength s and a distance equivalent to y ≈ 1 from the wall (where y is based on
cutoff ηc on the stability of a P3-F simulation a flat plate boundary layer at Reynolds number 270,000). Elements of
with Lz c up to t 400c∕u∞ with fixed the P3 meshes had a characteristic size 0.05c in the stream- and
κ 36 and N 50
crosswise directions near the aerofoil and a uniform extent 0.05c in
s ηc Outcome the span-wise direction throughout the domain. Elements of the P4
16 1 Stable meshes had a characteristic size 0.0625c in the stream- and crosswise
32 1 Diverged (at t 95.87c∕u∞ ) directions near the aerofoil and a uniform extent 0.0625c in the
16 2 Diverged (at t 57.69c∕u∞ ) spanwise direction throughout the domain. For both meshes, the
32 2 Diverged (at t 30.17c∕u∞ ) majority of elements was concentrated near the aerofoil, as shown
in Fig. 1.
In total, the P3 meshes had 80,840 elements per spanwise extent c,
and the P4 meshes had 51,632 elements per spanwise extent c.
However, since third-order solution polynomials require 64 solution
Table 3 Effect of application frequency points within each hexahedral element and fourth-order solution
N on the stability of a P3-F simulation with polynomials require 125, the total number of degrees of freedom per
Lz c up to t 400c∕u∞ with fixed κ 36, spanwise extent c was similar across P3 and P4 meshes.
s 16, and ηc 1
N Outcome C. Methodology
50 Stable The compressible Navier–Stokes equations with constant viscosity
75 Diverged (at t 100.54c∕u∞ ) were solved using PyFR version 0.8.0 [6]. A DG scheme was used for
Diverged (at t 1.92c∕u∞ )
Downloaded by 136.159.213.169 on March 6, 2024 | http://arc.aiaa.org | DOI: 10.2514/1.J055304
a) Lz = c b) Lz = 2c
c) Lz = 4c d) Lz = 7c
Fig. 3 Time- and span-averaged Cp distributions on the pressure and suction surfaces of the aerofoil.
2190 PARK, WITHERDEN, AND VINCENT
projection, henceforth referred to as P3-AA simulations; and approximate L2 projection of the transformed flux into the polynomial
3) natively without any antialiasing, henceforth referred to as P3-N space of the solution (within an element) and an approximate L2
simulations. P4 meshes with Lz c, 2c, 4c, 7c were restarted with projection of the transformed normal common interface flux into the
fourth-order solution polynomials and 1) antialiasing via an L2 polynomial space of the correction function divergence (on the face of
projection, henceforth referred to as P4-AA simulations, and an element).
2) natively without any antialiasing, henceforth referred to as P4-N We note that the filter parameters were selected based on the results
simulations. All the aforementioned simulations, which are of a series of numerical experiments using a P3 mesh with Lz c and
summarized in Table 1, were run for a further 400c∕u∞ time units, third-order solution polynomials. First, experiments were performed
over which period data were extracted for analysis. varying filter strength s and cutoff ηc , with fixed κ 36 and N 50.
In the previous description, antialiasing via modal filtering refers Outcomes are presented in Table 2. Looking at the table, it is clear that
to the application of Eq. (11) with κ 36, s 16, and ηc 1 every only the strongest filter (s 16 and ηc 1) is stable up to
N 50 time steps. A visual representation of the resulting filter t 400c∕u∞ . Next, for this strongest filter, with fixed κ 36,
coefficients is shown in Fig. 2. Antialiasing via an L2 projection on s 16, and ηc 1, experiments were performed varying
the P3 and P4 meshes, with third-order and fourth-order solution application frequency N. Outcomes are presented in Table 3.
polynomials, respectively, refers to use of 9th-order and 11th-order Looking at the table, it is clear that only the highest application
Gauss–Legendre quadrature rules, respectively, to perform an frequency (N 50) is stable up to t 400c∕u∞ .
Downloaded by 136.159.213.169 on March 6, 2024 | http://arc.aiaa.org | DOI: 10.2514/1.J055304
Fig. 4 Cl and Cd obtained from P3-F simulations, along with the Fig. 6 Cl and Cd obtained from P4-AA simulations, along with the
experimental data of [19] and previous numerical results [20] (gray experimental data of [19] and previous numerical results [20] (gray
markers; see Table 4). markers; see Table 4).
a) Lz = c b) Lz = 2c
c) Lz = 4c d) Lz = 7c
Fig. 9 Plots of PSD of Cl from various PyFR simulations and similar experimental data [19]. It should be noted that, while the PyFR data were obtained
from Cl (the time- and surface-averaged lift coefficient), the experimental data were obtained from a sectional lift coefficient at a fixed spanwise location.
Peak 1 and peak 2 mark distinct peaks in the experimental PSD.
2192 PARK, WITHERDEN, AND VINCENT
Table 5 St for peak 1 and peak 2 of the PSD of Cl for all increased, the PyFR simulations converge toward the experimental
simulations (for reference, the experimental St for peak 1 data, and when Lz ≥ 4c, the P3-AA and P4-AA simulations exhibit
was 0.1994 and for peak 2 was 0.3987 [19]) less than 2.5% deviation in Cl and Cd . Finally, we note that the
Span P3-F P3-AA P4-AA P4-AA simulation with Lz 7c achieves the best agreement with
Lz Peak 1 Peak 2 Peak 1 Peak 2 Peak 1 Peak 2 experimental data and that the resulting errors in Cl and Cd are lower
than any of those obtained from the DESider project [20,21].
c 0.1660 0.3320 0.2348 0.4435 0.1855 0.3027
2c 0.1855 0.3418 0.1855 0.3613 0.1953 0.3711
4c 0.1855 0.3809 0.1953 0.3906 0.1953 0.3906 3. Force Spectra
7c 0.1855 0.3809 0.1953 0.3906 0.1953 0.3809 Figure 9 compares the power spectral density (PSD) of Cl with
related experimental data of [19], where St is a Strouhal number
based on the freestream velocity u∞ and the chord c.
2. Time-Averaged Force Coefficients To obtain the PSD, Cl was sampled every 0.025c∕u∞ time
Figures 4, 5, and 6 compare the time-averaged lift coefficient Cl units, and the PSD was computed using Welch’s averaged
and time-averaged drag coefficient Cd with experimental data [19] periodogram method with windows of length 4096 samples and
and computational results from the DESider project [20,21], for P3-F, a shift between windows of 10 samples. It should be noted that,
P3-AA, and P4-AA simulations, respectively Table 4. Figures 7 and 8 while the PyFR data were obtained from Cl (the time- and
plot percentage errors in Cl and Cd , relative to experimental data [19], surface-averaged lift coefficient), the experimental was obtained
for PyFR simulations and computational results from the DESider from a sectional lift coefficient at a fixed spanwise location.
project [20,21], respectively. Consequently, it is only meaningful to compare frequencies for
As one would expect, the overall trends are similar to those peak 1 and peak 2 (see Fig. 9), which are presented in Table 5.
observed for the Cp distributions of Fig. 3. When Lz c, all of the We see that the P3-AA and P4-AA simulations with Lz 4c and
Downloaded by 136.159.213.169 on March 6, 2024 | http://arc.aiaa.org | DOI: 10.2514/1.J055304
PyFR simulations overpredict both Cl and Cd . This is especially Lz 7c achieved very good agreement with the experimental
evident for the P3-F simulation with Lz c. However, as Lz is results.
Fig. 10 Time-averaged nondimensional pressure contours, with streamlines, obtained from P3-AA simulations with various Lz . Streamlines were
generated by integrating forward and backward from 50 equispaced seed points located along the line x 0.8.
PARK, WITHERDEN, AND VINCENT 2193
Fig. 11 Instantaneous isosurfaces of the Q criterion colored by nondimensional density and cut by the midspan plane for P3-AA simulations with Lz c
and Lz 4c.
Downloaded by 136.159.213.169 on March 6, 2024 | http://arc.aiaa.org | DOI: 10.2514/1.J055304
Fig. 12 Instantaneous color maps of nondimensional density on the midspan plane. Solid lines denote location of cut planes used for visualization in
Fig. 13.
Fig. 13 Instantaneous isosurfaces of the Q criterion colored by nondimensional density and cut by a plane described in Fig. 12 for P3-AA simulations with
Lz c and Lz 4c.
2194 PARK, WITHERDEN, AND VINCENT
Downloaded by 136.159.213.169 on March 6, 2024 | http://arc.aiaa.org | DOI: 10.2514/1.J055304
Fig. 14 Time-averaged nondimensional pressure contours, with streamlines, obtained from P3-F and P3-AA simulations with Lz c. Streamlines were
generated by integrating forward and backward from 50 equispaced seed points located along the line x 0.8.
Fig. 15 Instantaneous isosurfaces of the Q criterion colored by nondimensional density and cut by the midspan plane for P3-F and P3-AA simulations
with Lz c.
Fig. 16 Wall clock time for each simulation to run 0.1c∕u∞ time units,
normalized by the wall clock time required for the P4-AA simulation with Fig. 17 Average time step for each simulation as measured over
Lz c to run 0.1c∕u∞ time units. 0.1c∕u∞ time units.
PARK, WITHERDEN, AND VINCENT 2195
D. Computational Cost
Fig. 18 Average wall clock time per time step for each simulation as
measured over 0.1c∕u∞ time units, normalised by the wall clock time A total of 12 simulations are run on a variety of different GPU-
required for the P4-AA simulation with Lz c to run 0.1c∕u∞ time accelerated machines: local clusters at Imperial College, London,
units. Emerald at the Science and Technology Facilities Council
Fig. 19 Average time step for the P3-F simulations with various filter application frequencies N as measured over 0.1c∕u∞ time units.
2196 PARK, WITHERDEN, AND VINCENT
Reconstruction Correction Functions,” Computer Methods in Applied International Journal for Numerical Methods in Engineering, Vol. 79,
Mechanics and Engineering, Vol. 296, Nov. 2015, pp. 248–272. No. 11, Sept. 2009, pp. 1309–1331.
doi:10.1016/j.cma.2015.07.023 doi:10.1002/nme.v79:11
[16] Karniadakis, G., and Sherwin, S. J., Spectral/hp Element Methods for [23] Kim, S.-S., Kim, C., Rho, O.-H., and Hong, S. K., “Cures for the
Computational Fluid Dynamics, Oxford Univ. Press, Oxford, England, Shock Instability: Development of a Shock-Stable Roe Scheme,”
U.K., 2005. Journal of Computational Physics, Vol. 185, No. 2, March 2003,
[17] Kirby, R. M., and Karniadakis, G., “De-Aliasing on Non-Uniform pp. 342–374.
Grids: Algorithms and Applications,” Journal of Computational doi:10.1016/S0021-9991(02)00037-2
Physics, Vol. 191, No. 1, 2003, pp. 249–264. [24] Cockburn, B., and Shu, C.-W., “The Local Discontinuous Galerkin
doi:10.1016/S0021-9991(03)00314-0 Method for Time-Dependent Convection-Diffusion Systems,” SIAM
[18] Kirby, R. M., and Sherwin, S. J., “Aliasing Errors Due to Quadratic Journal on Numerical Analysis, Vol. 35, No. 6, 1998, pp. 2440–2463.
Nonlinearities on Triangular Spectral/hp Element Discretisations,” doi:10.1137/S0036142997316712
Journal of Engineering Mathematics, Vol. 56, No. 3, 2006, pp. 273–288. [25] Kennedy, C. A., Carpenter, M. H., and Lewis, R. M., “Low-Storage,
doi:10.1007/s10665-006-9079-5 Explicit Runge–Kutta Schemes for the Compressible Navier–Stokes
[19] Swalwell, K. E., “The Effect of Turbulence on Stall of Horizontal Axis Equations,” Applied Numerical Mathematics, Vol. 35, No. 3, Nov. 2000,
Wind Turbines,” Ph.D. Thesis, Monash Univ., Melbourne, Australia, 2005. pp. 177–219.
[20] Garbaruk, A., Shur, M. L., Strelets, M. Kh., and Travin, A. K., doi:10.1016/S0168-9274(99)00141-5
“3 NACA0021 at 60 o Incidence,” DESider, A European Effort on Hybrid [26] Hairer, E., and Wanner, G., Solving Ordinary Differential Equations II.
RANS-LES Modelling: Results of the European-Union Funded Project, Stiff and Differential-Algebraic Problems, Springer–Verlag, Berlin,
2004-2007, edited by W. Haase, M. Braza, and A. Revell, Springer– 1996.
Verlag, Berlin, 2009, pp. 127–134, Chap. V Applications—Test Cases. [27] Hunt, J. C. R., Wray, A. A., and Moin, P., “Eddies, Streams, and
[21] Garbaruk, A., Leicher, S., Mockett, C. R., Spalart, P. R., Strelets, M. Kh., Convergence Zones in Turbulent Flows,” Proceedings of the Summer
and Thiele, F. H., “Evaluation of Time Sample and Span Size Effects in Program, Center for Turbulence Research, Center for Turbulence
Downloaded by 136.159.213.169 on March 6, 2024 | http://arc.aiaa.org | DOI: 10.2514/1.J055304
DES of Nominally 2D Airfoils Beyond Stall,” Progress in Hybrid RANS- Research, Stanford Univ., 1998, pp. 193–208.
LES Modelling, Vol. 111, edited by S. -H. Peng, P. Doerffer, and W. Haase,
Springer-Verlag, Berlin, 2010, pp. 87–99. H. Blackburn
[22] Geuzaine, C., and Remacle, J.-F., “Gmsh: A 3-D Finite Element Associate Editor
Mesh Generator with Built-in Pre- and Post-Processing Facilities,”