Skip to content

Commit 3a0b257

Browse files
author
Vaishnavi Wani
committed
Instantiation of solver in CSolverFactory and add a call to the SingleGrid_Iteration in CFEAIteration
1 parent 2fb25a5 commit 3a0b257

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

SU2_CFD/src/iteration/CFEAIteration.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ void CFEAIteration::Iterate(COutput* output, CIntegration**** integration, CGeom
4848
CIntegration* feaIntegration = integration[val_iZone][val_iInst][FEA_SOL];
4949
CSolver* feaSolver = solver[val_iZone][val_iInst][MESH_0][FEA_SOL];
5050

51+
/*--- Add heat solver integration step ---*/
52+
if (config[val_iZone]->GetWeakly_Coupled_Heat()) {
53+
config[val_iZone]->SetGlobalParam(MAIN_SOLVER::HEAT_EQUATION, RUNTIME_HEAT_SYS);
54+
integration[val_iZone][val_iInst][HEAT_SOL]->SingleGrid_Iteration(
55+
geometry, solver, numerics, config, RUNTIME_HEAT_SYS, val_iZone, val_iInst);
56+
}
57+
5158
/*--- FEA equations ---*/
5259
config[val_iZone]->SetGlobalParam(MAIN_SOLVER::FEM_ELASTICITY, RUNTIME_FEA_SYS);
5360

SU2_CFD/src/solvers/CSolverFactory.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ CSolver** CSolverFactory::CreateSolverContainer(MAIN_SOLVER kindMainSolver, CCon
173173
break;
174174
case MAIN_SOLVER::FEM_ELASTICITY:
175175
solver[FEA_SOL] = CreateSubSolver(SUB_SOLVER_TYPE::FEA, solver, geometry, config, iMGLevel);
176+
if (config->GetWeakly_Coupled_Heat()) {
177+
solver[HEAT_SOL] = CreateSubSolver(SUB_SOLVER_TYPE::HEAT, solver, geometry, config, iMGLevel);
178+
}
176179
break;
177180
case MAIN_SOLVER::DISC_ADJ_FEM:
178181
solver[FEA_SOL] = CreateSubSolver(SUB_SOLVER_TYPE::FEA, solver, geometry, config, iMGLevel);

0 commit comments

Comments
 (0)