@@ -57,7 +57,7 @@ CIncEulerSolver::CIncEulerSolver(CGeometry *geometry, CConfig *config, unsigned
5757 bool time_stepping = config->GetTime_Marching () == TIME_MARCHING::TIME_STEPPING;
5858 bool adjoint = (config->GetContinuous_Adjoint ()) || (config->GetDiscrete_Adjoint ());
5959 const bool centered = config->GetKind_ConvNumScheme_Flow () == SPACE_CENTERED;
60- bool Energy_Multicomponent = (config->GetKind_Species_Model ()==SPECIES_MODEL::SPECIES_TRANSPORT ) && config->GetEnergy_Equation ();
60+ const bool energy_multicomponent = (( config->GetKind_FluidModel () == FLUID_MIXTURE ) && config->GetEnergy_Equation () );
6161
6262 /* A grid is defined as dynamic if there's rigid grid movement or grid deformation AND the problem is time domain */
6363 dynamic_grid = config->GetDynamic_Grid ();
@@ -179,7 +179,7 @@ CIncEulerSolver::CIncEulerSolver(CGeometry *geometry, CConfig *config, unsigned
179179 Pressure_Inf = config->GetPressure_FreeStreamND ();
180180 Velocity_Inf = config->GetVelocity_FreeStreamND ();
181181 Temperature_Inf = config->GetTemperature_FreeStreamND ();
182- if (Energy_Multicomponent ){
182+ if (energy_multicomponent ){
183183 CFluidModel *auxFluidModel = new CFluidScalar (config->GetPressure_Thermodynamic (), config);
184184 const su2double *scalar_init = config->GetSpecies_Init ();
185185 auxFluidModel->SetTDState_T (Temperature_Inf,scalar_init); // compute total enthalpy from temperature
@@ -215,7 +215,7 @@ CIncEulerSolver::CIncEulerSolver(CGeometry *geometry, CConfig *config, unsigned
215215 /* --- Initialize the solution to the far-field state everywhere. ---*/
216216
217217 if (navier_stokes) {
218- if (Energy_Multicomponent ){
218+ if (energy_multicomponent ){
219219 nodes = new CIncNSVariable (Pressure_Inf, Velocity_Inf, Enthalpy_Inf, nPoint, nDim, nVar, config);
220220 }else {
221221 nodes = new CIncNSVariable (Pressure_Inf, Velocity_Inf, Temperature_Inf, nPoint, nDim, nVar, config);
@@ -1238,7 +1238,8 @@ void CIncEulerSolver::Upwind_Residual(CGeometry *geometry, CSolver **solver_cont
12381238 const bool limiter = (config->GetKind_SlopeLimit_Flow () != LIMITER::NONE);
12391239 const bool van_albada = (config->GetKind_SlopeLimit_Flow () == LIMITER::VAN_ALBADA_EDGE);
12401240 const bool bounded_scalar = config->GetBounded_Scalar ();
1241- const bool energy_multicomponent = (config->GetEnergy_Equation ()) && (config->GetKind_FluidModel () == FLUID_MIXTURE);
1241+ const bool energy_multicomponent =
1242+ ((config->GetEnergy_Equation ()) && (config->GetKind_FluidModel () == FLUID_MIXTURE));
12421243
12431244 /* --- For hybrid parallel AD, pause preaccumulation if there is shared reading of
12441245 * variables, otherwise switch to the faster adjoint evaluation mode. ---*/
@@ -1446,7 +1447,7 @@ void CIncEulerSolver::Source_Residual(CGeometry *geometry, CSolver **solver_cont
14461447 const bool energy = config->GetEnergy_Equation ();
14471448 const bool streamwise_periodic = (config->GetKind_Streamwise_Periodic () != ENUM_STREAMWISE_PERIODIC::NONE);
14481449 const bool streamwise_periodic_temperature = config->GetStreamwise_Periodic_Temperature ();
1449- const bool multicomponent = (config->GetKind_FluidModel ()== FLUID_MIXTURE);
1450+ const bool multicomponent = (config->GetKind_FluidModel () == FLUID_MIXTURE);
14501451
14511452 AD::StartNoSharedReading ();
14521453
@@ -2063,7 +2064,7 @@ void CIncEulerSolver::SetPreconditioner(const CConfig *config, unsigned long iPo
20632064 bool variable_density = (config->GetVariable_Density_Model ());
20642065 bool implicit = (config->GetKind_TimeIntScheme () == EULER_IMPLICIT);
20652066 bool energy = config->GetEnergy_Equation ();
2066- bool multicomponent = config->GetKind_Species_Model ()==SPECIES_MODEL::SPECIES_TRANSPORT ;
2067+ bool multicomponent = ( config->GetKind_FluidModel () == FLUID_MIXTURE) ;
20672068
20682069 /* --- Access the primitive variables at this node. ---*/
20692070
@@ -2336,7 +2337,7 @@ void CIncEulerSolver::BC_Inlet(CGeometry *geometry, CSolver **solver_container,
23362337
23372338 const bool implicit = (config->GetKind_TimeIntScheme () == EULER_IMPLICIT);
23382339 const bool viscous = config->GetViscous ();
2339- bool Energy_Multicomponent = (config->GetKind_Species_Model ()==SPECIES_MODEL::SPECIES_TRANSPORT ) && config->GetEnergy_Equation ();
2340+ const bool energy_multicomponent = (( config->GetKind_FluidModel () == FLUID_MIXTURE ) && ( config->GetEnergy_Equation ()) );
23402341
23412342 string Marker_Tag = config->GetMarker_All_TagBound (val_marker);
23422343
@@ -2501,7 +2502,7 @@ void CIncEulerSolver::BC_Inlet(CGeometry *geometry, CSolver **solver_container,
25012502 }
25022503
25032504 /* -- Enthalpy is needed for energy equation in multicomponent and reacting flows. ---*/
2504- if (Energy_Multicomponent ) {
2505+ if (energy_multicomponent ) {
25052506 CFluidModel* auxFluidModel = solver_container[FLOW_SOL]->GetFluidModel ();
25062507 const su2double* scalar_inlet = config->GetInlet_SpeciesVal (config->GetMarker_All_TagBound (val_marker));
25072508 auxFluidModel->SetTDState_T (V_inlet[prim_idx.Temperature ()],
@@ -2546,7 +2547,7 @@ void CIncEulerSolver::BC_Inlet(CGeometry *geometry, CSolver **solver_container,
25462547
25472548 /* --- Viscous contribution, commented out because serious convergence problems ---*/
25482549
2549- if (!viscous || Energy_Multicomponent ) continue ;
2550+ if (!viscous || energy_multicomponent ) continue ;
25502551
25512552 /* --- Set transport properties at the inlet ---*/
25522553
@@ -2598,7 +2599,7 @@ void CIncEulerSolver::BC_Outlet(CGeometry *geometry, CSolver **solver_container,
25982599
25992600 const bool implicit = (config->GetKind_TimeIntScheme () == EULER_IMPLICIT);
26002601 const bool viscous = config->GetViscous ();
2601- bool Energy_Multicomponent = (config->GetKind_Species_Model ()==SPECIES_MODEL::SPECIES_TRANSPORT ) && config->GetEnergy_Equation ();
2602+ const bool energy_multicomponent = (( config->GetKind_FluidModel () == FLUID_MIXTURE ) && ( config->GetEnergy_Equation ()) );
26022603 string Marker_Tag = config->GetMarker_All_TagBound (val_marker);
26032604
26042605 su2double Normal[MAXNDIM] = {0.0 };
@@ -2722,7 +2723,7 @@ void CIncEulerSolver::BC_Outlet(CGeometry *geometry, CSolver **solver_container,
27222723 V_outlet[prim_idx.CpTotal ()] = nodes->GetSpecificHeatCp (iPoint);
27232724
27242725 /* -- Enthalpy is needed for energy equation in multicomponent and reacting flows. ---*/
2725- if (Energy_Multicomponent ) {
2726+ if (energy_multicomponent ) {
27262727 CFluidModel* auxFluidModel = solver_container[FLOW_SOL]->GetFluidModel ();;
27272728 const su2double* scalar_outlet = solver_container[SPECIES_SOL]->GetNodes ()->GetSolution (iPoint);
27282729 auxFluidModel->SetTDState_T (nodes->GetTemperature (iPoint),
@@ -2754,7 +2755,7 @@ void CIncEulerSolver::BC_Outlet(CGeometry *geometry, CSolver **solver_container,
27542755
27552756 /* --- Viscous contribution, commented out because serious convergence problems ---*/
27562757
2757- if (!viscous || Energy_Multicomponent ) continue ;
2758+ if (!viscous || energy_multicomponent ) continue ;
27582759
27592760 /* --- Set transport properties at the outlet. ---*/
27602761
0 commit comments