Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct NACA6412 BC assignment #1815

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading