-
Notifications
You must be signed in to change notification settings - Fork 17
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
Clarify how to compute ideal gas contribution to pressure #79
Comments
So I am pretty sure this should be the number of degrees of freedom. It is what LAMMPS declare using in it's documentation, and it is what RASPA (another MD and MC capable software) uses for both MC and MD computation. It also goes to the number of atoms in fully flexible systems, and to the number of molecules in rigid molecules system. Finally, in the Allen and Tildesley book, they derive the instantaneous pressure using the instantaneous temperature (eq 2.55), and the instantaneous temperature uses the number of degrees of freedom (eq 2.50). You can find the two corresponding pages from the book, containing the whole derivation. |
Proposition to solve this: we can add a I think the main issue here is that we don't know whether a molecule is simulated a rigid or as flexible. We could start by assuming that MC means rigid and MD means flexible, but this would break quickly as we add more functionalities. If/when we implement #137, we can have a nice way to resolve this. We can add a What do you think? |
I agree, we should think about how we can introduce constraints in a way that makes sense for both MC and MD as well as solves the degrees of freedom problem. Often, MC codes introduce specific functions e.g. for constant bond lengths and angles. I think for a code that has both MC and MD, introducing method-exclusive functions makes little sense. I'd favor for example a constraints section in the input that takes inputs such as We should discuss this in a separate issue, since there are several aspects with regards to the implementation that are important for things like containing algorithms or configurational bias MC. |
I think I have an idea for this, using roughly the same trick as we use for temperature computation: we could ask the propagator for the number of simulated degrees of freedom, and use this to compute the pressure. I'll try to send a PoC soon, so that we can discuss with the code =) |
This issue was discussed in #58 (comment) and targets computation of the ideal gas pressure:
The text was updated successfully, but these errors were encountered: