Skip to content

Commit d66fceb

Browse files
removing WorkingVar from numerics and small cleaning
1 parent 12c3290 commit d66fceb

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

SU2_CFD/include/numerics/CNumerics.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,6 @@ class CNumerics {
103103
su2double
104104
Enthalpy_i, /*!< \brief Enthalpy at point i. */
105105
Enthalpy_j; /*!< \brief Enthalpy at point j. */
106-
su2double
107-
WorkingVariable_i, /*!< \brief Working Variable at point i for incompressible solver. */
108-
WorkingVariable_j; /*!< \brief Working Variable at point j for incompressible solver. */
109106
su2double
110107
dist_i, /*!< \brief Distance of point i to the nearest wall. */
111108
dist_j; /*!< \brief Distance of point j to the nearest wall. */

SU2_CFD/src/numerics/flow/convection/centered.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ CNumerics::ResidualType<> CCentLaxInc_Flow::ComputeResidual(const CConfig* confi
8989

9090
su2double U_i[5] = {0.0}, U_j[5] = {0.0};
9191
su2double ProjGridVel = 0.0, ProjVelocity = 0.0;
92+
su2double WorkingVariable_i, WorkingVariable_j;
9293

9394
/*--- Primitive variables at point i and j ---*/
9495

@@ -330,6 +331,7 @@ CNumerics::ResidualType<> CCentJSTInc_Flow::ComputeResidual(const CConfig* confi
330331

331332
su2double U_i[5] = {0.0}, U_j[5] = {0.0};
332333
su2double ProjGridVel = 0.0;
334+
su2double WorkingVariable_i, WorkingVariable_j;
333335

334336
/*--- Primitive variables at point i and j ---*/
335337

SU2_CFD/src/numerics/flow/convection/fds.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ CNumerics::ResidualType<> CUpwFDSInc_Flow::ComputeResidual(const CConfig *config
9292

9393
su2double U_i[5] = {0.0,0.0,0.0,0.0,0.0}, U_j[5] = {0.0,0.0,0.0,0.0,0.0};
9494
su2double ProjGridVel = 0.0;
95+
su2double WorkingVariable_i, WorkingVariable_j;
9596

9697
AD::StartPreacc();
9798
AD::SetPreaccIn(V_i, nDim+10); AD::SetPreaccIn(V_j, nDim+10); AD::SetPreaccIn(Normal, nDim);

SU2_CFD/src/solvers/CIncEulerSolver.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ CIncEulerSolver::CIncEulerSolver(CGeometry *geometry, CConfig *config, unsigned
5555
bool time_stepping = config->GetTime_Marching() == TIME_MARCHING::TIME_STEPPING;
5656
bool adjoint = (config->GetContinuous_Adjoint()) || (config->GetDiscrete_Adjoint());
5757
const bool centered = config->GetKind_ConvNumScheme_Flow() == SPACE_CENTERED;
58-
const bool energy_multicomponent = ((config->GetKind_FluidModel() == FLUID_MIXTURE) && config->GetEnergy_Equation());
58+
const bool energy_multicomponent = config->GetKind_FluidModel() == FLUID_MIXTURE && config->GetEnergy_Equation();
5959

6060
/* A grid is defined as dynamic if there's rigid grid movement or grid deformation AND the problem is time domain */
6161
dynamic_grid = config->GetDynamic_Grid();
@@ -2218,7 +2218,7 @@ void CIncEulerSolver::BC_Far_Field(CGeometry *geometry, CSolver **solver_contain
22182218

22192219
const bool implicit = config->GetKind_TimeIntScheme() == EULER_IMPLICIT;
22202220
const bool viscous = config->GetViscous();
2221-
const bool energy_multicomponent = ((config->GetKind_FluidModel() == FLUID_MIXTURE) && (config->GetEnergy_Equation()));
2221+
const bool energy_multicomponent = config->GetKind_FluidModel() == FLUID_MIXTURE && config->GetEnergy_Equation();
22222222

22232223
su2double Normal[MAXNDIM] = {0.0};
22242224

@@ -2362,7 +2362,7 @@ void CIncEulerSolver::BC_Inlet(CGeometry *geometry, CSolver **solver_container,
23622362

23632363
const bool implicit = (config->GetKind_TimeIntScheme() == EULER_IMPLICIT);
23642364
const bool viscous = config->GetViscous();
2365-
const bool energy_multicomponent = ((config->GetKind_FluidModel() == FLUID_MIXTURE) && (config->GetEnergy_Equation()));
2365+
const bool energy_multicomponent = config->GetKind_FluidModel() == FLUID_MIXTURE && config->GetEnergy_Equation();
23662366

23672367
string Marker_Tag = config->GetMarker_All_TagBound(val_marker);
23682368

@@ -2623,7 +2623,7 @@ void CIncEulerSolver::BC_Outlet(CGeometry *geometry, CSolver **solver_container,
26232623

26242624
const bool implicit = (config->GetKind_TimeIntScheme() == EULER_IMPLICIT);
26252625
const bool viscous = config->GetViscous();
2626-
const bool energy_multicomponent = ((config->GetKind_FluidModel() == FLUID_MIXTURE) && (config->GetEnergy_Equation()));
2626+
const bool energy_multicomponent = config->GetKind_FluidModel() == FLUID_MIXTURE && config->GetEnergy_Equation();
26272627
string Marker_Tag = config->GetMarker_All_TagBound(val_marker);
26282628

26292629
su2double Normal[MAXNDIM] = {0.0};

SU2_CFD/src/solvers/CIncNSSolver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void CIncNSSolver::Preprocessing(CGeometry *geometry, CSolver **solver_container
6969
const bool limiter = (config->GetKind_SlopeLimit_Flow() != LIMITER::NONE) && (InnerIter <= config->GetLimiterIter());
7070
const bool van_albada = (config->GetKind_SlopeLimit_Flow() == LIMITER::VAN_ALBADA_EDGE);
7171
const bool wall_functions = config->GetWall_Functions();
72-
const bool energy_multicomponent = (config->GetEnergy_Equation()) && (config->GetKind_FluidModel() == FLUID_MIXTURE);
72+
const bool energy_multicomponent = config->GetEnergy_Equation() && config->GetKind_FluidModel() == FLUID_MIXTURE;
7373

7474
/*--- Common preprocessing steps (implemented by CEulerSolver) ---*/
7575

@@ -300,7 +300,7 @@ void CIncNSSolver::Compute_Streamwise_Periodic_Recovered_Values(CConfig *config,
300300

301301
void CIncNSSolver::Viscous_Residual(unsigned long iEdge, CGeometry *geometry, CSolver **solver_container,
302302
CNumerics *numerics, CConfig *config) {
303-
const bool energy_multicomponent = ((config->GetKind_FluidModel() == FLUID_MIXTURE) && config->GetEnergy_Equation());
303+
const bool energy_multicomponent = config->GetKind_FluidModel() == FLUID_MIXTURE && config->GetEnergy_Equation();
304304

305305
/*--- Contribution to heat flux due to enthalpy diffusion for multicomponent and reacting flows ---*/
306306
if (energy_multicomponent) {

0 commit comments

Comments
 (0)