Skip to content

Solver divergence with large quadratic resistances. #237

Description

@natalia-rubio

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions