Euler Equations (Compressible)
Theory and Physics
Overview
Professor, what exactly are the compressible Euler equations? Are they different from the incompressible Euler equations?
The Euler equations are the governing equations for fluid motion neglecting viscosity. In the compressible case, density changes, so they take the form of a coupled system of conservation laws including the energy equation. This is the starting point for compressible CFD.
Conservative Form Euler Equations
In one dimension, they can be written using the conservative variable vector $\mathbf{U}$ and flux $\mathbf{F}$ as follows.
Here,
So it's a system of three coupled equations. Are they mass conservation, momentum conservation, and energy conservation?
Exactly. In three dimensions, the momentum equation has three components, resulting in a system of five equations.
To close the system, an equation of state is needed. For an ideal gas, we use
For air, the specific heat ratio is $\gamma = 1.4$.
Properties as a Hyperbolic System
I've heard the Euler equations are hyperbolic. What does that mean?
That's an important concept. For the one-dimensional Euler equations, the condition for being hyperbolic is that all eigenvalues of the Jacobian $\mathbf{A} = \partial\mathbf{F}/\partial\mathbf{U}$ are real. The eigenvalues are
where $a = \sqrt{\gamma p/\rho}$ is the speed of sound. These are called characteristic speeds and represent the speeds at which information propagates.
$\lambda_1$ and $\lambda_3$ correspond to forward and backward acoustic waves, and $\lambda_2$ corresponds to an entropy wave (contact discontinuity). In supersonic flow ($|u| > a$), all eigenvalues have the same sign, meaning information propagates in only one direction. This directly affects how boundary conditions are set in CFD.
So in supersonic flow, information from downstream doesn't propagate upstream. I finally understand why boundary condition settings change depending on the Mach number.
At a subsonic inlet, information like pressure propagates upstream, so one physical quantity is specified from the outside and the rest are extrapolated from the interior. At a supersonic inlet, all characteristics are incoming, so all variables must be specified. If this principle is not followed, unphysical reflected waves will occur.
An 18th-Century Genius's Equations Still Beat at the Heart of CFD
Leonhard Euler derived the fluid motion equations in 1757. These equations, assuming an "ideal fluid" with no viscosity or heat conduction, were criticized at the time as being too abstract. Yet 270 years later, in supersonic and hypersonic CFD, these Euler equations are used even before the viscous-governed Navier-Stokes equations. Why? Because in high-speed flows where viscous effects become extremely small compared to inertial forces, the Euler equations approximate reality well. It's a moment to feel the enduring power of equations that transcend time.
Physical Meaning of Each Term
- Temporal Term $\partial(\rho\phi)/\partial t$: Imagine the moment you turn on a faucet. At first, water comes out in an unstable, spluttering manner, but after a while, it becomes a steady flow, right? This "period of change" is described by the temporal term. The pulsation of blood flow from a heartbeat, or the flow fluctuation each time an engine valve opens and closes—these are all unsteady phenomena. So what is steady-state analysis? It's looking only at "after sufficient time has passed and the flow has settled down"—in other words, setting this term to zero. Since computational cost drops significantly, solving first for a steady state is a basic CFD strategy.
- Convection Term $\nabla \cdot (\rho \mathbf{u} \phi)$: What happens if you drop a leaf into a river? It gets carried downstream by the flow, right? This is "convection"—the effect where fluid motion transports things. Warm air from a heater reaching the far corner of a room is also due to air, the "carrier," transporting heat via convection. Here's the interesting part—this term includes "velocity × velocity," making it nonlinear. That is, as the flow becomes faster, this term rapidly strengthens, making it difficult to control. This is the root cause of turbulence. A common misconception: "Convection and conduction are similar things" → They're completely different! Convection is transport by flow, conduction is transfer by molecules. There's an order-of-magnitude difference in efficiency.
- Diffusion Term $\nabla \cdot (\Gamma \nabla \phi)$: Have you ever put milk in coffee and left it? Even without stirring, after a while they naturally mix, right? That's molecular diffusion. Now a question—honey and water, which flows more easily? Obviously water, right? Honey has high viscosity ($\mu$), so it flows poorly. When viscosity is large, the diffusion term becomes strong, and the fluid moves in a "thick" manner. In low Reynolds number flows (slow, viscous), diffusion dominates. Conversely, in high Re number flows, convection overwhelms and diffusion plays a supporting role.
- Pressure Term $-\nabla p$: When you push the plunger of a syringe, liquid shoots out forcefully from the needle tip, right? Why? Because the plunger side is high pressure, the needle tip is low pressure—this pressure difference provides the force that pushes the fluid. Dam discharge works on the same principle. On a weather map, where isobars are tightly packed? That's right, strong winds blow. "Flow is generated where there is a pressure difference"—this is the physical meaning of the pressure term in the Navier-Stokes equations. A point of confusion here: "Pressure" in CFD is often gauge pressure, not absolute pressure. If results go wrong immediately after switching to compressible analysis, mixing up absolute/gauge pressure might be the cause.
- Source Term $S_\phi$: Heated air rises—why? Because it becomes lighter (lower density) than its surroundings, so buoyancy pushes it upward. This buoyancy is added to the equations as a source term. Other examples: chemical reaction heat generated by a gas stove flame, Lorentz force applied to molten metal in a factory's electromagnetic pump... These are all actions that "inject energy or force into the fluid from the outside," expressed by source terms. What happens if you forget the source term? In natural convection analysis, forgetting buoyancy means the fluid doesn't move at all—a physically impossible result where warm air doesn't rise in a room with the heater on in winter.
Assumptions and Applicability Limits
- Continuum Assumption: Valid for Knudsen number Kn < 0.01 (mean free path ≪ characteristic length)
- Newtonian Fluid Assumption: Linear relationship between shear stress and strain rate (non-Newtonian fluids require viscosity models)
- Incompressibility Assumption (for Ma < 0.3): Treat density as constant. For Mach number ≥ 0.3, compressibility effects must be considered.
- Boussinesq Approximation (natural convection): Density variation considered only in the buoyancy term; constant density used in other terms.
- Non-applicable Cases: Rarefied gas (Kn > 0.1), supersonic/hypersonic flow (shock capturing required), free surface flow (requires VOF/Level Set, etc.)
Dimensional Analysis and Unit Systems
| Variable | SI Unit | Notes / Conversion Memo |
|---|---|---|
| Velocity $u$ | m/s | When converting from volumetric flow rate for inlet conditions, pay attention to cross-sectional area units. |
| Pressure $p$ | Pa | Distinguish between gauge and absolute pressure. Use absolute pressure for compressible analysis. |
| Density $\rho$ | kg/m³ | Air: approx. 1.225 kg/m³ @20°C, Water: approx. 998 kg/m³ @20°C |
| Viscosity Coefficient $\mu$ | Pa·s | Be careful not to confuse with kinematic viscosity $\nu = \mu/\rho$ [m²/s] |
| Reynolds Number $Re$ | Dimensionless | $Re = \rho u L / \mu$. Indicator for laminar/turbulent transition. |
| CFL Number | Dimensionless | $CFL = u \Delta t / \Delta x$. Directly related to time step stability. |
Numerical Methods and Implementation
Numerical Methods
When solving the Euler equations on a computer, handling shock waves is a key point, right?
Exactly. Solutions to the Euler equations include discontinuous solutions like shock waves and contact discontinuities. The techniques to capture these correctly numerically are the core technology of compressible CFD.
Godunov's Method and Riemann Solvers
In Godunov's method, the numerical flux is obtained by solving a local Riemann problem at the cell interface.
Here, $\mathbf{U}^*$ is the solution to the Riemann problem, and $\mathbf{U}_L, \mathbf{U}_R$ are the left and right states at the cell interface. Exact Riemann solvers are computationally expensive, so approximate Riemann solvers are widely used.
| Solver | Features | Advantages | Disadvantages |
|---|---|---|---|
| Roe (1981) | Linearized Riemann solution | High resolution of contact discontinuities | Requires entropy fix |
| HLL (1983) | 2-wave approximation | Robust, simple implementation | Contact discontinuities become diffused |
| HLLC (1994) | 3-wave approximation (includes contact wave) | Resolves contact discontinuities | Slightly more diffusive than Roe |
| AUSM+ (1996) | Mass flux splitting | Applicable to all Mach numbers | Requires parameter tuning |
The Roe Riemann solver is famous, but how is it actually calculated?
Roe computes Roe-averaged quantities from the left and right states to linearize the Jacobian. The Roe-averaged density is defined as $\hat{\rho} = \sqrt{\rho_L \rho_R}$. The numerical flux is
The second term is the upwind term that adds numerical dissipation.
High-Order Accuracy: MUSCL Method and Limiters
With first-order Godunov schemes, shock waves can spread over dozens of cells. For high-order accuracy, the MUSCL (Monotone Upstream-centered Schemes for Conservation Laws) method is used.
Here, $\phi(r)$ is the slope limiter function. Without a limiter, Gibbs oscillations occur near shock waves. Representative limiters include minmod, van Leer, and superbee.
Does the choice of limiter change the results?
It changes them quite a bit. minmod is the most diffusive but stable, superbee is sharp but tends to make expansion waves stair-stepped. Practically, van Leer or van Albada offer a good balance. WENO (Weighted Essentially Non-Oscillatory) schemes offer fifth-order accuracy and excellent shock capturing, but are computationally expensive.
What about time integration?
For explicit methods, TVD Runge-Kutta methods (Shu-Osher 3-stage 3rd-order) are standard. The CFL condition is
with CFL $\leq 1$ being the stability condition. For implicit methods, the LU-SGS (Lower-Upper Symmetric Gauss-Seidel) method is efficient, allowing larger CFL numbers, which speeds up convergence for steady-state calculations.
The Birth of Godunov's Method—A Shock Wave Numerical Solution Born in the 1959 Soviet Union
A revolutionary development for numerically solving the Euler equations was "Godunov's method," proposed in 1959 by the Soviet mathematician Sergei Godunov. Previous finite difference methods struggled to suppress numerical oscillations (Gibbs phenomenon) around shock waves, but Godunov introduced the idea of "solving a Riemann problem at each cell interface." Interestingly, it is said that the original paper contained an honest comment by Godunov himself: "This first-order scheme is not very accurate." Nevertheless, the entire lineage of shock wave computation leading to modern HLLC and Roe schemes lies on the extension of this idea.
Upwind Differencing (Upwind)
First-order upwind: Large numerical diffusion but stable. Second-order upwind: Improved accuracy but risk of oscillations. Essential for high Reynolds number flows.
Central Differencing
Second-order accurate, but numerical oscillations occur for Pe > 2. Suitable for low Reynolds number, diffusion-dominated flows.
TVD Schemes (MUSCL, QUICK, etc.)
Suppress numerical oscillations while maintaining high accuracy via limiter functions. Effective for capturing shock waves and steep gradients.
Finite Volume Method vs Finite Element Method
FVM: Naturally satisfies conservation laws. Mainstream in CFD. FEM: Advantageous for complex geometries and multiphysics. Mesh-free methods like SPH are also developing.
CFL Condition (Courant Number)
Explicit methods: CFL ≤ 1 is the stability condition. Implicit methods: Stable even for CFL > 1, but affects accuracy and iteration count. LES: CFL ≈ 1 recommended. Physical meaning: Information should not travel more than one cell per time step.
Residual Monitoring
Convergence is judged when residuals for continuity, momentum, and energy equations drop by 3-4 orders of magnitude. The mass conservation residual is particularly important.
Relaxation Factors
Typical initial values: Pressure: 0.2–0.3, Velocity: 0.5–0.7. Reduce factors if divergence occurs. Increase after convergence to accelerate.
Internal Iterations for Unsteady Calculations
Iterate within each time step until a steady solution converges. Internal iteration count: 5–20 iterations is a guideline. If residuals fluctuate between time steps, review the time step size.
Analogy for the SIMPLE Method
The SIMPLE method is a "take turns adjusting" approach. First, velocities are provisionally calculated (predictor step), then pressure is corrected so that mass conservation is satisfied with those velocities (corrector step), and then velocities are updated with the corrected pressure—this back-and-forth is repeated to approach the correct solution. It resembles two people leveling a shelf: one adjusts the height, the other balances it, and they repeat this alternately.
Analogy for Upwind Differencing
Upwind differencing is a method that "stands in the river flow and prioritizes information from upstream." A person in the river looking downstream cannot tell where the water comes from—this discretization method reflects the physics that upstream information determines downstream conditions. It's only first-order accurate, but it's highly stable because it correctly captures flow direction.
Practical Guide
Practical Guide
Professor, where are Euler equation solvers used in practice? If viscosity is ignored, is it still meaningful?
Related Topics
なった
詳しく
報告