Skip to content

Fix writing out and testing Concentration. - #642

Merged
ktbolt merged 8 commits into
SimVascular:mainfrom
ktbolt:dye_AD-does-not-output-Concentration_638
Sep 24, 2026
Merged

ktbolt merged 8 commits into
SimVascular:mainfrom
ktbolt:dye_AD-does-not-output-Concentration_638

Conversation

@ktbolt

@ktbolt ktbolt commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

This fixes writing Concentration data and updates the CI test to check those results. #638.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@ktbolt
ktbolt requested review from dseyler and kko27 September 9, 2026 01:06
@codecov

codecov Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.41%. Comparing base (ba305f5) to head (c01d717).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #642   +/-   ##
=======================================
  Coverage   73.41%   73.41%           
=======================================
  Files         269      269           
  Lines       40337    40337           
  Branches     6755     6753    -2     
=======================================
  Hits        29612    29612           
  Misses      10482    10482           
  Partials      243      243           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kko27 kko27 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved! I did have two comments.

  1. Is there documentation for setting up simulations that involve scalar transport? I did not realize that there was a nuance of creating an Alias output type (to rename temperature as concentration).
  2. Where does the reference solution for this test case come from?

@ktbolt

ktbolt commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator Author

@kko27 There is some basic documentation for the Precomputed_solution parameter but it does not really explain the scalar transport usage well enough. I think we will add a User Guide section for this.

The reference solution is from rerunning the simulation with the updated solver.xml file.

@zasexton
zasexton self-requested a review September 15, 2026 06:29

@zasexton zasexton left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

looks good to merge

@zasexton

Copy link
Copy Markdown
Collaborator

@kko27 There is some basic documentation for the Precomputed_solution parameter but it does not really explain the scalar transport usage well enough. I think we will add a User Guide section for this.

The reference solution is from rerunning the simulation with the updated solver.xml file.

This is also my bad. Originally I added the Precomputed_solution for any solution field data that is needed by another physics (for example the velocity field of a porous media model in scalar transport). It used to be that the solver required that solution field to be computed in a preceding simulation but, as you can imagine, this ends up being more overhead if you don't expect this to be a two-way coupled problem and the prior solution can be assumed instead of re-computed each time.

@zasexton

Copy link
Copy Markdown
Collaborator

I think the CI failures result from the field Concentration not being defined in the reference solution file, so test_dye_AD fails with ValueError: Field Concentration not in reference result for 1, 3, and 4 processes on both Ubuntu and macOS. These may need to be regenerated.

@ktbolt

ktbolt commented Sep 24, 2026

Copy link
Copy Markdown
Collaborator Author

@zasexton Thanks for reminding me about this!

I did add a new reference solution file for test_dye_AD but it seems that it did not get merged correctly.

@ktbolt
ktbolt merged commit c9838bd into SimVascular:main Sep 24, 2026
8 checks passed
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.

3 participants