-
Notifications
You must be signed in to change notification settings - Fork 24
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
The matrix appears to be singular #83
Comments
Thank you for your interest in FeOs. There is no guaranteed convergence for the DFT calculations but you can adjust the solver settings. In your case, the calculation converges with, e.g., solver = DFTSolver().picard_iteration(max_iter=100, damping_coefficient=0.02).newton() As you built the Python package from source anyways, you can get the newton solver by pulling the current main branch. It appears as though some safeguards against numerical issues that are used in the PC-SAFT model are not yet incorporated in the SAFT-VRQ-Mie model. We will have a look into that. Thank you for bringing it to our attention! |
Thanks for your kind response, sadly I have tried installing the new update with I tried the same with an older commit ( The current version that I'm using is directly from a fork of morteham, but this one had the convergence issue. Thanks again for your response and work, It's really great. |
The installation works on my machine and in the GitHub CI. If you provide details on what goes wrong, we can see if there is a solution. And thank you for the kind words. |
You might have to upgrade your rust compiler to the latest version. If the installation via |
Closing this issue. The underlying problem is tracked in #87 |
@Felip-552 did an update of the rust compiler resolve the installation issue? |
@g-bauer Hi, yes it was the rust compiler, now I have no issues installing. Thanks for your help. I was wondering if there is a way to know the molar fraction of the adsorbed phase? so one can determine the selectivity of surfaces when adsorbing mixtures. |
You can get the number of particles for each component using |
When trying to use the package to simulate hydrogen adsorption with
saftvrqmie
, the codes gives the error: "The matrix appears to be singular"The error is:
When I try with a bigger pore (300 A) it runs with no problems, and if I try an even smaller pore the error changes to:
I also tried the same configuration using ´pcsaft´ and had no issues for any pore sizes. Could you please look into this errors?
The text was updated successfully, but these errors were encountered: