Skip to content

Commit d508ed7

Browse files
committed
modifications for damping factor
1 parent d9b6585 commit d508ed7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

SU2_CFD/src/solvers/CIncEulerSolver.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2556,10 +2556,9 @@ void CIncEulerSolver::BC_Outlet(CGeometry *geometry, CSolver **solver_container,
25562556

25572557
/*--- Only relax when dP is relatively large compared to P itself. ---*/
25582558
if (abs(dP) > abs(Damping * P_domain))
2559-
//dP = Damping * abs(P_domain) * dP;
2560-
dP = Damping * P_domain;
2559+
Damping = 1.0;
25612560

2562-
P_Outlet = P_domain + dP;
2561+
P_Outlet = P_domain + Damping * dP;
25632562

25642563
/*--- The pressure is prescribed at the outlet. ---*/
25652564

0 commit comments

Comments
 (0)