Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Molecule

There are several different ways to create molecule objects such as using chemical names, SMILES strings, xyz-strings, molecule strings, or xyz-files.

By default, coordinates are given in units of Ångström but atomic units is also available.

Python script

3D illustrations of molecular structures are available with the show method.

Loading...
Loading...
Loading...

Molecular conformations can be altered using the set_dihedral_in_degrees function.

Loading...

The molecular charge and spin multiplicity can be adjusted using the set_charge and set_multiplicity functions. In the example below, we create a molecule object for the phenyl radical cation.

Text file

Using input text files, molecule specifications are exemplified below.

@molecule
charge: 0
multiplicity: 1
xyz:
O    0.0000000    0.0000000   -0.1653507
H    0.7493682    0.0000000    0.4424329
H   -0.7493682    0.0000000    0.4424329                     
@end
@molecule
charge: 0
multiplicity: 1
xyz_file: "../input_files/tq-polymer.xyz"
@end

A detailed list of keywords is available.