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

Bug fix in Holzapfel tangent component #190

Merged
merged 2 commits into from
Feb 21, 2024

Conversation

aabrown100-git
Copy link
Collaborator

@aabrown100-git aabrown100-git commented Feb 21, 2024

Current situation

Holzapfel material test case has very slow convergence (#189). This was introduced during material model restructuring (#159).

Release Notes

  • Miniscule bug fix in one component of the tangent matrix for the Holzapfel material model

Testing

test_LV_Holzapfel_passive now displays excellent convergence

---------------------------------------------------------------------
 Eq     N-i     T       dB  Ri/R1   Ri/R0    R/Ri     lsIt   dB  %t
---------------------------------------------------------------------
 ST 1-1  3.900e-02  [0 1.000e+00 1.000e+00 8.962e-07]  [84 -45 13]
 ST 1-2  8.100e-02  [-25 5.159e-02 5.159e-02 9.870e-07]  [92 -55 14]
 ST 1-3  1.240e-01  [-74 1.835e-04 1.835e-04 9.218e-07]  [89 -51 12]
 ST 1-4s 2.200e-01  [-194 1.800e-10 1.800e-10 1.448e-03]  [47 -65 13]

Code of Conduct & Contributing Guidelines

Copy link

codecov bot commented Feb 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0590d9a) 57.50% compared to head (c6e7301) 57.50%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #190   +/-   ##
=======================================
  Coverage   57.50%   57.50%           
=======================================
  Files         103      103           
  Lines       26964    26964           
=======================================
  Hits        15505    15505           
  Misses      11459    11459           

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

@aabrown100-git
Copy link
Collaborator Author

Is there a way to check the LV_Holzapfel_passive output on Github machines to verify proper convergence behavior?

@mrp089
Copy link
Member

mrp089 commented Feb 21, 2024

Good idea! You can change the pytest argument
https://github.com/SimVascular/svFSIplus/blob/0590d9ad99a67940d1c0dc980b9fe967523487de/.github/workflows/test.yml#L41
to pytest -rPv --durations=0

This way, can observe convergence behavior of tests
@aabrown100-git
Copy link
Collaborator Author

I have confirmed proper convergence behavior on Github machines. Ready to merge.

@aabrown100-git
Copy link
Collaborator Author

@MatteoSalvador

@aabrown100-git aabrown100-git self-assigned this Feb 21, 2024
@aabrown100-git aabrown100-git added the bug Something isn't working label Feb 21, 2024
@aabrown100-git aabrown100-git linked an issue Feb 21, 2024 that may be closed by this pull request
1 task
@mrp089 mrp089 merged commit b99e12e into SimVascular:main Feb 21, 2024
7 checks passed
@mrp089
Copy link
Member

mrp089 commented Feb 21, 2024

Thanks!

@aabrown100-git aabrown100-git deleted the Holzapfel_material_bug_fix branch February 21, 2024 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Slow nonlinear convergence in struct/LV_Holzapfel_passive
2 participants