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

Convergence problems with SAFT-VRQ-Mie in pores #87

Open
prehner opened this issue Dec 13, 2022 · 0 comments
Open

Convergence problems with SAFT-VRQ-Mie in pores #87

prehner opened this issue Dec 13, 2022 · 0 comments
Labels
DFT DFT related feature or issue enhancement New feature or request

Comments

@prehner
Copy link
Contributor

prehner commented Dec 13, 2022

The SAFT-VRQ-Mie functional converges less robustly than PC-SAFT due to the calculation of local mole fractions. Due to the Gibbs phenomenon, it is almost unavoidable that the density within the pore wall becomes 0 at some point. In that case the calculation of local mole fractions generates NaN.

One remedy for pure components is to write a dedicated implementation of the functional specifically for pure components.

Other remedies would be to "clean" the values of the Helmholtz energy density in places where the (total) density is zero or rewrite the functional without calling the equation of state.

@g-bauer g-bauer added enhancement New feature or request DFT DFT related feature or issue labels Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DFT DFT related feature or issue enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants