Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autode deals with free radicals? #336

Closed
liqiang4567 opened this issue Apr 28, 2024 · 3 comments
Closed

autode deals with free radicals? #336

liqiang4567 opened this issue Apr 28, 2024 · 3 comments
Labels
question Further information is requested

Comments

@liqiang4567
Copy link

Hi, I'm using autode to deal with free radicals:
import autode as ade
molecule = ade.Molecule('reorder_p.txt')
print(molecule.charge)
The following error occurs:
ValueError: Initialised a molecule from an xyz file with an odd number of electrons but had an even charge and 2S + 1 = 1. Impossible
Is autode currently incapable of handling free radicals
reorder_p.txt

@t-young31 t-young31 added the question Further information is requested label Apr 28, 2024
@t-young31
Copy link
Member

Hi @liqiang4567 – free radicals should be fine, but you will need to specify the spin multiplicity (2 for a radical with a single unpaired electron) when creating them from xyz files, i.e.

>>> import autode as ade
>>> molecule = ade.Molecule('reorder_p.xyz', mult=2)
>>> print(molecule.charge, molecule.mult)
0 2

@liqiang4567
Copy link
Author

Yes, for an xyz file, can autode automatically identify how the spin multiplicity is?

@t-young31
Copy link
Member

it can work out when a value is impossible, but not what the value is. you'd need to try a range of values and pick the most stable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants