SimVascular / SimVascular/svZeroDSolver
Solver divergence with large quadratic resistances.
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 22
- Forks
- 44
- PR merge metrics
- No merged PRs in 30d
Description
Description
When a 0D system features large stenosis (quadratic) resistances, especially if they vary in sign. The solver often diverges, that is, the linear Newton solver in the time-stepping scheme is not able to sufficiently reduce the residual. This is somewhat expected, because the introduction of large quadratic resistances of varying sign means the relationship between the solution variables and the residual is not monotonic or convex. There is technically no guarantee that a solution exists.
Reproduction
bifurcations_EL_NN_JunctionOnly.json
Sample input files with large quadratic resistances that diverges.
Expected behavior
Ideally, the solver should converge if there is a solution, and print an error if not.
Additional context
No response
Code of Conduct
- I agree to follow this project's Code of Conduct and Contributing Guidelines
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with bifurcations_EL_NN_JunctionOnly.json to reproduce divergence in the 0D system. Trace the time-stepping scheme's linear Newton solver and how it handles large, sign-varying quadratic resistances. Done means convergent cases converge when a solution exists, while cases without a solution report an error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100