Skip to content

Conversation

@hanzhao2020
Copy link
Contributor

@hanzhao2020 hanzhao2020 commented Sep 25, 2025

Resolves #440

Current situation

The current RIS code always uses the unit cm when using the signed distance function to determine if the valve is opening or closing. These parameters should be consistent with the mesh scale factor.

Release Notes

All signed distance function related parameters are using consistent units now.

Testing

This update is tested by the URIS tests.

Code of Conduct & Contributing Guidelines

@ktbolt
Copy link
Collaborator

ktbolt commented Sep 25, 2025

@hanzhao2020 Why is there no Issue open for this ?

@hanzhao2020
Copy link
Contributor Author

@ktbolt Thanks for the reminder. An issue has been created and linked to this pull request.

@codecov
Copy link

codecov bot commented Sep 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.51%. Comparing base (ef69207) to head (0192914).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #439   +/-   ##
=======================================
  Coverage   67.51%   67.51%           
=======================================
  Files         170      170           
  Lines       32622    32623    +1     
  Branches     5741     5741           
=======================================
+ Hits        22024    22025    +1     
  Misses      10459    10459           
  Partials      139      139           

☔ View full report in Codecov by Sentry.
📢 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.

Copy link
Collaborator

@aabrown100-git aabrown100-git left a comment

Choose a reason for hiding this comment

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

@hanzhao2020 I tested this with my left heart FSI case with mesh_scale_factor != 1, and it looks like the SDF fields are being computed correctly. The nonlinear convergence is pretty bad though. I also noticed that convergence is bad for the pipe_uris_3d/ test case as well. Do you know why?

@hanzhao2020
Copy link
Contributor Author

@aabrown100-git I think it's because the added resistive forces are similar to penalty terms, affecting the conditioning of the linear system. Using smaller resistance values can improve the nonlinear convergence a bit, but the convergence is still pretty slow.

Copy link
Collaborator

@aabrown100-git aabrown100-git left a comment

Choose a reason for hiding this comment

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

Suggesting some changes!

Copy link
Collaborator

@aabrown100-git aabrown100-git left a comment

Choose a reason for hiding this comment

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

Looks good to me now, thanks.

@aabrown100-git aabrown100-git merged commit 44fc5ec into SimVascular:main Oct 27, 2025
8 checks passed
kko27 pushed a commit to kko27/svMultiPhysics that referenced this pull request Dec 17, 2025
* Fixed bug for using uris mesh max eNoN and scale factor.

* Fixed bugs for RIS valve with mesh scale factor other than 1

* Changed default RIS valve signed distance function to a large value

---------

Co-authored-by: Aaron Brown <[email protected]>
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.

Adjust mesh scale factor to correctly determine valve opening and closing

3 participants