Created
June 29, 2022 12:59
-
-
Save twobob/e605ebbcbf804cedcf1f2ecee2682e2a to your computer and use it in GitHub Desktop.
#GPT3 create a mogli xyz file for a hybrid ferrocene Cadmium telluride molecule.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
molecule = Mogli.Molecule() | |
metal = Mogli.Atom() | |
metal.symbol = "Fe" | |
cyclopentadienyl = Mogli.Atom() | |
cyclopentadienyl.symbol = "Cp" | |
cyclopentadienyl.charge = -1 | |
methyl = Mogli.Atom() | |
methyl.symbol = "CH3" | |
molecule.atoms.append(metal) | |
molecule.atoms.append(cyclopentadienyl) | |
molecule.atoms.append(methyl) | |
molecule.links.append(Mogli.Link(0, 1, 3)) | |
molecule.links.append(Mogli.Link(1, 2, 1)) | |
molecule.write_xyz("ferrocene_cadmium_telluride.xyz") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment