I want to do test particle insertion with the tpic option. The manual says that one coordinate extra is read from the trajectory, which is used as the insertion location. How can I define a cavity for the particle insertion?
Thanks for your reply!
Is the following procedure correct:
1-converting .xtc file (one frame) to .gro file
2-insert arbitrary coordinates at the end of .gro file for the cavity location(I am not sure how to insert them! )
3-converting .gro to .xtc file
Honestly, I do not know how to use tpic correctly.
I want to obtain chemical potential by test particle insertion in cavities of a simulation box.
I tried basic tpi and the results were not acceptable.
But TPI will only give a reasonable answer when there are (now and then) cavities that your molecule fits into. In most cases you will need billions of attempts.
In the link below on page 291, the following explanation convinced me to use tpic:
As insertions into regions already occupied by atoms contribute a negligible amount to the mu, biased insertions are performed only where there is free volume…
The set of free-volume sites for a given snapshot is then passed into a modified version of Gromacs’ particle-insertion routine, tpi.c, in which insertions are performed in each of the voxels centered on the grid points.
I think you are misunderstanding how TPI works. The TPI method is all about finding the cavities, albeit through a rather inefficient method of random insertion using uniform sampling. As said, you often need billions of steps. When I did TPI calculations more than a decade ago, I needed many hours per calculation. Nowadays computers are much faster, but the cost depends extremely strongly on the presence and size of cavities.
I know how TPI works, but TPIC is unclear to me. Based on one of your replies, in TPIC I need coordinates of the cavities. If it is correct, how can I get them?