Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SU2_CFD/include/solvers/CFVMFlowSolverBase.inl
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ void CFVMFlowSolverBase<V, R>::LoadRestart_impl(CGeometry **geometry, CSolver **
* species solver does all the Pre-/Postprocessing. ---*/
if (config->GetKind_Turb_Model() == TURB_MODEL::NONE &&
config->GetKind_Species_Model() == SPECIES_MODEL::NONE) {
solver[MESH_0][FLOW_SOL]->Preprocessing(geometry[MESH_0], solver[MESH_0], config, MESH_0, NO_RK_ITER, RUNTIME_FLOW_SYS, false);
solver[MESH_0][FLOW_SOL]->Preprocessing(geometry[MESH_0], solver[MESH_0], config, MESH_0, NO_RK_ITER, RUNTIME_FLOW_SYS, true);
}

/*--- Interpolate the solution down to the coarse multigrid levels ---*/
Expand All @@ -1035,7 +1035,7 @@ void CFVMFlowSolverBase<V, R>::LoadRestart_impl(CGeometry **geometry, CSolver **

if (config->GetKind_Turb_Model() == TURB_MODEL::NONE &&
config->GetKind_Species_Model() == SPECIES_MODEL::NONE) {
solver[iMesh][FLOW_SOL]->Preprocessing(geometry[iMesh], solver[iMesh], config, iMesh, NO_RK_ITER, RUNTIME_FLOW_SYS, false);
solver[iMesh][FLOW_SOL]->Preprocessing(geometry[iMesh], solver[iMesh], config, iMesh, NO_RK_ITER, RUNTIME_FLOW_SYS, true);
}
}

Expand Down
2 changes: 1 addition & 1 deletion SU2_CFD/src/iteration/CDiscAdjFluidIteration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ void CDiscAdjFluidIteration::LoadUnsteady_Solution(CGeometry**** geometry, CSolv
for (auto iMesh = 0u; iMesh <= config[iZone]->GetnMGLevels(); iMesh++) {
solvers[iMesh][FLOW_SOL]->SetFreeStream_Solution(config[iZone]);
solvers[iMesh][FLOW_SOL]->Preprocessing(geometries[iMesh], solvers[iMesh], config[iZone], iMesh,
DirectIter, RUNTIME_FLOW_SYS, false);
DirectIter, RUNTIME_FLOW_SYS, true);
if (turbulent) {
solvers[iMesh][TURB_SOL]->SetFreeStream_Solution(config[iZone]);
solvers[iMesh][TURB_SOL]->Postprocessing(geometries[iMesh], solvers[iMesh], config[iZone], iMesh);
Expand Down
5 changes: 2 additions & 3 deletions SU2_CFD/src/solvers/CIncNSSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ void CIncNSSolver::Preprocessing(CGeometry *geometry, CSolver **solver_container
SetPrimitive_Limiter(geometry, config);
}

ComputeVorticityAndStrainMag(*config, geometry, iMesh);
if (Output) ComputeVorticityAndStrainMag(*config, geometry, iMesh);

/*--- Compute the TauWall from the wall functions ---*/

Expand Down Expand Up @@ -277,7 +277,6 @@ void CIncNSSolver::Compute_Streamwise_Periodic_Recovered_Values(CConfig *config,

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

/*--- Contribution to heat flux due to enthalpy diffusion for multicomponent and reacting flows ---*/
Expand Down Expand Up @@ -385,7 +384,7 @@ unsigned long CIncNSSolver::SetPrimitive_Variables(CSolver **solver_container, c

if (config->GetKind_HybridRANSLES() != NO_HYBRIDRANSLES){
DES_LengthScale = solver_container[TURB_SOL]->GetNodes()->GetDES_LengthScale(iPoint);
LES_Mode = solver_container[TURB_SOL]->GetNodes()->GetLES_Mode(iPoint);
LES_Mode = solver_container[TURB_SOL]->GetNodes()->GetLES_Mode(iPoint);
}
}

Expand Down
2 changes: 1 addition & 1 deletion SU2_CFD/src/solvers/CNEMONSSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ void CNEMONSSolver::Preprocessing(CGeometry *geometry, CSolver **solver_containe

/*--- Compute vorticity and strain mag. ---*/

ComputeVorticityAndStrainMag(*config, geometry, iMesh);
if (Output) ComputeVorticityAndStrainMag(*config, geometry, iMesh);

/*--- Compute the TauWall from the wall functions ---*/

Expand Down
6 changes: 3 additions & 3 deletions SU2_CFD/src/solvers/CNSSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ void CNSSolver::Preprocessing(CGeometry *geometry, CSolver **solver_container, C
SetPrimitive_Limiter(geometry, config);
}

ComputeVorticityAndStrainMag(*config, geometry, iMesh);
if (Output || config->GetVorticityConfinement()) {
ComputeVorticityAndStrainMag(*config, geometry, iMesh);
}

/*--- Compute the TauWall from the wall functions ---*/

Expand Down Expand Up @@ -178,8 +180,6 @@ unsigned long CNSSolver::SetPrimitive_Variables(CSolver **solver_container, cons

void CNSSolver::Viscous_Residual(unsigned long iEdge, CGeometry *geometry, CSolver **solver_container,
CNumerics *numerics, CConfig *config) {
SU2_ZONE_SCOPED

Viscous_Residual_impl(iEdge, geometry, solver_container, numerics, config);
}

Expand Down
2 changes: 1 addition & 1 deletion SU2_CFD/src/solvers/CRadSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ void CRadSolver::LoadRestart(CGeometry **geometry, CSolver ***solver, CConfig *c
solver[MESH_0][RAD_SOL]->CompleteComms(geometry[MESH_0], config, MPI_QUANTITIES::SOLUTION);

/*--- Preprocess the fluid solver to compute the primitive variables ---*/
solver[MESH_0][FLOW_SOL]->Preprocessing(geometry[MESH_0], solver[MESH_0], config, MESH_0, NO_RK_ITER, RUNTIME_FLOW_SYS, false);
solver[MESH_0][FLOW_SOL]->Preprocessing(geometry[MESH_0], solver[MESH_0], config, MESH_0, NO_RK_ITER, RUNTIME_FLOW_SYS, true);

/*--- Postprocess the radiation solver to compute the source term that goes into the fluid equations ---*/
solver[MESH_0][RAD_SOL]->Postprocessing(geometry[MESH_0], solver[MESH_0], config, MESH_0);
Expand Down
10 changes: 5 additions & 5 deletions SU2_CFD/src/solvers/CSolverFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,14 +351,14 @@ CSolver* CSolverFactory::CreateTurbSolver(TURB_MODEL kindTurbModel, CSolver **so
switch (TurbModelFamily(kindTurbModel)) {
case TURB_FAMILY::SA:
turbSolver = new CTurbSASolver(geometry, config, iMGLevel, solver[FLOW_SOL]->GetFluidModel());
solver[FLOW_SOL]->Preprocessing(geometry, solver, config, iMGLevel, NO_RK_ITER, RUNTIME_FLOW_SYS, false);
solver[FLOW_SOL]->Preprocessing(geometry, solver, config, iMGLevel, NO_RK_ITER, RUNTIME_FLOW_SYS, true);
turbSolver->Postprocessing(geometry, solver, config, iMGLevel);
break;
case TURB_FAMILY::KW:
turbSolver = new CTurbSSTSolver(geometry, config, iMGLevel);
solver[FLOW_SOL]->Preprocessing(geometry, solver, config, iMGLevel, NO_RK_ITER, RUNTIME_FLOW_SYS, false);
solver[FLOW_SOL]->Preprocessing(geometry, solver, config, iMGLevel, NO_RK_ITER, RUNTIME_FLOW_SYS, true);
turbSolver->Postprocessing(geometry, solver, config, iMGLevel);
solver[FLOW_SOL]->Preprocessing(geometry, solver, config, iMGLevel, NO_RK_ITER, RUNTIME_FLOW_SYS, false);
solver[FLOW_SOL]->Preprocessing(geometry, solver, config, iMGLevel, NO_RK_ITER, RUNTIME_FLOW_SYS, true);
break;
case TURB_FAMILY::NONE:
SU2_MPI::Error("Trying to create TurbSolver container but TURB_MODEL=NONE.", CURRENT_FUNCTION);
Expand Down Expand Up @@ -386,9 +386,9 @@ CSolver* CSolverFactory::CreateTransSolver(TURB_TRANS_MODEL kindTransModel, CSol
switch (kindTransModel) {
case TURB_TRANS_MODEL::LM :
transSolver = new CTransLMSolver(geometry, config, iMGLevel);
solver[FLOW_SOL]->Preprocessing(geometry, solver, config, iMGLevel, NO_RK_ITER, RUNTIME_FLOW_SYS, false);
solver[FLOW_SOL]->Preprocessing(geometry, solver, config, iMGLevel, NO_RK_ITER, RUNTIME_FLOW_SYS, true);
transSolver->Postprocessing(geometry, solver, config, iMGLevel);
solver[FLOW_SOL]->Preprocessing(geometry, solver, config, iMGLevel, NO_RK_ITER, RUNTIME_FLOW_SYS, false);
solver[FLOW_SOL]->Preprocessing(geometry, solver, config, iMGLevel, NO_RK_ITER, RUNTIME_FLOW_SYS, true);
break;
case TURB_TRANS_MODEL::NONE:
break;
Expand Down
4 changes: 2 additions & 2 deletions SU2_CFD/src/solvers/CSpeciesFlameletSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ void CSpeciesFlameletSolver::SetInitialCondition(CGeometry** geometry, CSolver**
solver_container[i_mesh][FLOW_SOL]->CompleteComms(geometry[i_mesh], config, MPI_QUANTITIES::SOLUTION);

solver_container[i_mesh][FLOW_SOL]->Preprocessing(geometry[i_mesh], solver_container[i_mesh], config, i_mesh,
NO_RK_ITER, RUNTIME_FLOW_SYS, false);
NO_RK_ITER, RUNTIME_FLOW_SYS, true);
}

/* --- Sum up some global counters over processes. --- */
Expand Down Expand Up @@ -673,7 +673,7 @@ unsigned long CSpeciesFlameletSolver::SetPreferentialDiffusionScalars(CFluidMode

void CSpeciesFlameletSolver::Viscous_Residual(const unsigned long iEdge, const CGeometry* geometry, CSolver** solver_container,
CNumerics* numerics, const CConfig* config) {
SU2_ZONE_SCOPED

/*--- Overloaded viscous residual method which accounts for preferential diffusion. ---*/
const bool implicit = (config->GetKind_TimeIntScheme() == EULER_IMPLICIT),
PreferentialDiffusion = flamelet_config_options.preferential_diffusion;
Expand Down
6 changes: 3 additions & 3 deletions SU2_CFD/src/solvers/CSpeciesSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ void CSpeciesSolver::LoadRestart(CGeometry** geometry, CSolver*** solver, CConfi

// Flow-Pre computes/sets mixture properties
solver[MESH_0][FLOW_SOL]->Preprocessing(geometry[MESH_0], solver[MESH_0], config, MESH_0, NO_RK_ITER,
RUNTIME_FLOW_SYS, false);
RUNTIME_FLOW_SYS, true);
// Update eddy-visc which needs correct mixture density and mixture lam-visc. Note that after this, another Flow-Pre
// at the start of the Iteration sets the updated eddy-visc into the Flow-Solvers Primitives.
if (config->GetKind_Turb_Model() != TURB_MODEL::NONE)
Expand All @@ -287,7 +287,7 @@ void CSpeciesSolver::LoadRestart(CGeometry** geometry, CSolver*** solver, CConfi
solver[iMesh][SPECIES_SOL]->CompleteComms(geometry[iMesh], config, MPI_QUANTITIES::SOLUTION);

solver[iMesh][FLOW_SOL]->Preprocessing(geometry[iMesh], solver[iMesh], config, iMesh, NO_RK_ITER, RUNTIME_FLOW_SYS,
false);
true);

if (config->GetKind_Turb_Model() != TURB_MODEL::NONE)
solver[iMesh][TURB_SOL]->Postprocessing(geometry[MESH_0], solver[MESH_0], config, MESH_0);
Expand Down Expand Up @@ -334,7 +334,7 @@ void CSpeciesSolver::Preprocessing(CGeometry* geometry, CSolver** solver_contain

void CSpeciesSolver::Viscous_Residual(const unsigned long iEdge, const CGeometry* geometry, CSolver** solver_container,
CNumerics* numerics, const CConfig* config) {
SU2_ZONE_SCOPED

/*--- Define an object to set solver specific numerics contribution. ---*/
auto SolverSpecificNumerics = [&](unsigned long iPoint, unsigned long jPoint) {
/*--- Mass diffusivity coefficients. ---*/
Expand Down
5 changes: 2 additions & 3 deletions SU2_CFD/src/solvers/CTransLMSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@ void CTransLMSolver::Postprocessing(CGeometry *geometry, CSolver **solver_contai

void CTransLMSolver::Viscous_Residual(const unsigned long iEdge, const CGeometry* geometry, CSolver** solver_container,
CNumerics* numerics, const CConfig* config) {
SU2_ZONE_SCOPED

/*--- Define an object to set solver specific numerics contribution. ---*/

Expand Down Expand Up @@ -584,7 +583,7 @@ void CTransLMSolver::LoadRestart(CGeometry** geometry, CSolver*** solver, CConfi
/*--- For turbulent+species simulations the solver Pre-/Postprocessing is done by the species solver. ---*/
if (config->GetKind_Species_Model() == SPECIES_MODEL::NONE) {
solver[MESH_0][FLOW_SOL]->Preprocessing(geometry[MESH_0], solver[MESH_0], config, MESH_0, NO_RK_ITER,
RUNTIME_FLOW_SYS, false);
RUNTIME_FLOW_SYS, true);
solver[MESH_0][TURB_SOL]->Postprocessing(geometry[MESH_0], solver[MESH_0], config, MESH_0);
solver[MESH_0][TRANS_SOL]->Postprocessing(geometry[MESH_0], solver[MESH_0], config, MESH_0);
}
Expand All @@ -600,7 +599,7 @@ void CTransLMSolver::LoadRestart(CGeometry** geometry, CSolver*** solver, CConfi

if (config->GetKind_Species_Model() == SPECIES_MODEL::NONE) {
solver[iMesh][FLOW_SOL]->Preprocessing(geometry[iMesh], solver[iMesh], config, iMesh, NO_RK_ITER, RUNTIME_FLOW_SYS,
false);
true);
solver[iMesh][TRANS_SOL]->Postprocessing(geometry[iMesh], solver[iMesh], config, iMesh);
}
}
Expand Down
1 change: 0 additions & 1 deletion SU2_CFD/src/solvers/CTurbSASolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,6 @@ void CTurbSASolver::Postprocessing(CGeometry *geometry, CSolver **solver_contain

void CTurbSASolver::Viscous_Residual(const unsigned long iEdge, const CGeometry* geometry, CSolver** solver_container,
CNumerics* numerics, const CConfig* config) {
SU2_ZONE_SCOPED

/*--- Define an object to set solver specific numerics contribution. ---*/
auto SolverSpecificNumerics = [&](unsigned long iPoint, unsigned long jPoint) {
Expand Down
1 change: 0 additions & 1 deletion SU2_CFD/src/solvers/CTurbSSTSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ void CTurbSSTSolver::Postprocessing(CGeometry *geometry, CSolver **solver_contai

void CTurbSSTSolver::Viscous_Residual(const unsigned long iEdge, const CGeometry* geometry, CSolver** solver_container,
CNumerics* numerics, const CConfig* config) {
SU2_ZONE_SCOPED

/*--- Define an object to set solver specific numerics contribution. ---*/
auto SolverSpecificNumerics = [&](unsigned long iPoint, unsigned long jPoint) {
Expand Down
4 changes: 2 additions & 2 deletions SU2_CFD/src/solvers/CTurbSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ void CTurbSolver::LoadRestart(CGeometry** geometry, CSolver*** solver, CConfig*
/*--- For turbulent+species simulations the solver Pre-/Postprocessing is done by the species solver. ---*/
if (config->GetKind_Species_Model() == SPECIES_MODEL::NONE && config->GetKind_Trans_Model() == TURB_TRANS_MODEL::NONE) {
solver[MESH_0][FLOW_SOL]->Preprocessing(geometry[MESH_0], solver[MESH_0], config, MESH_0, NO_RK_ITER,
RUNTIME_FLOW_SYS, false);
RUNTIME_FLOW_SYS, true);
solver[MESH_0][TURB_SOL]->Postprocessing(geometry[MESH_0], solver[MESH_0], config, MESH_0);
}

Expand All @@ -200,7 +200,7 @@ void CTurbSolver::LoadRestart(CGeometry** geometry, CSolver*** solver, CConfig*

if (config->GetKind_Species_Model() == SPECIES_MODEL::NONE) {
solver[iMesh][FLOW_SOL]->Preprocessing(geometry[iMesh], solver[iMesh], config, iMesh, NO_RK_ITER, RUNTIME_FLOW_SYS,
false);
true);
solver[iMesh][TURB_SOL]->Postprocessing(geometry[iMesh], solver[iMesh], config, iMesh);
}

Expand Down
Loading