Skip to content

Commit

Permalink
Merge branch 'LinEuler1D' of github.com:DanielDoehring/Trixi.jl into …
Browse files Browse the repository at this point in the history
…LinEuler1D
  • Loading branch information
DanielDoehring committed Mar 12, 2024
2 parents 287e15b + ebe0a7b commit d9feefc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ using LinearAlgebra: dot
using Trixi

###############################################################################
# semidiscretization of the 1 linearized Euler equations
# semidiscretization of the linearized Euler equations

rho_0 = 1.0
v_0 = 1.0
Expand Down
8 changes: 4 additions & 4 deletions src/equations/linearized_euler_1d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Linearized euler equations in one space dimension. The equations are given by
```math
\partial_t
\begin{pmatrix}
\rho' \\ v_1' \\ \\ p'
\rho' \\ v_1' \\ p'
\end{pmatrix}
+
\partial_x
Expand All @@ -21,11 +21,11 @@ Linearized euler equations in one space dimension. The equations are given by
\end{pmatrix}
=
\begin{pmatrix}
0 \\ 0 \\ 0 \\ 0
0 \\ 0 \\ 0
\end{pmatrix}
```
The bar ``\bar{(\cdot)}`` indicates uniform mean flow variables and c is the speed of sound.
The unknowns are the acoustic velocities ``v' = (v_1', v_2')``, the pressure ``p'`` and the density ``\rho'``.
The unknowns are the acoustic velocity ``v_1'``, the pressure ``p'`` and the density ``\rho'``.
"""
struct LinearizedEulerEquations1D{RealT <: Real} <:
AbstractLinearizedEulerEquations{1, 3}
Expand All @@ -46,7 +46,7 @@ function LinearizedEulerEquations1D(v_mean_global::Real,
rho_mean_global)
end

# Constructor with keywords (note the leading ';)
# Constructor with keywords (note the leading ';')
function LinearizedEulerEquations1D(; v_mean_global::Real,
c_mean_global::Real, rho_mean_global::Real)
return LinearizedEulerEquations1D(v_mean_global, c_mean_global,
Expand Down

0 comments on commit d9feefc

Please sign in to comment.