Skip to content

Fix vortex street elixir #2360

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 16, 2025
Merged
Changes from 3 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
13 changes: 7 additions & 6 deletions examples/p4est_2d_dgsem/elixir_navierstokes_vortex_street.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,25 @@ using Trixi
# Semidiscretization of the compressible Euler equations

# Fluid parameters
const gamma = 5 / 3
const gamma = 1.4
const prandtl_number = 0.72

# Parameters for compressible von-Karman vortex street
const Re = 500
const Re = 200
const Ma = 0.5f0
const D = 1 # Diameter of the cylinder as in the mesh file

# Parameters that can be freely chosen
const v_in = 1
const p_in = 1
const rho_in = 1

# Parameters that follow from Reynolds and Mach number + adiabatic index gamma
const mu = v_in * D / Re
const nu = v_in * D / Re

const c = v_in / Ma
const p_over_rho = c^2 / gamma
const rho_in = p_in / p_over_rho
const p_in = rho_in * p_over_rho
const mu = rho_in * nu

# Equations for this configuration
equations = CompressibleEulerEquations2D(gamma)
Expand Down Expand Up @@ -101,7 +102,7 @@ analysis_callback = AnalysisCallback(semi, interval = analysis_interval)

alive_callback = AliveCallback(analysis_interval = analysis_interval)

save_solution = SaveSolutionCallback(interval = analysis_interval,
save_solution = SaveSolutionCallback(dt = 1.0,
save_initial_solution = true,
save_final_solution = true,
solution_variables = cons2prim)
Expand Down
Loading