Skip to content

Commit

Permalink
Update test vals
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielDoehring committed Nov 28, 2023
1 parent b89d014 commit 4c2e3c2
Show file tree
Hide file tree
Showing 27 changed files with 98 additions and 152 deletions.
2 changes: 1 addition & 1 deletion examples/dgmulti_2d/elixir_euler_bilinear.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Trixi, OrdinaryDiffEq

dg = DGMulti(polydeg = 3, element_type = Quad(), approximation_type = SBP(),
surface_integral = SurfaceIntegralWeakForm(FluxHLL(min_max_speed_naive)),
surface_integral = SurfaceIntegralWeakForm(flux_hll),
volume_integral = VolumeIntegralFluxDifferencing(flux_ranocha))

equations = CompressibleEulerEquations2D(1.4)
Expand Down
2 changes: 1 addition & 1 deletion examples/dgmulti_2d/elixir_euler_curved.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Trixi, OrdinaryDiffEq

dg = DGMulti(polydeg = 3, element_type = Quad(), approximation_type = SBP(),
surface_integral = SurfaceIntegralWeakForm(FluxHLL(min_max_speed_naive)),
surface_integral = SurfaceIntegralWeakForm(flux_hll),
volume_integral = VolumeIntegralFluxDifferencing(flux_ranocha))

equations = CompressibleEulerEquations2D(1.4)
Expand Down
2 changes: 1 addition & 1 deletion examples/dgmulti_2d/elixir_euler_fdsbp_periodic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dg = DGMulti(element_type = Quad(),
accuracy_order = 4,
xmin = 0.0, xmax = 1.0,
N = 50),
surface_flux = FluxHLL(min_max_speed_naive),
surface_flux = flux_hll,
volume_integral = VolumeIntegralWeakForm())

equations = CompressibleEulerEquations2D(1.4)
Expand Down
2 changes: 1 addition & 1 deletion examples/dgmulti_2d/elixir_euler_triangulate_pkg_mesh.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Trixi, OrdinaryDiffEq

dg = DGMulti(polydeg = 3, element_type = Tri(),
surface_integral = SurfaceIntegralWeakForm(FluxHLL(min_max_speed_naive)),
surface_integral = SurfaceIntegralWeakForm(flux_hll),
volume_integral = VolumeIntegralWeakForm())

equations = CompressibleEulerEquations2D(1.4)
Expand Down
2 changes: 1 addition & 1 deletion examples/dgmulti_2d/elixir_euler_weakform.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Trixi, OrdinaryDiffEq

dg = DGMulti(polydeg = 3, element_type = Tri(), approximation_type = Polynomial(),
surface_integral = SurfaceIntegralWeakForm(FluxHLL(min_max_speed_naive)),
surface_integral = SurfaceIntegralWeakForm(flux_hll),
volume_integral = VolumeIntegralWeakForm())

equations = CompressibleEulerEquations2D(1.4)
Expand Down
2 changes: 1 addition & 1 deletion examples/dgmulti_2d/elixir_euler_weakform_periodic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Trixi, OrdinaryDiffEq

dg = DGMulti(polydeg = 3, element_type = Tri(), approximation_type = Polynomial(),
surface_integral = SurfaceIntegralWeakForm(FluxHLL(min_max_speed_naive)),
surface_integral = SurfaceIntegralWeakForm(flux_hll),
volume_integral = VolumeIntegralWeakForm())

equations = CompressibleEulerEquations2D(1.4)
Expand Down
2 changes: 1 addition & 1 deletion examples/dgmulti_3d/elixir_euler_weakform.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Trixi, OrdinaryDiffEq

dg = DGMulti(polydeg = 3, element_type = Tet(),
surface_integral = SurfaceIntegralWeakForm(FluxHLL(min_max_speed_naive)),
surface_integral = SurfaceIntegralWeakForm(flux_hll),
volume_integral = VolumeIntegralWeakForm())

equations = CompressibleEulerEquations3D(1.4)
Expand Down
2 changes: 1 addition & 1 deletion examples/dgmulti_3d/elixir_euler_weakform_periodic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Trixi, OrdinaryDiffEq

dg = DGMulti(polydeg = 3, element_type = Tet(), approximation_type = Polynomial(),
surface_integral = SurfaceIntegralWeakForm(FluxHLL(min_max_speed_naive)),
surface_integral = SurfaceIntegralWeakForm(flux_hll),
volume_integral = VolumeIntegralWeakForm())

