Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,12 @@ alive_callback = AliveCallback(analysis_interval = analysis_interval)

stepsize_callback = StepsizeCallback(cfl = 0.25)

save_solution = SaveSolutionCallback(interval = 500,
solution_variables = cons2thermo)

callbacks = CallbackSet(summary_callback,
analysis_callback, alive_callback,
stepsize_callback)
stepsize_callback, save_solution)

###############################################################################
# run the simulation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,12 @@ alive_callback = AliveCallback(analysis_interval = analysis_interval)

stepsize_callback = StepsizeCallback(cfl = 0.5)

save_solution = SaveSolutionCallback(interval = 500,
solution_variables = cons2thermo)

callbacks = CallbackSet(summary_callback,
analysis_callback, alive_callback,
stepsize_callback)
stepsize_callback, save_solution)

###############################################################################
# run the simulation
Expand Down
4 changes: 4 additions & 0 deletions src/equations/nonideal_compressible_euler_1d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ equation of state routines are assumed to be evaluated in terms of `V` and `T`.
return SVector(V, v1, T)
end

varnames(::typeof(cons2thermo), ::NonIdealCompressibleEulerEquations1D) = ("V",
"v1",
"T")

# Calculate 1D flux for a single point
@inline function flux(u, orientation::Integer,
equations::NonIdealCompressibleEulerEquations1D)
Expand Down
5 changes: 5 additions & 0 deletions src/equations/nonideal_compressible_euler_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ varnames(::typeof(cons2prim), ::NonIdealCompressibleEulerEquations2D) = ("rho",
"v2",
"p")

varnames(::typeof(cons2thermo), ::NonIdealCompressibleEulerEquations2D) = ("V",
"v1",
"v2",
"T")

# Calculate flux for a single point
@inline function flux(u, orientation::Integer,
equations::NonIdealCompressibleEulerEquations2D)
Expand Down
Loading