@@ -17,8 +17,9 @@ Boundary flux as an `SVector`.
1717"""
1818function boundary_condition_outflow (u_inner, orientation_or_normal, direction, x, t, surface_flux_function, eq:: BloodFlowEquations2D )
1919 # Calculate the boundary flux without reflection
20- flux = surface_flux_function (u_inner, u_inner, orientation_or_normal, eq)
21- return flux
20+ flux1 = surface_flux_function[1 ](u_inner, u_inner, orientation_or_normal, eq)
21+ flux2 = surface_flux_function[2 ](u_inner, u_inner, orientation_or_normal, eq)
22+ return flux1,flux2
2223end
2324
2425
@@ -40,8 +41,9 @@ Boundary flux as an `SVector`.
4041"""
4142function boundary_condition_outflow (u_inner, orientation_or_normal, x, t, surface_flux_function, eq:: BloodFlowEquations2D )
4243 # Calculate the boundary flux without reflection
43- flux = surface_flux_function (u_inner, u_inner, orientation_or_normal, eq)
44- return flux
44+ flux1 = surface_flux_function[1 ](u_inner, u_inner, orientation_or_normal, eq)
45+ flux2 = surface_flux_function[2 ](u_inner, u_inner, orientation_or_normal, eq)
46+ return flux1,flux2
4547end
4648
4749
@@ -68,9 +70,11 @@ function boundary_condition_slip_wall(u_inner, orientation_or_normal, direction,
6870
6971 # Calculate the boundary flux based on direction
7072 if iseven (direction)
71- flux = surface_flux_function (u_inner, u_boundary, orientation_or_normal, eq)
73+ flux1 = surface_flux_function[1 ](u_inner, u_boundary, orientation_or_normal, eq)
74+ flux2 = surface_flux_function[2 ](u_inner, u_boundary, orientation_or_normal, eq)
7275 else
73- flux = surface_flux_function (u_boundary, u_inner, orientation_or_normal, eq)
76+ flux1 = surface_flux_function[1 ](u_boundary, u_inner, orientation_or_normal, eq)
77+ flux2 = surface_flux_function[2 ](u_boundary, u_inner, orientation_or_normal, eq)
7478 end
75- return flux
79+ return flux1,flux2
7680end
0 commit comments