18.11.2012 Views

ASE Manual Release 3.6.1.2825 CAMd - CampOS Wiki

ASE Manual Release 3.6.1.2825 CAMd - CampOS Wiki

ASE Manual Release 3.6.1.2825 CAMd - CampOS Wiki

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>ASE</strong> <strong>Manual</strong>, <strong>Release</strong> 3.6.1.2828<br />

• get_center_of_mass()<br />

• get_distance()<br />

• get_volume()<br />

• has()<br />

• edit()<br />

• identical_to()<br />

7.1.7 List of all Methods<br />

class ase.atoms.Atoms(symbols=None, positions=None, numbers=None, tags=None, momenta=None,<br />

masses=None, magmoms=None, charges=None,<br />

scaled_positions=None, cell=None, pbc=None, celldisp=None, constraint=None,<br />

calculator=None, info=None)<br />

Atoms object.<br />

The Atoms object can represent an isolated molecule, or a periodically repeated structure. It has a unit cell<br />

and there may be periodic boundary conditions along any of the three unit cell axes.<br />

Information about the atoms (atomic numbers and position) is stored in ndarrays. Optionally, there can be<br />

information about tags, momenta, masses, magnetic moments and charges.<br />

In order to calculate energies, forces and stresses, a calculator object has to attached to the atoms object.<br />

Parameters:<br />

symbols: str (formula) or list of str Can be a string formula, a list of symbols or a list of Atom objects.<br />

Examples: ‘H2O’, ‘COPt12’, [’H’, ‘H’, ‘O’], [Atom(‘Ne’, (x, y, z)), ...].<br />

positions: list of xyz-positions Atomic positions. Anything that can be converted to an ndarray of shape<br />

(n, 3) will do: [(x1,y1,z1), (x2,y2,z2), ...].<br />

scaled_positions: list of scaled-positions Like positions, but given in units of the unit cell. Can not be set<br />

at the same time as positions.<br />

numbers: list of int Atomic numbers (use only one of symbols/numbers).<br />

tags: list of int Special purpose tags.<br />

momenta: list of xyz-momenta Momenta for all atoms.<br />

masses: list of float Atomic masses in atomic units.<br />

magmoms: list of float or list of xyz-values Magnetic moments. Can be either a single value for each<br />

atom for collinear calculations or three numbers for each atom for non-collinear calculations.<br />

charges: list of float Atomic charges.<br />

cell: 3x3 matrix Unit cell vectors. Can also be given as just three numbers for orthorhombic cells. Default<br />

value: [1, 1, 1].<br />

celldisp: Vector Unit cell displacement vector. To visualize a displaced cell around the center of mass of a<br />

Systems of atoms. Default value = (0,0,0)<br />

pbc: one or three bool Periodic boundary conditions flags. Examples: True, False, 0, 1, (1, 1, 0), (True,<br />

False, False). Default value: False.<br />

constraint: constraint object(s) Used for applying one or more constraints during structure optimization.<br />

calculator: calculator object Used to attach a calculator for calculating energies and atomic forces.<br />

info: dict of key-value pairs Dictionary of key-value pairs with additional information about the system.<br />

The following keys may be used by ase:<br />

• spacegroup: Spacegroup instance<br />

58 Chapter 7. Documentation for modules in <strong>ASE</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!