Skip to content

Commit b860fd1

Browse files
Fixed communication between species and heat solver for CHT simulations
1 parent c1d5151 commit b860fd1

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

SU2_CFD/src/drivers/CDriver.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2497,7 +2497,8 @@ void CDriver::InitializeInterface(CConfig **config, CSolver***** solver, CGeomet
24972497

24982498
const auto fluidZone = heat_target? donor : target;
24992499

2500-
if (config[fluidZone]->GetEnergy_Equation() || (config[fluidZone]->GetKind_Regime() == ENUM_REGIME::COMPRESSIBLE))
2500+
if (config[fluidZone]->GetEnergy_Equation() || (config[fluidZone]->GetKind_Regime() == ENUM_REGIME::COMPRESSIBLE)
2501+
|| (config[fluidZone]->GetKind_FluidModel() == ENUM_FLUIDMODEL::FLUID_FLAMELET))
25012502
interface_type = heat_target? CONJUGATE_HEAT_FS : CONJUGATE_HEAT_SF;
25022503
else if (config[fluidZone]->GetWeakly_Coupled_Heat())
25032504
interface_type = heat_target? CONJUGATE_HEAT_WEAKLY_FS : CONJUGATE_HEAT_WEAKLY_SF;

SU2_CFD/src/interfaces/cht/CConjugateHeatInterface.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ void CConjugateHeatInterface::GetDonor_Variable(CSolver *donor_solution, CGeomet
7070
su2double conductivity_over_dist = 0.0;
7171

7272
const bool compressible_flow = (donor_config->GetKind_Regime() == ENUM_REGIME::COMPRESSIBLE);
73-
const bool incompressible_flow = (donor_config->GetKind_Regime() == ENUM_REGIME::INCOMPRESSIBLE) && donor_config->GetEnergy_Equation();
73+
const bool incompressible_flow = (donor_config->GetKind_Regime() == ENUM_REGIME::INCOMPRESSIBLE) &&
74+
(donor_config->GetEnergy_Equation() || (donor_config->GetKind_FluidModel() == ENUM_FLUIDMODEL::FLUID_FLAMELET));
7475

7576
if (compressible_flow) {
7677

SU2_CFD/src/solvers/CSpeciesFlameletSolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ void CSpeciesFlameletSolver::BC_Isothermal_Wall_Generic(CGeometry* geometry, CSo
427427
for (unsigned long iVertex = 0; iVertex < geometry->nVertex[val_marker]; iVertex++) {
428428
unsigned long iPoint = geometry->vertex[val_marker][iVertex]->GetNode();
429429

430-
if (cht_mode) temp_wall = GetConjugateHeatVariable(val_marker, iVertex, 0);
430+
if (cht_mode) temp_wall = solver_container[FLOW_SOL]->GetConjugateHeatVariable(val_marker, iVertex, 0);
431431

432432
/*--- Check if the node belongs to the domain (i.e., not a halo node). ---*/
433433

0 commit comments

Comments
 (0)