Skip to content

Commit 0da6ece

Browse files
committed
cleanup
1 parent e3c1b4a commit 0da6ece

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

Common/include/CConfig.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,7 @@ class CConfig {
10911091
su2double *FreeStreamTurboNormal; /*!< \brief Direction to initialize the flow in turbomachinery computation */
10921092
su2double Restart_Bandwidth_Agg; /*!< \brief The aggregate of the bandwidth for writing binary restarts (to be averaged later). */
10931093
su2double Max_Vel2; /*!< \brief The maximum velocity^2 in the domain for the incompressible preconditioner. */
1094-
su2double Range_Pressure[2]; /*!< \brief The pressure difference pmax-pmin in the domain for the target mass flow rate scaling. */
1094+
su2double RangePressure[2]; /*!< \brief The pressure difference pmax-pmin in the domain for the target mass flow rate scaling. */
10951095
bool topology_optimization; /*!< \brief If the structural solver should consider a variable density field to penalize element stiffness. */
10961096
string top_optim_output_file; /*!< \brief File to where the derivatives w.r.t. element densities will be written to. */
10971097
su2double simp_exponent; /*!< \brief Exponent for the density-based stiffness penalization of the SIMP method. */

SU2_CFD/include/solvers/CIncEulerSolver.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class CIncEulerSolver : public CFVMFlowSolverBase<CIncEulerVariable, ENUM_REGIME
105105
* \param[in] config - Definition of the particular problem.
106106
* \param[in] iMesh - current mesh level for the multigrid.
107107
*/
108-
void SetRange_Pressure(CGeometry *geometry,
108+
void SetRangePressure(CGeometry *geometry,
109109
CSolver **solver_container,
110110
CConfig *config,
111111
unsigned short iMesh);

SU2_CFD/src/solvers/CIncEulerSolver.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ void CIncEulerSolver::CommonPreprocessing(CGeometry *geometry, CSolver **solver_
987987

988988
/*--- Update the pressure range in the domain for target outflow mass flow rate. ---*/
989989

990-
SetRange_Pressure(geometry, solver_container, config, iMesh);
990+
SetRangePressure(geometry, solver_container, config, iMesh);
991991

992992
/*--- Compute properties needed for mass flow BCs. ---*/
993993

@@ -1976,7 +1976,7 @@ void CIncEulerSolver::SetBeta_Parameter(CGeometry *geometry, CSolver **solver_co
19761976

19771977
}
19781978

1979-
void CIncEulerSolver::SetRange_Pressure(CGeometry *geometry, CSolver **solver_container,
1979+
void CIncEulerSolver::SetRangePressure(CGeometry *geometry, CSolver **solver_container,
19801980
CConfig *config, unsigned short iMesh) {
19811981
static su2double MinP, MaxP;
19821982

@@ -2007,7 +2007,7 @@ void CIncEulerSolver::SetRange_Pressure(CGeometry *geometry, CSolver **solver_co
20072007
maxP = MaxP;
20082008
SU2_MPI::Allreduce(&maxP, &MaxP, 1, MPI_DOUBLE, MPI_MAX, SU2_MPI::GetComm());
20092009

2010-
config->SetRange_Pressure(MinP,MaxP);
2010+
config->SetRangePressure(MinP,MaxP);
20112011

20122012
}
20132013
END_SU2_OMP_SAFE_GLOBAL_ACCESS
@@ -2597,9 +2597,7 @@ void CIncEulerSolver::BC_Outlet(CGeometry *geometry, CSolver **solver_container,
25972597

25982598
dP = 0.5*Density_Avg*(mDot_Old*mDot_Old - mDot_Target*mDot_Target)/((Density_Avg*Area_Outlet)*(Density_Avg*Area_Outlet));
25992599

2600-
su2double P_domain_min = config->GetRange_Pressure(0);
2601-
//su2double P_domain_max = config->GetRange_Pressure(1);
2602-
//su2double P_domain_range = P_domain_max - P_domain_min;
2600+
su2double P_domain_min = config->GetRangePressure(0);
26032601

26042602
/*--- Do not relax when dP is relatively small compared to the pressure range dp = (P-P_min). ---*/
26052603

0 commit comments

Comments
 (0)