Skip to content

Commit

Permalink
Boundary Names for other examples
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielDoehring committed Mar 19, 2024
1 parent d914526 commit a198ee0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions examples/p4est_2d_dgsem/elixir_euler_subsonic_cylinder.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit a198ee0

Please sign in to comment.