Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solid to solid conjugate heat transfer #2152

Merged
merged 28 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
6290647
Created branch for solid-to-solid conjugate heat transfer capability
EvertBunschoten Oct 25, 2023
32cd5af
Merge branch 'develop' of https://github.com/su2code/SU2 into feature…
EvertBunschoten Nov 15, 2023
9f00802
Added contact resistance model used in Fluent
EvertBunschoten Nov 15, 2023
d56f36a
Merge branch 'develop' into feature_solid-solid_cht
EvertBunschoten Nov 15, 2023
7beebc9
Merge branch 'develop' of https://github.com/su2code/SU2 into feature…
EvertBunschoten Nov 17, 2023
8c8a62d
Defined config option for thermal contact resistance between zones
EvertBunschoten Nov 17, 2023
54af188
Merge branch 'develop' of https://github.com/su2code/SU2 into feature…
EvertBunschoten Dec 11, 2023
293d8fd
removed trailing white spaces
EvertBunschoten Dec 11, 2023
f1333b1
Pulled develop
EvertBunschoten Aug 6, 2024
dca70b2
Added test case for solid-to-solid conjugate heat transfer with conta…
EvertBunschoten Aug 6, 2024
0e11d1f
Added test case to regression tests.
EvertBunschoten Aug 6, 2024
87ffec4
Modified screen outputs
EvertBunschoten Aug 6, 2024
faa0ca4
Modified screen outputs
EvertBunschoten Aug 6, 2024
d9645ab
Updated residual values for cht test case and updated tutorial branch
EvertBunschoten Aug 6, 2024
ab011a0
Merge branch 'develop' into feature_solid-solid_cht
EvertBunschoten Aug 19, 2024
07e1134
Removed solid-to-solid CHT regression test from TestCases
EvertBunschoten Aug 26, 2024
d560eb6
Updated tutorials and testcases branch
EvertBunschoten Aug 26, 2024
b3b31fb
Removed boolean for the application of contact resistance
EvertBunschoten Aug 26, 2024
64e29b8
Constant contact resistance is applied to all CHT interfaces if a sin…
EvertBunschoten Aug 26, 2024
c8db996
Removed duplicate code
EvertBunschoten Aug 26, 2024
26d0776
Removed check for the use of contact resistance
EvertBunschoten Aug 26, 2024
ed6acbf
Moved solid-solid CHT regression test from TestCases to Tutorials
EvertBunschoten Aug 26, 2024
2dee186
Updated tutorials branch
EvertBunschoten Aug 26, 2024
d0bd167
Merge branch 'develop' of https://github.com/su2code/SU2 into feature…
EvertBunschoten Aug 29, 2024
a78dccb
Pulled develop
EvertBunschoten Aug 29, 2024
137ebf7
Updated residual values
EvertBunschoten Aug 29, 2024
7fc46b6
Updated SS-CHT tutorial regression test residual values
EvertBunschoten Aug 29, 2024
b02c5f8
Updated residuals according to regression test output
EvertBunschoten Aug 29, 2024
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
1 change: 1 addition & 0 deletions Common/include/option_structure.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ enum ENUM_TRANSFER {
CONJUGATE_HEAT_WEAKLY_FS = 17, /*!< \brief Conjugate heat transfer (between incompressible fluids and solids). */
CONJUGATE_HEAT_SF = 18, /*!< \brief Conjugate heat transfer (between solids and compressible fluids). */
CONJUGATE_HEAT_WEAKLY_SF = 19, /*!< \brief Conjugate heat transfer (between solids and incompressible fluids). */
CONJUGATE_HEAT_SS = 20, /*!< \brief Conjugate heat transfer (between two solids). */
};

/*!
Expand Down
23 changes: 13 additions & 10 deletions SU2_CFD/src/drivers/CDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2494,19 +2494,22 @@ void CDriver::InitializeInterface(CConfig **config, CSolver***** solver, CGeomet
if (rank == MASTER_NODE) cout << "sliding interface." << endl;
}
else if (heat_donor || heat_target) {
if (heat_donor && heat_target)
SU2_MPI::Error("Conjugate heat transfer between solids is not implemented.", CURRENT_FUNCTION);
if (heat_donor && heat_target){
interface_type = CONJUGATE_HEAT_SS;

const auto fluidZone = heat_target? donor : target;
} else {

if (config[fluidZone]->GetEnergy_Equation() || (config[fluidZone]->GetKind_Regime() == ENUM_REGIME::COMPRESSIBLE)
|| (config[fluidZone]->GetKind_FluidModel() == ENUM_FLUIDMODEL::FLUID_FLAMELET))
interface_type = heat_target? CONJUGATE_HEAT_FS : CONJUGATE_HEAT_SF;
else if (config[fluidZone]->GetWeakly_Coupled_Heat())
interface_type = heat_target? CONJUGATE_HEAT_WEAKLY_FS : CONJUGATE_HEAT_WEAKLY_SF;
else
interface_type = NO_TRANSFER;
const auto fluidZone = heat_target? donor : target;

if (config[fluidZone]->GetEnergy_Equation() || (config[fluidZone]->GetKind_Regime() == ENUM_REGIME::COMPRESSIBLE)
|| (config[fluidZone]->GetKind_FluidModel() == ENUM_FLUIDMODEL::FLUID_FLAMELET))
interface_type = heat_target? CONJUGATE_HEAT_FS : CONJUGATE_HEAT_SF;
else if (config[fluidZone]->GetWeakly_Coupled_Heat())
interface_type = heat_target? CONJUGATE_HEAT_WEAKLY_FS : CONJUGATE_HEAT_WEAKLY_SF;
else
interface_type = NO_TRANSFER;
}

if (interface_type != NO_TRANSFER) {
auto nVar = 4;
interface[donor][target] = new CConjugateHeatInterface(nVar, 0);
Expand Down
3 changes: 3 additions & 0 deletions SU2_CFD/src/drivers/CMultizoneDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,9 @@ bool CMultizoneDriver::TransferData(unsigned short donorZone, unsigned short tar
BroadcastData(SPECIES_SOL, SPECIES_SOL);
}
break;
case CONJUGATE_HEAT_SS:
BroadcastData(HEAT_SOL, HEAT_SOL);
break;
case CONJUGATE_HEAT_FS:
BroadcastData(FLOW_SOL, HEAT_SOL);
break;
Expand Down
5 changes: 4 additions & 1 deletion SU2_CFD/src/interfaces/cht/CConjugateHeatInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@
(donor_config->GetKind_CHT_Coupling() == CHT_COUPLING::AVERAGED_TEMPERATURE_ROBIN_HEATFLUX)) {

const su2double rho_cp_solid = donor_config->GetSpecific_Heat_Cp()*donor_config->GetMaterialDensity(0);
conductivity_over_dist = thermal_diffusivity*rho_cp_solid/dist;
const su2double thermal_conductivity = thermal_diffusivity * rho_cp_solid;
github-advanced-security[bot] marked this conversation as resolved.
Fixed
Show resolved Hide resolved
// TODO: add proper contact resistance here.
const su2double R_c = 0.0;
EvertBunschoten marked this conversation as resolved.
Show resolved Hide resolved
conductivity_over_dist = thermal_conductivity/(dist + thermal_conductivity * R_c);
}
}

Expand Down