This project is used to attach molecules to crystals, using avogadro .xyz files.
To run this project, one needs python3 and the module numpy.
- Design your crystal and molecule in avogadro and put attachment sites on both the crystal and molecule. You can put as many attachment sites on the crystal, but the molecule only needs one. The attachment sites have to be different from the other atoms.
- In the MoleculeAttacher folder navigate to the input folder and put in your molecule in the molecule folder and the crystal in the crystal folder.
- In your command prompt, move to the molcule attacher folder: $cd MoleculeAttacher
- Run the GUI.py file by typing: $python -m src.GUI
- An interface will open where you can put in your chosen atoms. Don't use quotation marks.
- Press generate. The generated crystal with the molecules will be located in the output folder.# AvogadroMoleculeAttacher
- Design your crystal in avogadro and add hydrogen on top of the crystal
- In the MoleculeAttacher folder navigate to the input folder and put in your molecule in the molecule folder and the crystal in the crystal folder.
- In your command prompt, move to the molcule attacher folder: $cd MoleculeAttacher
- Run the spread.py file by typing: $python -m src.spread
- Fill in the interface. Don't use quotation marks.
- Press generate. The file is in the output folder.
- Enjoy.