Skip to content

Using free stream tremperature for initialization of wall temperature for pure conjugate heat transfer problems#2281

Merged
Cristopher-Morales merged 2 commits intodevelopfrom
feature_fix_cht
May 14, 2024
Merged

Using free stream tremperature for initialization of wall temperature for pure conjugate heat transfer problems#2281
Cristopher-Morales merged 2 commits intodevelopfrom
feature_fix_cht

Conversation

@Cristopher-Morales
Copy link
Contributor

@Cristopher-Morales Cristopher-Morales commented May 14, 2024

Proposed Changes

For pure conjugate heat transfer problems, the temperature at the walls is initialized using the free stream temperature. Using the Isothermal_Temperature[0] for pure CHT problems results in a segmentation fault error.

Related Work

PR Checklist

Put an X by all that apply. You can fill this out after submitting the PR. If you have any questions, don't hesitate to ask! We want to help. These are a guide for you to know what the reviewers will be looking for in your contribution.

  • I am submitting my contribution to the develop branch.
  • My contribution generates no new compiler warnings (try with --warnlevel=3 when using meson).
  • My contribution is commented and consistent with SU2 style (https://su2code.github.io/docs_v7/Style-Guide/).
  • I used the pre-commit hook to prevent dirty commits and used pre-commit run --all to format old commits.
  • I have added a test case that demonstrates my contribution, if necessary.
  • I have updated appropriate documentation (Tutorials, Docs Page, config_template.cpp), if necessary.

Co-authored-by: Evert Bunschoten <38651601+EvertBunschoten@users.noreply.github.com>
@pcarruscag
Copy link
Member

Why is this being accessed out of bounds? Instead of adding a potentially confusing default behavior we should not access a marker that doesnt exist.

@bigfooted bigfooted restored the feature_fix_cht branch May 14, 2024 21:09
@bigfooted
Copy link
Contributor

In CNSSolver, we do in BC_Isothermal_Wall_Generic:

if (!cht_mode) {
    Twall = config->GetIsothermal_Temperature(Marker_Tag) / Temperature_Ref;
  }

And we do not check for cht_mode in IncNSSolver. I think this might be the root cause of entering this routine?
@Cristopher-Morales can you check this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants