Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/equations/compressible_euler_energy_with_gravity_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The compressible Euler equations with gravity
\end{pmatrix}
=
\begin{pmatrix}
0 \\ - rho \frac{\partial}{\partial x} \phi \\ - rho \frac{\partial}{\partial y} \phi \\ - rho v \frac{\partial}{\partial x} \phi - rho v \frac{\partial}{\partial y} \phi
0 \\ - \rho \frac{\partial}{\partial x} \phi \\ - \rho \frac{\partial}{\partial y} \phi \\ - \rho v_1 \frac{\partial}{\partial x} \phi - rho v_2 \frac{\partial}{\partial y} \phi
\end{pmatrix}
```
for an ideal gas with ratio of specific heats `gamma`
Expand Down Expand Up @@ -134,7 +134,7 @@ end
rho, rho_v1, rho_v2, rho_e = u
v1 = rho_v1 / rho
v2 = rho_v2 / rho
p = (equations.gamma - 1) * (rho_e - 0.5f0 * (rho_v1 * v1 + rho_v2 * v2))
p = pressure(u, equations)
if orientation == 1
f1 = rho_v1
f2 = rho_v1 * v1 + p
Expand Down
Loading