Open luzujiall opened 1 month ago
We use English for discussion. I translate the issue into English.
does the program read frame-by-frame, or does it only read the parameters from the first frame?
It reads frame-by-frame.
Does this mean that XYZ format can only define fixed cell parameters?
Yes, and please tell me if you have any other ideas.
Second, when I want to use reacnetgenerator.tools.calculate_rate, I also need to define cell parameters. At this point, is it still not possible to consider the NPT process, and must it be treated as an NVT ensemble instead?
This is a good question. You may need to read https://doi.org/10.1002/jcc.25809 and re-derive the equations under a variable volume (which can be one part of your work). You can share how the equations change, and we can make calculate_rate
support that situation.
I greatly appreciate your thoughtful response. Regarding the first question, I am already quite satisfied with the confirmation I received, and I will find a way to convert other trajectory formats into the LAMMPS format. If you seek my opinion, I believe that if it's convenient for you, adding support for the more commonly used PDB format, which can record cell information, might be a good idea. As for the second question, unfortunately, my mathematical foundation is not strong enough to carry out the specific derivation and verification work. However, perhaps we could consider using the concept of differentiation by selecting the volume within a certain time segment as the fixed volume of the system during that period and then substituting it into the original formula. But doing so might lead to significant errors, and I am not sure whether it is feasible.
Original content:
Thank you for the author's outstanding contributions. I have two small questions to ask:
First, RNG can undoubtedly consider periodic boundary conditions, as evidenced by the options settings. However, I would like to confirm whether, for NPT simulations where the cell is variable, RNG updates the cell information at each step. For example, in a dump format file that contains cell parameters for each frame, does the program read frame-by-frame, or does it only read the parameters from the first frame? When the input file is in XYZ format, which does not include cell parameters, it seems necessary to use the --cell option to define them. Does this mean that XYZ format can only define fixed cell parameters?
Second, when I want to use reacnetgenerator.tools.calculate_rate, I also need to define cell parameters. At this point, is it still not possible to consider the NPT process, and must it be treated as an NVT ensemble instead?