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

Add easy way to create new substance for specific number of molecules #610

Open
lilyminium opened this issue Jan 22, 2025 · 0 comments · May be fixed by #611
Open

Add easy way to create new substance for specific number of molecules #610

lilyminium opened this issue Jan 22, 2025 · 0 comments · May be fixed by #611
Assignees

Comments

@lilyminium
Copy link
Contributor

A Substance may be created with mole fractions of 0.5098 for one component and 0.4902 for another, but when actually creating a box of 100 molecules, this gets turned into actual mole fractions of 0.51 and 0.49 respectively. This will pose an issue when querying storage backends for existing equilibrated boxes, as what's in the storage backend (i.e. the latter, simpler mole fractions) won't match the exact substance in the query. Instead, there should be an easy way to create a new, simpler substance matching the total number of molecules for the query.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants