Hello all,
I am trying to initialize a system that has non-rigid chains tethered to rigid bodies.
In HOOMD 1.3.3 initializing such a system was trivial using an xml file, but due to the new way of treating rigid bodies with a central particle, I have found this initialization to be more challenging. As i understand it, the particles in the rigid body that are used to tether the chains must be created from the central particle, so until they are created i cannot have bonds connected to those particles defined in the initial file.
Currently, I find myself doing the following:
creating an empty snapshot
Initializing the rigid body centers from a matrix of central particle positions.
Building the rigid bodies based on a matrix of particle positions in the body.
creating non-rigid particles in the snapshot and assigning types/positions/mass/etc.
grabbing the correct indexes between non-rigid particles and creating bonds between them
grabbing the correct indexes between non-rigid and rigid particles and creating bonds
As the system grows, this method seems to require a bunch of indexing and looping to simply initialize the system. Is there some easier way, akin to initializing with an xml file that supports the new rigid body implementation, or must I assign the bonds, etc. manually via a snapshot? Even if I am initializing from a GSD file instead of XML, I still will have the problem that until the rigid bodies are created, there will be no indexes to define the bonds that tether the chains to the outside of the rigid body, correct?
Thanks,
Nathan Horst