Skip to content

Commit

Permalink
use Dirichlet for in-out boundary diffusion
Browse files Browse the repository at this point in the history
  • Loading branch information
mukul1992 committed Aug 15, 2024
1 parent db9143f commit e18ba0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions amr-wind/diffusion/incflo_diffusion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ Vector<Array<LinOpBCType, AMREX_SPACEDIM>> get_diffuse_tensor_bc(
switch (bc) {
case BC::pressure_inflow:
case BC::pressure_outflow:
case BC::mass_inflow_outflow:
case BC::zero_gradient: {
// All three components are Neumann
r[0][dir] = LinOpBCType::Neumann;
Expand All @@ -30,6 +29,7 @@ Vector<Array<LinOpBCType, AMREX_SPACEDIM>> get_diffuse_tensor_bc(
}
case BC::wave_generation:
case BC::mass_inflow:
case BC::mass_inflow_outflow:
case BC::no_slip_wall: {
// All three components are Dirichlet
r[0][dir] = LinOpBCType::Dirichlet;
Expand Down Expand Up @@ -78,7 +78,6 @@ get_diffuse_scalar_bc(amr_wind::Field& scalar, Orientation::Side side) noexcept
switch (bc) {
case BC::pressure_inflow:
case BC::pressure_outflow:
case BC::mass_inflow_outflow:
case BC::zero_gradient:
case BC::symmetric_wall:
case BC::slip_wall: {
Expand All @@ -92,6 +91,7 @@ get_diffuse_scalar_bc(amr_wind::Field& scalar, Orientation::Side side) noexcept
}
case BC::wave_generation:
case BC::mass_inflow:
case BC::mass_inflow_outflow:
case BC::no_slip_wall: {
r[dir] = LinOpBCType::Dirichlet;
break;
Expand Down

0 comments on commit e18ba0b

Please sign in to comment.