Equation Types
PDE's can be classified as elliptic, parabolic, or hyperbolic. The type of equation will suggest the choice of an appropriate algorithm.
The equation type can change for different flow parameters, or even for different regions within the same domain.
20.4.1 Scalar Equations
All of the scalar equations in fluid dynamics can be written in canonical form as the following 2nd order PDE.
where are any two independent variables. I.e. we could let . In this form, we can identify the equation type by transforming into a quadratic form (derivation not shown)
The equation types are
- Elliptic:
- Parabolic:
- Hyperbolic:
Apparently, the equation type is going to have something to do with the types of roots of the scalar PDE.
Some examples:
- Laplace's Eq.
We know that typical solutions to Laplace's equation are entirely determined by the value at the boundary. The solutions are the smoothest possible functions that satisfy the boundary condition. There are no waves.
- Heat conduction equation
We know that the typical solutions have diffusion-like behavior.
- Linear advection equation
We're not already in canonical form, but we can get there with some algebraic manipulation
Typical solutions to the linear advection equation are waves which propagate at a set speed.
Let's look back at the linear potential equation
The equation type depends on the flow speed (Mach number) of the bulk . For it is elliptic. For it is hyperbolic. We don't get parabolic solutions because near we are going to get shocks and we are obviously not in linear flow.
It is also possible for the equation type to change within the domain. In particular, look at the TSD (transonic disturbance) equation. The selection parameter is
So for we have an elliptic equation, but for we have a hyperbolic equation. These are locally evaluated, so we can change types within the same domain. We can imagine the flow around a wing for which , then in most of the domain and the problem is hyperbolic, but near the front of the wing where the problem becomes elliptic.
20.4.2 Systems of Equations
Moving away from scalar equations to the world of our Euler equations,
Where we've written as a separate independent variable (we can do that because and are independent).
The equation type is given by the characteristics of the flux Jacobian:
- Elliptic: The eigenvalues of are imaginary.
- Parabolic: The eigenvalues are repeated and the eigenvectors are not unique.
- Hyperbolic: The eigenvalues are real and the eigenvectors are unique.
20.4.3 Flux Jacobian for Euler Equations
Recall the definition
Starting at the first element, and recalling that we take the partial derivative holding and constant,
Skipping to the end result,
Let's talk about how we deal with these partial derivatives of pressure with respect to our conserved quantities
From the definition,
Solve for pressure,
Now we can get our partial derivatives easily
We also define the sound speed
Writing our the flux Jacobian in these terms,
If we perform an eigen decomposition of we find that it has eigenvalues
And a complete set of eigenvectors are
This set of eigenvectors are linearly independent and the eigenvalues are all real, which means the Euler equations are a hyperbolic system of equations. In the same way that the scalar advection equation gives wave solutions, the Euler equations will give solutions in which information propagates along characteristics (the eigenvalues) with a wave-like behavior. The eigenvalues we got here are the same characteristics you would get via the method of characteristics in linear fluid dynamics:
- : Shock wave
- : Contact discontinuity
- : Rarefaction (expansion) waves
Mathematically, by doing the eigen decomposition we have solved . This solves the complete Euler equations
We can right-multiply by the inverse of
Now we make an approximation: Assume that the eigenvector is locally constant (in both space in time) such that
We can re-arrange our 's again by pre-multiplying by
We can define a new variable
So we have
Since is simply a diagonal 3x3 matrix, we have now de-coupled our system into three independent equations
While this is not equivalent to the Euler equations, it is a pretty close approximation and it maintains all of the non-linear properties of the Euler equations. Indeed, because of the values the system has the same characteristics as the Euler equations. Now we have a set of 3 advection equations. Therefore, a convenient model for the Euler equations is the linear wave equation
because it will capture the same wave-like behavior of the Euler equations, but most importantly because we have an analytic solution of the linear advection equation which allows us to check both the stability and the accuracy of our solution.
With periodic boundary conditions, we expect the solution to wrap back around to its initial conditions, allowing us to check for errors we may have introduced in our algorithm.
Another model equation we can use for the Euler equations is Burger's equation, which is a nonlinear advection equation
Other model equations we can use to model the Navier-Stokes equations is an advection-diffusion equation, which is simply an addition of a diffusion term to the linear wave equation
A viscous version of Burger's equation also works as a good model for Navier-Stokes
This presents a development path for CFD algorithms. We take an algorithm, apply it to the advection equations and check stability/accuracy, then apply Burger's equation, then add viscous effects, then we may be able to solve the full Euler's equations.