Skip to content

Commit 6797c42

Browse files
committed
change default values 0.1 -> 0.01 for more guaranteed convergence
1 parent d117dae commit 6797c42

File tree

3 files changed

+5
-16
lines changed

3 files changed

+5
-16
lines changed

Common/src/CConfig.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,9 +1384,9 @@ void CConfig::SetConfig_Options() {
13841384
/*!\brief INC_INLET_USENORMAL \n DESCRIPTION: Use the local boundary normal for the flow direction with the incompressible pressure inlet. \ingroup Config*/
13851385
addBoolOption("INC_INLET_USENORMAL", Inc_Inlet_UseNormal, false);
13861386
/*!\brief INC_INLET_DAMPING \n DESCRIPTION: Damping factor applied to the iterative updates to the velocity at a pressure inlet in incompressible flow (0.1 by default). \ingroup Config*/
1387-
addDoubleOption("INC_INLET_DAMPING", Inc_Inlet_Damping, 0.1);
1387+
addDoubleOption("INC_INLET_DAMPING", Inc_Inlet_Damping, 0.01);
13881388
/*!\brief INC_OUTLET_DAMPING \n DESCRIPTION: Damping factor applied to the iterative updates to the pressure at a mass flow outlet in incompressible flow (0.1 by default). \ingroup Config*/
1389-
addDoubleOption("INC_OUTLET_DAMPING", Inc_Outlet_Damping, 0.1);
1389+
addDoubleOption("INC_OUTLET_DAMPING", Inc_Outlet_Damping, 0.01);
13901390

13911391
/*--- Options related to the species solver. ---*/
13921392

SU2_CFD/src/solvers/CIncEulerSolver.cpp

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2601,18 +2601,7 @@ void CIncEulerSolver::BC_Outlet(CGeometry *geometry, CSolver **solver_container,
26012601
//su2double P_domain_max = config->GetRange_Pressure(1);
26022602
//su2double P_domain_range = P_domain_max - P_domain_min;
26032603

2604-
/*--- Do not relax when dP is relatively small compared to the pressure range dp = (P_max-P_min). ---*/
2605-
2606-
/*
2607-
We take the entire range of pressures and we check the relative P and the relative dp
2608-
1. is it sufficient to subtract the min pressure?
2609-
range [0..1]
2610-
range [-1..0]
2611-
range [0..10]
2612-
range [-10..0]
2613-
range [10..11]
2614-
range [-11..10]]
2615-
*/
2604+
/*--- Do not relax when dP is relatively small compared to the pressure range dp = (P-P_min). ---*/
26162605

26172606
if (abs(dP) < abs(Damping * (P_domain-P_domain_min)))
26182607
Damping = 1.0;

config_template.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ INC_TEMPERATURE_REF = 1.0
277277
INC_INLET_TYPE= VELOCITY_INLET
278278
%
279279
% Damping coefficient for iterative updates at pressure inlets. (0.1 by default)
280-
INC_INLET_DAMPING= 0.1
280+
INC_INLET_DAMPING= 0.01
281281
%
282282
% Impose inlet velocity magnitude in the direction of the normal of the inlet face
283283
INC_INLET_USENORMAL= NO
@@ -287,7 +287,7 @@ INC_INLET_USENORMAL= NO
287287
INC_OUTLET_TYPE= PRESSURE_OUTLET
288288
%
289289
% Damping coefficient for iterative updates at mass flow outlets. (0.1 by default)
290-
INC_OUTLET_DAMPING= 0.1
290+
INC_OUTLET_DAMPING= 0.01
291291
%
292292
% Bulk Modulus for computing the Mach number
293293
BULK_MODULUS= 1.42E5

0 commit comments

Comments
 (0)