Hello
I need to make an MD simulation for a compound whose molecules contemplate a virtual site within the scope of the force field I need to use. Given atoms i, j, k lying in the end of my molecule (black circles in the figure below), the idea is that the virtual site (grey circle) should be, at each time step, (i) at a fixed distance d from atom i, (ii) at a fixed angle theta, which is formed by the vector r_ij and the vector going from atom i to the virtual site (this angle is also indicated in the figure), and (iii) in the same plane as atoms i, j and k.
I am here trying to figure out how/if I can make this work with the fix rattle/shake - for sure the fix rigid will not work. It is very straightforward to fix the distance d and angle theta, but I am not seeing any way I would, on top of that, be able to fix something else to indirectly keep the virtual site in the same plane as the atoms i, j, k in the rightful way (e.g. unless I am geometrically blind at the moment, I think I could accomplish that by additionally fixing the angle formed between atom i, the virtual site and atom k, but then this is not quite what I want, since this angle should be able to vary while the virtual site is still on the plane of atoms i, j and k). Does anyone know any LAMMPS command available that would allow me to accomplish this? Just the link to the page or names of the commands would already help tons!
Thanks!
Cecilia
EDIT: forgot to say that I am not a fan of setting up harmonic dihedral potentials with huge force constants in this particular case (although I can keep the constraints just fine, I will take a unfeasible long time to equilibrate the system in my experience).