equations = CompressibleEulerEquations3D(1.4)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ end
initial_condition = initial_condition_taylor_green_vortex

volume_flux = flux_ranocha
solver = DGSEM(polydeg = 3, surface_flux = FluxHLL(min_max_speed_naive),
solver = DGSEM(polydeg = 3, surface_flux = flux_hll,
volume_integral = VolumeIntegralFluxDifferencing(volume_flux))

coordinates_min = (-1.0, -1.0, -1.0) .* pi
Expand Down
2 changes: 1 addition & 1 deletion examples/structured_1d_dgsem/elixir_euler_source_terms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ equations = CompressibleEulerEquations1D(1.4)
initial_condition = initial_condition_convergence_test

# Note that the expected EOC of 5 is not reached with this flux.
# Using FluxHLL(min_max_speed_naive) instead yields the expected EOC.
# Using flux_hll instead yields the expected EOC.
solver = DGSEM(polydeg = 4, surface_flux = flux_lax_friedrichs)

coordinates_min = (0.0,)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ equations = PolytropicEulerEquations2D(gamma, kappa)
initial_condition = initial_condition_convergence_test

volume_flux = flux_winters_etal
solver = DGSEM(polydeg = 3, surface_flux = FluxHLL(min_max_speed_naive),
solver = DGSEM(polydeg = 3, surface_flux = flux_hll,
volume_integral = VolumeIntegralFluxDifferencing(volume_flux))

coordinates_min = (0.0, 0.0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ end
initial_condition = initial_condition_wave

volume_flux = flux_winters_etal
solver = DGSEM(polydeg = 2, surface_flux = FluxHLL(min_max_speed_naive),
solver = DGSEM(polydeg = 2, surface_flux = flux_hll,
volume_integral = VolumeIntegralFluxDifferencing(volume_flux))

coordinates_min = (-2.0, -1.0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ end
initial_condition = initial_condition_wave

volume_flux = flux_winters_etal
solver = DGSEM(polydeg = 2, surface_flux = FluxHLL(min_max_speed_naive),
solver = DGSEM(polydeg = 2, surface_flux = flux_hll,
volume_integral = VolumeIntegralFluxDifferencing(volume_flux))

coordinates_min = (-2.0, -1.0)
Expand Down
2 changes: 1 addition & 1 deletion examples/tree_1d_dgsem/elixir_euler_source_terms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ equations = CompressibleEulerEquations1D(1.4)
initial_condition = initial_condition_convergence_test

# Note that the expected EOC of 5 is not reached with this flux.
# Using FluxHLL(min_max_speed_naive) instead yields the expected EOC.
# Using flux_hll instead yields the expected EOC.
solver = DGSEM(polydeg = 4, surface_flux = flux_lax_friedrichs)

coordinates_min = 0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ boundary_condition = BoundaryConditionDirichlet(initial_condition)

volume_flux = (flux_wintermeyer_etal, flux_nonconservative_wintermeyer_etal)
solver = DGSEM(polydeg = 4,
surface_flux = (FluxHLL(min_max_speed_naive),
surface_flux = (flux_hll,
flux_nonconservative_fjordholm_etal),
volume_integral = VolumeIntegralFluxDifferencing(volume_flux))

Expand Down
2 changes: 1 addition & 1 deletion examples/tree_3d_dgsem/elixir_euler_sedov_blast_wave.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function boundary_condition_sedov_self_gravity(u_inner, orientation, direction,
end
boundary_conditions = boundary_condition_sedov_self_gravity

surface_flux = FluxHLL(min_max_speed_naive)
surface_flux = flux_hll
volume_flux = flux_ranocha
polydeg = 3
basis = LobattoLegendreBasis(polydeg)
Expand Down
2 changes: 1 addition & 1 deletion examples/unstructured_2d_dgsem/elixir_euler_periodic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ boundary_conditions = boundary_condition_periodic
###############################################################################
# Get the DG approximation space

solver = DGSEM(polydeg = 6, surface_flux = FluxRotated(FluxHLL(min_max_speed_naive)))
solver = DGSEM(polydeg = 6, surface_flux = FluxRotated(flux_hll))

###############################################################################
# Get the curved quad mesh from a file (downloads the file if not available locally)
Expand Down
2 changes: 1 addition & 1 deletion examples/unstructured_2d_dgsem/elixir_euler_wall_bc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ boundary_conditions = Dict(:Bottom => boundary_condition_uniform_flow,
###############################################################################
# Get the DG approximation space

solver = DGSEM(polydeg = 4, surface_flux = FluxHLL(min_max_speed_naive))
solver = DGSEM(polydeg = 4, surface_flux = flux_hll)

###############################################################################
# Get the curved quad mesh from a file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ boundary_condition = Dict(:OuterCircle => boundary_condition_constant)

volume_flux = (flux_wintermeyer_etal, flux_nonconservative_wintermeyer_etal)
solver = DGSEM(polydeg = 4,
surface_flux = (FluxHLL(min_max_speed_naive),
surface_flux = (flux_hll,
flux_nonconservative_fjordholm_etal),
volume_integral = VolumeIntegralFluxDifferencing(volume_flux))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ boundary_condition = Dict(:OuterCircle => boundary_condition_slip_wall)
###############################################################################
# Get the DG approximation space

surface_flux = (FluxHydrostaticReconstruction(FluxHLL(min_max_speed_naive),
surface_flux = (FluxHydrostaticReconstruction(flux_hll,
hydrostatic_reconstruction_audusse_etal),
flux_nonconservative_audusse_etal)
volume_flux = (flux_wintermeyer_etal, flux_nonconservative_wintermeyer_etal)
Expand Down
70 changes: 29 additions & 41 deletions test/test_dgmulti_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ isdir(outdir) && rm(outdir, recursive = true)
@trixi_testset "elixir_euler_weakform.jl" begin
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_weakform.jl"),
cells_per_dimension=(4, 4),
surface_integral=SurfaceIntegralWeakForm(FluxHLL(min_max_speed_naive)),
# division by 2.0 corresponds to normalization by the square root of the size of the domain
l2=[
0.0013536930300254945,
Expand Down Expand Up @@ -44,6 +45,7 @@ end
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_weakform.jl"),
cells_per_dimension=(4, 4),
approximation_type=SBP(),
surface_integral=SurfaceIntegralWeakForm(FluxHLL(min_max_speed_naive)),
# division by 2.0 corresponds to normalization by the square root of the size of the domain
l2=[
0.0074706882014934735,
Expand Down Expand Up @@ -71,6 +73,7 @@ end
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_weakform.jl"),
cells_per_dimension=(4, 4),
element_type=Quad(),
surface_integral=SurfaceIntegralWeakForm(FluxHLL(min_max_speed_naive)),
# division by 2.0 corresponds to normalization by the square root of the size of the domain
l2=[
0.00031892254415307093,
Expand Down Expand Up @@ -184,16 +187,12 @@ end
@trixi_testset "elixir_euler_bilinear.jl (Bilinear quadrilateral elements, SBP, flux differencing)" begin
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_bilinear.jl"),
l2=[
1.0259435706215337e-5,
9.014090233720625e-6,
9.014090233223014e-6,
2.738953587401793e-5,
1.0259432774540821e-5, 9.014087689495575e-6,
9.01408768888544e-6, 2.738953324859446e-5,
],
linf=[
7.362609083649829e-5,
6.874188055272512e-5,
6.874188052830021e-5,
0.0001912435192696904,
7.362605996297233e-5, 6.874189724781488e-5,
6.874189703509614e-5, 0.00019124355334110277,
])
# Ensure that we do not have excessive memory allocations
# (e.g., from type instabilities)
Expand All @@ -208,16 +207,12 @@ end
@trixi_testset "elixir_euler_curved.jl (Quadrilateral elements, SBP, flux differencing)" begin
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_curved.jl"),
l2=[
1.720476068165337e-5,
1.592168205710526e-5,
1.592168205812963e-5,
4.894094865697305e-5,
1.7204593127904542e-5, 1.5921547179522804e-5,
1.5921547180107928e-5, 4.894071422525737e-5,
],
linf=[
0.00010525416930584619,
0.00010003778091061122,
0.00010003778085621029,
0.00036426282101720275,
0.00010525416937667842, 0.00010003778102718464,
0.00010003778071832059, 0.0003642628211952825,
])
# Ensure that we do not have excessive memory allocations
# (e.g., from type instabilities)
Expand All @@ -232,6 +227,7 @@ end
@trixi_testset "elixir_euler_curved.jl (Quadrilateral elements, GaussSBP, flux differencing)" begin
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_curved.jl"),
approximation_type=GaussSBP(),
surface_integral=SurfaceIntegralWeakForm(FluxHLL(min_max_speed_naive)),
l2=[
3.4666312079259457e-6,
3.4392774480368986e-6,
Expand Down Expand Up @@ -259,6 +255,7 @@ end
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_curved.jl"),
element_type=Tri(), approximation_type=Polynomial(),
volume_integral=VolumeIntegralWeakForm(),
surface_integral=SurfaceIntegralWeakForm(FluxHLL(min_max_speed_naive)),
l2=[
7.905498158659466e-6,
8.731690809663625e-6,
Expand Down Expand Up @@ -330,16 +327,12 @@ end
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_weakform_periodic.jl"),
# division by 2.0 corresponds to normalization by the square root of the size of the domain
l2=[
0.0014986508075708323,
0.001528523420746786,
0.0015285234207473158,
0.004846505183839211,
] ./ 2.0,
0.0007492755162295128, 0.0007641875305302599,
0.0007641875305306243, 0.0024232389721009447,
],
linf=[
0.0015062108658376872,
0.0019373508504645365,
0.0019373508504538783,
0.004742686826709086,
0.0015060064614331736, 0.0019371156800773726,
0.0019371156800769285, 0.004742431684202408,
])
# Ensure that we do not have excessive memory allocations
# (e.g., from type instabilities)
Expand All @@ -354,16 +347,12 @@ end
@trixi_testset "elixir_euler_triangulate_pkg_mesh.jl" begin
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_triangulate_pkg_mesh.jl"),
l2=[
2.344080455438114e-6,
1.8610038753097983e-6,
2.4095165666095305e-6,
6.373308158814308e-6,
2.344076909832665e-6, 1.8610002398709756e-6,
2.4095132179484066e-6, 6.37330249340445e-6,
],
linf=[
2.5099852761334418e-5,
2.2683684021362893e-5,
2.6180448559287584e-5,
5.5752932611508044e-5,
2.509979394305084e-5, 2.2683711321080935e-5,
2.6180377720841363e-5, 5.575278031910713e-5,
])
# Ensure that we do not have excessive memory allocations
# (e.g., from type instabilities)
Expand Down Expand Up @@ -600,16 +589,12 @@ end
@trixi_testset "elixir_euler_fdsbp_periodic.jl" begin
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_fdsbp_periodic.jl"),
l2=[
1.3333320340010056e-6,
2.044834627970641e-6,
2.044834627855601e-6,
5.282189803559564e-6,
1.333332033888785e-6, 2.044834627786368e-6,
2.0448346278315884e-6, 5.282189803437435e-6,
],
linf=[
2.7000151718858945e-6,
3.988595028259212e-6,
3.9885950273710336e-6,
8.848583042286862e-6,
2.7000151703315822e-6, 3.988595025372632e-6,
3.9885950240403645e-6, 8.848583036513702e-6,
])
# Ensure that we do not have excessive memory allocations
# (e.g., from type instabilities)
Expand All @@ -624,6 +609,7 @@ end
@trixi_testset "elixir_euler_fdsbp_periodic.jl (arbitrary reference domain)" begin
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_fdsbp_periodic.jl"),
xmin=-200.0, xmax=100.0, #= parameters for reference interval =#
surface_flux=FluxHLL(min_max_speed_naive),
l2=[
1.333332034149886e-6,
2.0448346280892024e-6,
Expand Down Expand Up @@ -655,6 +641,7 @@ end
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_fdsbp_periodic.jl"),
approximation_type=D,
coordinates_min=(-3.0, -4.0), coordinates_max=(0.0, -1.0),
surface_flux=FluxHLL(min_max_speed_naive),
l2=[
0.07318831033918516,
0.10039910610067465,
Expand Down Expand Up @@ -687,6 +674,7 @@ end
global D = SummationByPartsOperators.couple_continuously(D_local, mesh_local)
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_fdsbp_periodic.jl"),
approximation_type=D,
surface_flux=FluxHLL(min_max_speed_naive),
l2=[
1.5440402410017893e-5,
1.4913189903083485e-5,
Expand Down
Loading

0 comments on commit 4c2e3c2

Please sign in to comment.