Skip to content

Commit

Permalink
Start
Browse files Browse the repository at this point in the history
  • Loading branch information
huiyuxie committed Nov 6, 2024
1 parent 91eaaf6 commit 5e4fbf3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/tree_2d_dgsem/elixir_acoustics_gauss_wall.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ A Gaussian pulse, used in the `gauss_wall` example elixir in combination with
[`boundary_condition_wall`](@ref). Uses the global mean values from `equations`.
"""
function initial_condition_gauss_wall(x, t, equations::AcousticPerturbationEquations2D)
v1_prime = 0.0
v2_prime = 0.0
p_prime = exp(-log(2) * (x[1]^2 + (x[2] - 25)^2) / 25)
RealT = eltype(x)
v1_prime = 0
v2_prime = 0
p_prime = exp(-log(convert(RealT, 2)) * (x[1]^2 + (x[2] - 25)^2) / 25)

prim = SVector(v1_prime, v2_prime, p_prime, global_mean_vars(equations)...)

Expand Down

0 comments on commit 5e4fbf3

Please sign in to comment.