- Posts: 40
Cluster with molecules jumping through PBC
- nanogod
- Topic Author
- Offline
- Senior Boarder
I have a simulation where my molecules form a bilayer like thingy, but I have problems with the trajectory as molecules jump out of the PBC which makes it difficult to visualize for an article.
I have tried some of the following and combinations of them, but nothing helps:
- Make your molecules whole if you want them whole.
- Cluster your molecules/particles if you want them clustered.
- If you want jumps removed, extract the first frame from the trajectory to use as reference, and
then use trjconv -pbc nojump with that first frame as reference
I have also thought about translating 4 boxes and cut off the spare molecules, but translating the different boxes with the dimensions from the gromacs file seems to be abit off!
What are you guys doing when you encounter this problem, forinstance with a lipid bilayer?
Kind regards
Nanogod
Please Log in or Create an account to join the conversation.
- Clement
- Offline
- Admin
- Posts: 211
1) Removes jumps over pbc; index for output: your whole system.
$ trjconv -f <XTC (source_trajectory)> -o <XTC1> -s TPR -pbc nojump
2) Centers your "bilayer like thingy" in your box (vertically); index for centering: bilayer, index for output: your whole system.
$ trjconv -f <XTC1> -o <XTC2> -s TPR -center
3) Puts everything back in the box; index for output: your whole system.
$ trjconv -f <XTC2> -o <XTC3> -s TPR -pbc mol
Don't see any way to do it all at once! Second point is not mandatory, but could look nicer/make life easier for your pictures.
Please Log in or Create an account to join the conversation.
- xavier
- Offline
- Admin
- Posts: 416
The solution Clement suggests would remove the centre of mass of he system but it is not clear if that would fix your problem. You may want to explain it a bit more. Are your molecules long?
Molecules go over the PBC and get cut ... to make them whole you can use trjconv with the -pbc mol option and the molecules are placed on the side of the box corresponding to the COM position. This does not remove the jumping across the PBC. The only way you can remove the jump across the boundaries is using -pbc nojump option, but then the central box does not reflect your system as the molecules go away ...
If you think the use of 4 box would help I'd advise you to work on it ... it should work!
nanogod wrote: Hey MARTINI people,
I have a simulation where my molecules form a bilayer like thingy, but I have problems with the trajectory as molecules jump out of the PBC which makes it difficult to visualize for an article.
I have tried some of the following and combinations of them, but nothing helps:
- Make your molecules whole if you want them whole.
- Cluster your molecules/particles if you want them clustered.
- If you want jumps removed, extract the first frame from the trajectory to use as reference, and
then use trjconv -pbc nojump with that first frame as reference
I have also thought about translating 4 boxes and cut off the spare molecules, but translating the different boxes with the dimensions from the gromacs file seems to be abit off!
What are you guys doing when you encounter this problem, forinstance with a lipid bilayer?
Kind regards
Nanogod
Please Log in or Create an account to join the conversation.
- nanogod
- Topic Author
- Offline
- Senior Boarder
- Posts: 40
I got it to work with using multible translated boxes and cutting away the excess. Seems like I hAd a pymol problem :)
Please Log in or Create an account to join the conversation.