Skip to content
Snippets Groups Projects

EulerEq: More follow ups to !155, !156

Open Florian Atteneder requested to merge fa/followup-euler into main
3 files
+ 11
4
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 2
1
@@ -6,12 +6,13 @@
@with_signature function flux(equation::EulerEquation)
@accepts rho, q, E
@unpack eos = equation
u = q/rho
eps = E / rho - q^2 / (2 * rho^2)
p = eos(Pressure, Density, rho, InternalEnergy, eps)
flx_rho = q
flx_q = q^2 / rho + p
flx_E = q / rho * (E + p)
@returns flx_rho, flx_q, flx_E, p
@returns flx_rho, flx_q, flx_E, p, u
end
@with_signature function fv_bdry_flux(equation::EulerEquation)
Loading