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

InitialCondition for HeatTransferProblem #662

Merged
merged 5 commits into from
Dec 7, 2023

Conversation

KulaginVladimir
Copy link
Collaborator

@KulaginVladimir KulaginVladimir commented Dec 5, 2023

Proposed changes

According to #659, this PR attempts to enhance the functionality of initial condition for HeatTransferProblem. Additionally, the tests were updated to follow new changes.

Types of changes

What types of changes does your code introduce to FESTIM?

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Code refactoring
  • Documentation Update (if none of the other choices apply)
  • New tests

Checklist

  • Black formatted
  • Unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Copy link
Collaborator

@RemDelaporteMathurin RemDelaporteMathurin left a comment

Choose a reason for hiding this comment

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

Thank you very much @KulaginVladimir again for this contribution!

Just a comment for more consistency across the code base.

Also re-running the test cause apparently the upload to Codecov failed...

festim/temperature/temperature_solver.py Show resolved Hide resolved
Copy link

codecov bot commented Dec 6, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6364d46) 98.91% compared to head (38f7b18) 98.91%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #662   +/-   ##
=======================================
  Coverage   98.91%   98.91%           
=======================================
  Files          57       57           
  Lines        2124     2128    +4     
=======================================
+ Hits         2101     2105    +4     
  Misses         23       23           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@RemDelaporteMathurin RemDelaporteMathurin left a comment

Choose a reason for hiding this comment

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

Right now that Codecov has run, we are missing tests for reading InitialCondition from XDMF files.

To do so, you can try and first export a function to XDMF then use the filename in an InitialCondition

Copy link
Collaborator

@RemDelaporteMathurin RemDelaporteMathurin left a comment

Choose a reason for hiding this comment

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

just a tiny comment and then we're good to go!

festim/temperature/temperature_solver.py Outdated Show resolved Hide resolved
KulaginVladimir and others added 2 commits December 7, 2023 17:42
Co-authored-by: Rémi Delaporte-Mathurin <[email protected]>
Copy link
Collaborator

@RemDelaporteMathurin RemDelaporteMathurin left a comment

Choose a reason for hiding this comment

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

Thanks @KulaginVladimir ! This had been missing for a long long time! 🎉

@RemDelaporteMathurin RemDelaporteMathurin merged commit e1d3b36 into festim-dev:main Dec 7, 2023
5 checks passed
@RemDelaporteMathurin RemDelaporteMathurin linked an issue Dec 7, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Initial temperature from XDMF for transient simulations
2 participants