usnistgov / fipy

FiPy is a Finite Volume PDE solver written in Python
http://pages.nist.gov/fipy/en/latest
Other
504 stars 148 forks source link

Question about Uncaught Exception from the example mesh1D.py #950

Closed CalebDmArcher closed 11 months ago

CalebDmArcher commented 11 months ago

I am trying the last example from examples/diffusion/mesh1D.py which is the "Fully implicit solutions are not without their pitfalls, particularly in steady state..." section.

The code of the steady-state part got the error "RuntimeError: Factor is exactly singular" which comes from the code DiffusionTerm(coeff=D).solve(var=phi). Is it because the latest version of the library can catch and raise exceptions for the cases where there can be more than one solution for the PDE?