Skip to content

Commit

Permalink
Correct NACA6412 BC assignment (#1815)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielDoehring authored Jan 29, 2024
1 parent 70d365f commit 367881b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions docs/literate/src/files/p4est_from_gmsh.jl
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,8 @@ end #hide #md
# // labeling of the boundary parts
# Physical Line(1) = {4}; // Inflow. Label in Abaqus .inp file: PhysicalLine1
# Physical Line(2) = {2}; // Outflow. Label in Abaqus .inp file: PhysicalLine2
# Physical Line(3) = {1, 3}; // Airfoil. Label in Abaqus .inp file: PhysicalLine3
# Physical Line(4) = {5, 6}; //Upper and lower wall/farfield/... Label in Abaqus .inp file: PhysicalLine4
# Physical Line(3) = {1, 3}; // Upper and lower wall/farfield/... Label in Abaqus .inp file: PhysicalLine3
# Physical Line(4) = {5, 6}; // Airfoil. Label in Abaqus .inp file: PhysicalLine4
# ```
# which are crucial for the correct assignment of boundary conditions in `Trixi.jl`.
# In particular, it is the responsibility of a user to keep track on the physical boundary names between the mesh generation and assignment of boundary condition functions in an elixir.
Expand Down Expand Up @@ -437,8 +437,8 @@ end #hide #md
#
# boundary_conditions = Dict(:PhysicalLine1 => boundary_condition_supersonic_inflow, # Left boundary
# :PhysicalLine2 => boundary_condition_supersonic_outflow, # Right boundary
# :PhysicalLine3 => boundary_condition_slip_wall, # Airfoil
# :PhysicalLine4 => boundary_condition_supersonic_outflow) # Top and bottom boundary
# :PhysicalLine3 => boundary_condition_supersonic_outflow, # Top and bottom boundary
# :PhysicalLine4 => boundary_condition_slip_wall) # Airfoil
#
# semi = SemidiscretizationHyperbolic(mesh, equations, initial_condition, solver,
# boundary_conditions = boundary_conditions)
Expand Down
4 changes: 2 additions & 2 deletions examples/p4est_2d_dgsem/elixir_euler_NACA6412airfoil_mach2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ mesh = P4estMesh{2}(mesh_file, polydeg = polydeg, boundary_symbols = boundary_sy

boundary_conditions = Dict(:PhysicalLine1 => boundary_condition_supersonic_inflow, # Left boundary
:PhysicalLine2 => boundary_condition_supersonic_outflow, # Right boundary
:PhysicalLine3 => boundary_condition_slip_wall, # Airfoil
:PhysicalLine4 => boundary_condition_supersonic_outflow) # Top and bottom boundary
:PhysicalLine3 => boundary_condition_supersonic_outflow, # Top and bottom boundary
:PhysicalLine4 => boundary_condition_slip_wall) # Airfoil

semi = SemidiscretizationHyperbolic(mesh, equations, initial_condition, solver,
boundary_conditions = boundary_conditions)
Expand Down
8 changes: 4 additions & 4 deletions test/test_p4est_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -394,12 +394,12 @@ end
@trixi_testset "elixir_euler_NACA6412airfoil_mach2.jl" begin
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_NACA6412airfoil_mach2.jl"),
l2=[
1.9752162683735258e-9, 3.150450205812513e-9,
1.8885499402935914e-9, 7.273629602920966e-9,
0.19107654776276498, 0.3545913719444839,
0.18492730895077583, 0.817927213517244,
],
linf=[
6.007577890709825e-7, 1.005273289944597e-6,
5.948514542597182e-7, 2.3111764217986774e-6,
2.5397624311491946, 2.7075156425517917, 2.200980534211764,
9.031153939238115,
],
tspan=(0.0, 0.1))
# Ensure that we do not have excessive memory allocations
Expand Down

0 comments on commit 367881b

Please sign in to comment.