Skip to content

Commit

Permalink
do not enforce in-out solvability before nodal projection in initial …
Browse files Browse the repository at this point in the history
…iterations
  • Loading branch information
mukul1992 committed Aug 15, 2024
1 parent e18ba0b commit 5856a85
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions amr-wind/projection/incflo_apply_nodal_projection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,12 +355,11 @@ void incflo::ApplyProjection(
}

// Need to apply custom Neumann funcs for inflow-outflow BC
// after setting the inflow vels above.
// after setting the inflow vels above
// and then enforce solvability by matching outflow to inflow.
if (!proj_for_small_dt and !incremental and velocity.has_inout_bndry()) {
velocity.apply_bc_funcs(amr_wind::FieldState::New);
}

if (velocity.has_inout_bndry()) {
amr_wind::nodal_projection::enforce_inout_solvability(
velocity, m_repo.mesh().Geom(), m_repo.num_active_levels());
}
Expand Down

0 comments on commit 5856a85

Please sign in to comment.