From a198ee0256e59f164e87fa24a112a0fae4b7b38b Mon Sep 17 00:00:00 2001 From: Daniel_Doehring Date: Tue, 19 Mar 2024 19:10:29 +0100 Subject: [PATCH] Boundary Names for other examples --- examples/p4est_2d_dgsem/elixir_euler_subsonic_cylinder.jl | 6 +++--- .../elixir_navierstokes_NACA0012airfoil_mach08.jl | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/examples/p4est_2d_dgsem/elixir_euler_subsonic_cylinder.jl b/examples/p4est_2d_dgsem/elixir_euler_subsonic_cylinder.jl index 3a340555dbe..4300bc76d5e 100644 --- a/examples/p4est_2d_dgsem/elixir_euler_subsonic_cylinder.jl +++ b/examples/p4est_2d_dgsem/elixir_euler_subsonic_cylinder.jl @@ -91,14 +91,14 @@ rho_inf = 1.4 U_inf = 0.38 linf = 1.0 # Diameter of circle -drag_coefficient = AnalysisSurfaceIntegral(semi, boundary_condition_slip_wall, +drag_coefficient = AnalysisSurfaceIntegral(semi, :x_neg, DragCoefficient(aoa, rho_inf, U_inf, linf)) -lift_coefficient = AnalysisSurfaceIntegral(semi, boundary_condition_slip_wall, +lift_coefficient = AnalysisSurfaceIntegral(semi, :x_neg, LiftCoefficient(aoa, rho_inf, U_inf, linf)) analysis_callback = AnalysisCallback(semi, interval = analysis_interval, - output_directory = "analysis_results", + output_directory = "out", save_analysis = true, analysis_integrals = (drag_coefficient, lift_coefficient)) diff --git a/examples/p4est_2d_dgsem/elixir_navierstokes_NACA0012airfoil_mach08.jl b/examples/p4est_2d_dgsem/elixir_navierstokes_NACA0012airfoil_mach08.jl index aeb311fbf6b..39a19b0c4e6 100644 --- a/examples/p4est_2d_dgsem/elixir_navierstokes_NACA0012airfoil_mach08.jl +++ b/examples/p4est_2d_dgsem/elixir_navierstokes_NACA0012airfoil_mach08.jl @@ -115,16 +115,17 @@ summary_callback = SummaryCallback() analysis_interval = 2000 -drag_coefficient = AnalysisSurfaceIntegral(semi, boundary_condition_slip_wall, +force_boundary_names = [:AirfoilBottom, :AirfoilTop] +drag_coefficient = AnalysisSurfaceIntegral(semi, force_boundary_names, DragCoefficient(sw_aoa(), sw_rho_inf(), sw_U_inf(equations), sw_linf())) -lift_coefficient = AnalysisSurfaceIntegral(semi, boundary_condition_slip_wall, +lift_coefficient = AnalysisSurfaceIntegral(semi, force_boundary_names, LiftCoefficient(sw_aoa(), sw_rho_inf(), sw_U_inf(equations), sw_linf())) analysis_callback = AnalysisCallback(semi, interval = analysis_interval, - output_directory = "analysis_results", + output_directory = "out", save_analysis = true, analysis_integrals = (drag_coefficient, lift_coefficient))