From 2f80653728105fff0edf006844f28e4c63c594a7 Mon Sep 17 00:00:00 2001 From: Daniel_Doehring Date: Fri, 10 Jan 2025 11:08:59 +0100 Subject: [PATCH] seperate using --- examples/dgmulti_1d/elixir_euler_fdsbp_periodic.jl | 3 ++- examples/dgmulti_1d/elixir_euler_flux_diff.jl | 3 ++- examples/dgmulti_2d/elixir_advection_diffusion.jl | 3 ++- examples/dgmulti_2d/elixir_advection_diffusion_nonperiodic.jl | 3 ++- examples/dgmulti_2d/elixir_advection_diffusion_periodic.jl | 3 ++- examples/dgmulti_2d/elixir_euler_bilinear.jl | 3 ++- examples/dgmulti_2d/elixir_euler_brown_minion_vortex.jl | 3 ++- examples/dgmulti_2d/elixir_euler_curved.jl | 3 ++- examples/dgmulti_2d/elixir_euler_fdsbp_periodic.jl | 3 ++- .../dgmulti_2d/elixir_euler_kelvin_helmholtz_instability.jl | 3 ++- .../dgmulti_2d/elixir_euler_rayleigh_taylor_instability.jl | 3 ++- examples/dgmulti_2d/elixir_euler_triangulate_pkg_mesh.jl | 3 ++- examples/dgmulti_2d/elixir_euler_weakform.jl | 3 ++- examples/dgmulti_2d/elixir_euler_weakform_periodic.jl | 3 ++- examples/dgmulti_3d/elixir_euler_curved.jl | 3 ++- examples/dgmulti_3d/elixir_euler_weakform.jl | 3 ++- examples/dgmulti_3d/elixir_euler_weakform_periodic.jl | 3 ++- 17 files changed, 34 insertions(+), 17 deletions(-) diff --git a/examples/dgmulti_1d/elixir_euler_fdsbp_periodic.jl b/examples/dgmulti_1d/elixir_euler_fdsbp_periodic.jl index 6abd7118fe3..55476266b9d 100644 --- a/examples/dgmulti_1d/elixir_euler_fdsbp_periodic.jl +++ b/examples/dgmulti_1d/elixir_euler_fdsbp_periodic.jl @@ -1,5 +1,6 @@ -using Trixi, OrdinaryDiffEq +using OrdinaryDiffEq +using Trixi dg = DGMulti(element_type = Line(), approximation_type = periodic_derivative_operator(derivative_order = 1, diff --git a/examples/dgmulti_1d/elixir_euler_flux_diff.jl b/examples/dgmulti_1d/elixir_euler_flux_diff.jl index ab5f8e12267..d5447880dd9 100644 --- a/examples/dgmulti_1d/elixir_euler_flux_diff.jl +++ b/examples/dgmulti_1d/elixir_euler_flux_diff.jl @@ -1,5 +1,6 @@ -using Trixi, OrdinaryDiffEq +using OrdinaryDiffEq +using Trixi surface_flux = FluxLaxFriedrichs() volume_flux = flux_ranocha diff --git a/examples/dgmulti_2d/elixir_advection_diffusion.jl b/examples/dgmulti_2d/elixir_advection_diffusion.jl index f6ecd6e9e49..3bb1d92e955 100644 --- a/examples/dgmulti_2d/elixir_advection_diffusion.jl +++ b/examples/dgmulti_2d/elixir_advection_diffusion.jl @@ -1,5 +1,6 @@ -using Trixi, OrdinaryDiffEq +using OrdinaryDiffEq +using Trixi dg = DGMulti(polydeg = 3, element_type = Tri(), approximation_type = Polynomial(), surface_integral = SurfaceIntegralWeakForm(flux_lax_friedrichs), diff --git a/examples/dgmulti_2d/elixir_advection_diffusion_nonperiodic.jl b/examples/dgmulti_2d/elixir_advection_diffusion_nonperiodic.jl index bbadc57b63a..06765cd1905 100644 --- a/examples/dgmulti_2d/elixir_advection_diffusion_nonperiodic.jl +++ b/examples/dgmulti_2d/elixir_advection_diffusion_nonperiodic.jl @@ -1,5 +1,6 @@ -using Trixi, OrdinaryDiffEq +using OrdinaryDiffEq +using Trixi dg = DGMulti(polydeg = 3, element_type = Quad(), approximation_type = Polynomial(), surface_integral = SurfaceIntegralWeakForm(flux_lax_friedrichs), diff --git a/examples/dgmulti_2d/elixir_advection_diffusion_periodic.jl b/examples/dgmulti_2d/elixir_advection_diffusion_periodic.jl index a9cc8bb8c34..6bfd462c12d 100644 --- a/examples/dgmulti_2d/elixir_advection_diffusion_periodic.jl +++ b/examples/dgmulti_2d/elixir_advection_diffusion_periodic.jl @@ -1,5 +1,6 @@ -using Trixi, OrdinaryDiffEq +using OrdinaryDiffEq +using Trixi dg = DGMulti(polydeg = 1, element_type = Tri(), approximation_type = Polynomial(), surface_integral = SurfaceIntegralWeakForm(flux_lax_friedrichs), diff --git a/examples/dgmulti_2d/elixir_euler_bilinear.jl b/examples/dgmulti_2d/elixir_euler_bilinear.jl index cd498bf39b8..e115a5a7c75 100644 --- a/examples/dgmulti_2d/elixir_euler_bilinear.jl +++ b/examples/dgmulti_2d/elixir_euler_bilinear.jl @@ -1,5 +1,6 @@ -using Trixi, OrdinaryDiffEq +using OrdinaryDiffEq +using Trixi dg = DGMulti(polydeg = 3, element_type = Quad(), approximation_type = SBP(), surface_integral = SurfaceIntegralWeakForm(flux_hll), diff --git a/examples/dgmulti_2d/elixir_euler_brown_minion_vortex.jl b/examples/dgmulti_2d/elixir_euler_brown_minion_vortex.jl index 6a402b84acc..610382c6ca3 100644 --- a/examples/dgmulti_2d/elixir_euler_brown_minion_vortex.jl +++ b/examples/dgmulti_2d/elixir_euler_brown_minion_vortex.jl @@ -1,5 +1,6 @@ -using Trixi, OrdinaryDiffEq +using OrdinaryDiffEq +using Trixi dg = DGMulti(polydeg = 4, element_type = Quad(), approximation_type = Polynomial(), surface_integral = SurfaceIntegralWeakForm(FluxLaxFriedrichs()), diff --git a/examples/dgmulti_2d/elixir_euler_curved.jl b/examples/dgmulti_2d/elixir_euler_curved.jl index 48662f4b12b..e62578397d3 100644 --- a/examples/dgmulti_2d/elixir_euler_curved.jl +++ b/examples/dgmulti_2d/elixir_euler_curved.jl @@ -1,5 +1,6 @@ -using Trixi, OrdinaryDiffEq +using OrdinaryDiffEq +using Trixi dg = DGMulti(polydeg = 3, element_type = Quad(), approximation_type = SBP(), surface_integral = SurfaceIntegralWeakForm(flux_hll), diff --git a/examples/dgmulti_2d/elixir_euler_fdsbp_periodic.jl b/examples/dgmulti_2d/elixir_euler_fdsbp_periodic.jl index 3a73089b566..659ff1b89e8 100644 --- a/examples/dgmulti_2d/elixir_euler_fdsbp_periodic.jl +++ b/examples/dgmulti_2d/elixir_euler_fdsbp_periodic.jl @@ -1,5 +1,6 @@ -using Trixi, OrdinaryDiffEq +using OrdinaryDiffEq +using Trixi dg = DGMulti(element_type = Quad(), approximation_type = periodic_derivative_operator(derivative_order = 1, diff --git a/examples/dgmulti_2d/elixir_euler_kelvin_helmholtz_instability.jl b/examples/dgmulti_2d/elixir_euler_kelvin_helmholtz_instability.jl index df45d95ee19..f1f5795dd0f 100644 --- a/examples/dgmulti_2d/elixir_euler_kelvin_helmholtz_instability.jl +++ b/examples/dgmulti_2d/elixir_euler_kelvin_helmholtz_instability.jl @@ -1,5 +1,6 @@ -using Trixi, OrdinaryDiffEq +using OrdinaryDiffEq +using Trixi dg = DGMulti(polydeg = 3, element_type = Quad(), approximation_type = SBP(), surface_integral = SurfaceIntegralWeakForm(FluxLaxFriedrichs()), diff --git a/examples/dgmulti_2d/elixir_euler_rayleigh_taylor_instability.jl b/examples/dgmulti_2d/elixir_euler_rayleigh_taylor_instability.jl index 49c8b28eaf8..fae0d703bf7 100644 --- a/examples/dgmulti_2d/elixir_euler_rayleigh_taylor_instability.jl +++ b/examples/dgmulti_2d/elixir_euler_rayleigh_taylor_instability.jl @@ -1,5 +1,6 @@ -using Trixi, OrdinaryDiffEq +using OrdinaryDiffEq +using Trixi ############################################################################### # semidiscretization of the compressible Euler equations diff --git a/examples/dgmulti_2d/elixir_euler_triangulate_pkg_mesh.jl b/examples/dgmulti_2d/elixir_euler_triangulate_pkg_mesh.jl index 11a7e02b1c1..c21c876621d 100644 --- a/examples/dgmulti_2d/elixir_euler_triangulate_pkg_mesh.jl +++ b/examples/dgmulti_2d/elixir_euler_triangulate_pkg_mesh.jl @@ -1,5 +1,6 @@ -using Trixi, OrdinaryDiffEq +using OrdinaryDiffEq +using Trixi dg = DGMulti(polydeg = 3, element_type = Tri(), surface_integral = SurfaceIntegralWeakForm(flux_hll), diff --git a/examples/dgmulti_2d/elixir_euler_weakform.jl b/examples/dgmulti_2d/elixir_euler_weakform.jl index ecf5e94a86b..94979c666a1 100644 --- a/examples/dgmulti_2d/elixir_euler_weakform.jl +++ b/examples/dgmulti_2d/elixir_euler_weakform.jl @@ -1,5 +1,6 @@ -using Trixi, OrdinaryDiffEq +using OrdinaryDiffEq +using Trixi dg = DGMulti(polydeg = 3, element_type = Tri(), approximation_type = Polynomial(), surface_integral = SurfaceIntegralWeakForm(flux_hll), diff --git a/examples/dgmulti_2d/elixir_euler_weakform_periodic.jl b/examples/dgmulti_2d/elixir_euler_weakform_periodic.jl index 307bf5cbf4a..fab93008b46 100644 --- a/examples/dgmulti_2d/elixir_euler_weakform_periodic.jl +++ b/examples/dgmulti_2d/elixir_euler_weakform_periodic.jl @@ -1,5 +1,6 @@ -using Trixi, OrdinaryDiffEq +using OrdinaryDiffEq +using Trixi dg = DGMulti(polydeg = 3, element_type = Tri(), approximation_type = Polynomial(), surface_integral = SurfaceIntegralWeakForm(flux_hll), diff --git a/examples/dgmulti_3d/elixir_euler_curved.jl b/examples/dgmulti_3d/elixir_euler_curved.jl index 67c84b50974..945382b5c7f 100644 --- a/examples/dgmulti_3d/elixir_euler_curved.jl +++ b/examples/dgmulti_3d/elixir_euler_curved.jl @@ -1,5 +1,6 @@ -using Trixi, OrdinaryDiffEq +using OrdinaryDiffEq +using Trixi dg = DGMulti(polydeg = 3, element_type = Hex(), approximation_type = SBP(), surface_integral = SurfaceIntegralWeakForm(flux_hll), diff --git a/examples/dgmulti_3d/elixir_euler_weakform.jl b/examples/dgmulti_3d/elixir_euler_weakform.jl index 6e06b35c4f6..568c35d1532 100644 --- a/examples/dgmulti_3d/elixir_euler_weakform.jl +++ b/examples/dgmulti_3d/elixir_euler_weakform.jl @@ -1,5 +1,6 @@ -using Trixi, OrdinaryDiffEq +using OrdinaryDiffEq +using Trixi dg = DGMulti(polydeg = 3, element_type = Tet(), surface_integral = SurfaceIntegralWeakForm(flux_hll), diff --git a/examples/dgmulti_3d/elixir_euler_weakform_periodic.jl b/examples/dgmulti_3d/elixir_euler_weakform_periodic.jl index bc963a3a2fd..bac77ce6f8a 100644 --- a/examples/dgmulti_3d/elixir_euler_weakform_periodic.jl +++ b/examples/dgmulti_3d/elixir_euler_weakform_periodic.jl @@ -1,5 +1,6 @@ -using Trixi, OrdinaryDiffEq +using OrdinaryDiffEq +using Trixi dg = DGMulti(polydeg = 3, element_type = Tet(), approximation_type = Polynomial(), surface_integral = SurfaceIntegralWeakForm(flux_hll),