Techniquecore
Direct numerical simulation of turbulence
Also called DNS of turbulence.
Resolves all scales down to the Kolmogorov scale. The grid needs about Re^(9/4) points and Re^(3/4) time steps, so the total cost grows like Re^3.
Direct numerical simulation (DNS) of turbulence is the numerical solution of the Navier-Stokes equations on a grid and with a time step fine enough to resolve every eddy, from the size of the flow down to the Kolmogorov scale, with no turbulence model. The Kolmogorov 1941 theory gives the smallest scale and the estimate that the number of grid points grows like , the number of time steps like , and the total work like . Large eddy simulation is the cheaper neighbor: it resolves only the large eddies and represents the rest by a subgrid model such as the Smagorinsky model or the dynamic subgrid model. Reynolds-averaged models resolve none of the eddies.
In plain words
Turbulence is a tangle of eddies of all sizes. A direct simulation follows every one of them. It uses the flow equations as they are, with no extra rules, and it makes the grid so fine that even the smallest eddies span a few cells. This makes the result as good as an experiment for the flow it computes, and better in one way: every value at every point and time is available. The price is very high. When the flow gets faster or larger, the smallest eddies get smaller, so the grid needs many more points and the time steps must get shorter. A tenfold rise in speed costs about a thousand times more work. So direct simulation is a research tool for simple flows at moderate speeds, and its results are used to test the cheaper models.
When it applies
- The flow is turbulent and the Reynolds number is low or moderate, so that grid points fit in memory. Here and are the velocity and size of the large eddies and is the kinematic viscosity in m^2/s.
- The geometry is simple: a periodic box (homogeneous turbulence), a channel, a pipe, a boundary layer on a flat plate, a mixing layer or a jet.
- The aim is understanding or reference data: statistics such as the Reynolds stresses and the dissipation, which are hard to measure, and data to test RANS closures and subgrid models.
- It does not apply to most engineering flows. An airliner wing at would need of the order of points by the estimate below.
The template
Resolution (rule of thumb). Choose the grid spacing so that the smallest resolved wavenumber band reaches the dissipation range. For a pseudo-spectral method with points per side of a box of side , the largest wavenumber after dealiasing is , and the usual criterion is . This criterion is a rule fitted to how well the dissipation spectrum converges; values near 1 are also in use. Choose the box several integral scales wide, so that the largest eddies do not feel the periodicity.
Time step (rule of thumb). For an explicit time stepping, keep the Courant number below about 1 (the CFL condition sets the hard limit for the scheme, and accuracy for the small eddies wants a step near or smaller).
Cost (heuristic). With and :
- grid points: ;
- time step: , so a run over one large-eddy time takes steps;
- work: about , times a factor for the FFT in a spectral code.
The constants depend on the definition of , the resolution criterion and the number of large-eddy times needed for converged statistics (often tens). The exponents follow from the K41 scaling and are as reliable as it is.
Steps.
- Pick the domain, the boundary conditions and the forcing (a fixed pressure gradient in a channel, a forcing of the lowest wavenumbers in a box, or none for decaying turbulence).
- Discretize in space with a high-accuracy method: spectral methods in periodic directions, Chebyshev polynomials across a channel, or high-order finite differences on a staggered grid.
- Advance in time with a Runge-Kutta method for the nonlinear term and often an implicit step for the viscous term, and enforce by a projection or by working with divergence-free basis functions.
- In a pseudo-spectral code, compute the product in physical space and remove aliasing errors by the 2/3 rule or by phase shifts.
- Start from a random field with a chosen spectrum, run until the statistics stop drifting, then average over time and over the homogeneous directions.
- Check the resolution: the energy and dissipation spectra fall off by several decades at , the mean dissipation matches the energy input, and statistics do not change when the grid is refined.
Classic examples
Isotropic turbulence in a box. Orszag and Patterson (1972) used a pseudo-spectral method on a grid, the first direct simulation of three-dimensional turbulence. Later box simulations reached grids of several thousand points per side and are used to measure the Kolmogorov constant and intermittency.
Channel flow. Kim, Moin and Moser (1987) simulated a channel at friction Reynolds number , with Fourier modes along the walls and Chebyshev polynomials across. The grid had about points. Their mean profile and Reynolds stresses became the reference for near-wall models and for wall functions.
Cost table (by hand). With points and steps per large-eddy time and all constants set to one:
| grid points | steps | work | |
|---|---|---|---|
| 178 | |||
| 1000 | |||
| 5623 | |||
| 31623 |
For example and . Each tenfold rise in multiplies the work by 1000.
Variations
- Pseudo-spectral DNS in periodic boxes, the most accurate per grid point for homogeneous turbulence.
- Finite difference and finite volume DNS on staggered grids (the MAC grid), with second- or higher-order central schemes that conserve kinetic energy. These handle more complex geometry, at the price of more points per eddy.
- Forced and decaying turbulence. Forcing the large scales gives a statistically steady state; decaying runs mimic grid turbulence.
- Scalars and other physics. DNS can carry temperature, a passive scalar, buoyancy, particles or a reacting species, each with its own small scale (for a scalar with low diffusivity, the Batchelor scale, smaller than ).
- Quasi-DNS or under-resolved DNS. A grid with somewhat below 1 captures most of the energy but not the dissipation spectrum. It is a different method and must be reported as such.
Pitfalls
- Under-resolution. A grid too coarse for piles up energy at the highest wavenumbers and gives wrong dissipation and intermittency statistics. Check the spectrum.
- Aliasing. Without dealiasing, the nonlinear term in a pseudo-spectral code feeds false energy into resolved modes and can make the run unstable.
- Box too small. If the box is not several integral scales wide, or a channel is too short in the stream direction, the large eddies interact with their periodic copies and the statistics change.
- Unconverged statistics. Averages over too few large-eddy times, or taken before the start-up transient has gone, have large random errors. Report the averaging time.
- Comparing at different Reynolds numbers. DNS is often at lower than the experiment it is compared with; low- effects, such as a short inertial range, are real features of the DNS, not errors.
Exercises
- Water at 20 C has m^2/s. For m^2/s^3, find . (Answer: m.)
- A code runs a flow at in one day. Estimate the time for on the same machine. (Answer: about days, from the estimate.)
- A pseudo-spectral run in a box of side m has and m. Does it meet ? (Answer: 1/m, so ; it does not.)
References
- Stephen B. Pope, Turbulent Flows, Cambridge University Press, 2000, Chapter 9 (9.1.1 the pseudo-spectral method, 9.1.2 the computational cost, 9.1.3 artificial modifications, 9.2.1 channel flow)
- Steven A. Orszag and G. S. Patterson, Numerical simulation of three-dimensional homogeneous isotropic turbulence, Physical Review Letters 28(2), 1972, 76-79, the first direct simulation of isotropic turbulence, pseudo-spectral on a 32^3 grid
- John Kim, Parviz Moin and Robert Moser, Turbulence statistics in fully developed channel flow at low Reynolds number, Journal of Fluid Mechanics 177, 1987, 133-166, the channel flow at a friction Reynolds number of 180, with Fourier and Chebyshev expansions
- Parviz Moin and Krishnan Mahesh, Direct numerical simulation, a tool in turbulence research, Annual Review of Fluid Mechanics 30, 1998, 539-578, resolution requirements, numerical methods and the uses of the data
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag 8EM7F7 Edit this page History Report an error Markdown