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

Optimize heat transfer #1037

Merged
merged 17 commits into from
Feb 21, 2024
Merged

Optimize heat transfer #1037

merged 17 commits into from
Feb 21, 2024

Conversation

blaisb
Copy link
Contributor

@blaisb blaisb commented Feb 20, 2024

Description of the problem

  • The heat transfer calls a lot of time the calculate_bdf_coefficients and this turns out to be significantly more expensive than I thought it was.

Description of the solution

  • we change the calculation of the bdf coefficients to occur only once per time step in the simulation control object and we just query the value. For phase change cases this has a tremendous impact on performance

Copy link
Collaborator

@hepap hepap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice optimization and it looks cleaner :)

include/core/specific_heat_model.h Outdated Show resolved Hide resolved
include/core/utilities.h Outdated Show resolved Hide resolved
Copy link
Collaborator

@AmishgaAlphonius AmishgaAlphonius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm excited to see the changes in runtime after this PR has merged! :D
(I only have a few minor comments:) )

include/core/bdf.h Show resolved Hide resolved
include/core/simulation_control.h Outdated Show resolved Hide resolved
include/core/utilities.h Outdated Show resolved Hide resolved
source/solvers/mf_navier_stokes_operators.cc Outdated Show resolved Hide resolved
@blaisb blaisb merged commit b83596d into master Feb 21, 2024
8 checks passed
@blaisb blaisb deleted the optimize-heat-transfer branch February 21, 2024 21:15
M-Badri pushed a commit to M-Badri/lethe that referenced this pull request Sep 29, 2024
Description of the problem
The heat transfer calls a lot of time the calculate_bdf_coefficients and this turns out to be significantly more expensive than I thought it was.
Description of the solution
we change the calculation of the bdf coefficients to occur only once per time step in the simulation control object and we just query the value. For phase change cases this has a tremendous impact on performance


Co-authored-by: hepap <[email protected]>
Co-authored-by: Amishga Alphonius <[email protected]>
Former-commit-id: b83596d
blaisb added a commit that referenced this pull request Sep 30, 2024
Description of the problem
The heat transfer calls a lot of time the calculate_bdf_coefficients and this turns out to be significantly more expensive than I thought it was.
Description of the solution
we change the calculation of the bdf coefficients to occur only once per time step in the simulation control object and we just query the value. For phase change cases this has a tremendous impact on performance


Co-authored-by: hepap <[email protected]>
Co-authored-by: Amishga Alphonius <[email protected]>
Former-commit-id: b83596d
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.

3 participants