Gyre/Mathematics & Numerical Methods
Governing equations
In one minuteGyre solves the compressible Euler and Navier–Stokes equations in conservation form, non-dimensionalised by the free stream, and uses their entropy structure as the organising principle of the discretization.
Gyre models a calorically perfect gas in or space dimensions. The unknowns are the conserved variables
and the governing equations are a system of conservation laws with a source that is zero except in manufactured-solution studies:
For turbulent flow the same system is read as the Reynolds-averaged equations: the state gains one transported variable, , and the viscosity and conductivity gain an eddy contribution. That closure has its own page, Turbulence closure; everything below describes the laminar system it extends.
The inviscid flux in Cartesian direction and the viscous flux are
with the Newtonian stress under Stokes’ hypothesis and Fourier conduction,
The viscous flux depends on the gradient of only quantities, the gradient variables . The discretization lifts and differentiates exactly these.
Reference density, velocity and temperature are the free-stream values, and the reference length is one mesh unit (the chord of the built-in aerofoils, the diameter-independent unit of the cylinder mesh). Consequently
Force coefficients are therefore , and the pressure coefficient is
. The Mach number, the angle of attack (which sets the direction
of and of the lift/drag axes), the Reynolds number, and are entries
of one flat parameter dictionary th; because it is a JAX pytree, each entry is a differentiable
input without any further code.
The discretization is organised around the mathematical entropy
which is strictly convex for . Its gradient defines the entropy variables
Contracting the Euler equations with gives a scalar conservation law for smooth
solutions, , because . The entropy potential
is what the entropy-conservation
condition for two-point fluxes is written in. With viscosity and heat
conduction the entropy can only decay: up to boundary
terms. A scheme that reproduces this inequality discretely cannot blow up through the
mechanism that destabilises under-resolved high-order methods (aliasing-driven entropy
production of the wrong sign). Which parts of this Gyre reproduces discretely, and under
which conditions, is stated with the interface fluxes:
the inviscid volume terms always, the interface terms provably only with es_roe or llf, the viscous
terms not at all. The unit test test_entropy_variables_are_gradient_of_entropy
checks the formula above against jax.grad of .
| key | meaning | default |
|---|---|---|
gamma |
ratio of specific heats | 1.4 |
mach |
free-stream Mach number | 0.5 |
alpha |
angle of attack in radians (API accepts alpha_deg) |
0 |
re |
Reynolds number per unit length; when inviscid | — |
pr |
Prandtl number | 0.72 |
p_back, pt_in, tt_in, t_wall |
boundary data relative to free-stream values | case dependent |
suth |
Sutherland constant ; absent means constant viscosity | absent |