Conventions¶
Units. Physical examples are in SI units, and names of variables in the code carry the unit as a suffix (
nu_m2_s,dx_m). Many test problems are dimensionless: lengths in units of the domain size and velocities in units of a reference velocity. The lattice Boltzmann lectures use lattice units, in which the grid spacing, the time step and the reference density are 1; they are written lu, ts and lu/ts in axis labels.Lectures are numbered from 0 to 17. Equations are numbered within a lecture, (1.1), (1.2), …, and figures by lecture, Figure 6.1, Figure 6.2.
Grids. Finite-volume grids are cell-centered: cell lies between the faces and , and unknowns are cell averages. On the staggered grid of Lecture 13, the pressure is stored at cell centers and each velocity component on the faces normal to it. Arrays are indexed
[i, j]with along and along .Cell Péclet number. is based on the grid spacing; on the size of the domain.
Courant and diffusion numbers. and . Lecture 6 writes the Courant number as , as is usual for flux limiters; elsewhere is the kinematic viscosity.
Indices in code start at 0, as in Python.
Fluid properties in
engcfd.constants.FLUIDS_DBare representative values typed in for the examples. Assumed parameters are labelled as assumed.
Symbols¶
| Symbol | Meaning |
|---|---|
| , , | density, dynamic viscosity, kinematic viscosity |
| , , | thermal conductivity, heat capacity, thermal diffusivity |
| diffusivity of a transported scalar | |
| , , | Reynolds, Prandtl and Péclet numbers |
| , , , | Fourier, Damköhler, Froude and Mach numbers |
| , , | grid spacing, time step, grid spacing of a uniform square grid |
| , | Courant number and diffusion number |
| amplification factor of a scheme for the wave of phase angle | |
| weighting function of a convection–diffusion scheme (Lecture 4) | |
| flux limiter as a function of the ratio of consecutive gradients (Lecture 6) | |
| total variation | |
| relaxation factor of SOR (Lecture 3); vorticity (Lecture 14) | |
| (Lecture 3) | convergence factor of an iteration |
| , , | states to the left and right of a discontinuity; shock speed |
| , , | water depth, gravitational acceleration, wave speed (Lecture 9) |
| , , , | pressure, total energy per volume, ratio of heat capacities, speed of sound (Lecture 10) |
| , , | wave-speed estimates of the HLL and HLLC fluxes |
| , | velocity; provisional velocity before the projection |
| , | streamfunction and vorticity (Lecture 14) |
| , , , | populations, equilibrium populations, lattice velocities and weights of the D2Q9 lattice |
| , | relaxation time and squared speed of sound of the lattice; |
| , (Lectures 16, 17) | porosity and permeability |
| conversion of a reactant (Lecture 17) |