kbsezginel / nanocar-avogadro

Nanocar builder Avogadro 2 plug-in
https://kbsezginel.github.io/nanocar-avogadro
BSD 3-Clause "New" or "Revised" License
95 stars 17 forks source link

Multibody molecular dynamics setup #6

Open kbsezginel opened 5 years ago

kbsezginel commented 5 years ago

The chassis and wheels can be grouped into separate rigid bodies and connected together to setup multibody rigid MD simulations. Currently it's not possible to save atom id information in Avogadro so it's not straight forward to know which atoms belong to which part of the Nanocar. One way to do this is to keep track of each wheel added as follows:

  1. User adds a chassis molecule. If there is a wheel_ids.yaml file the file is deleted.
  2. User adds N wheel molecules. With first wheel a wheel_ids.yaml file is generated. As each wheel is added atom ids for each wheel is saved to this file.
  3. User asks for a multibody MD simulation configuration. The wheel_ids.yaml file is read and each wheel in the file is grouped separately. The rest of the atoms are grouped as the chassis.

Drawbacks

Additional functionality