atomli.atoms
Generated from the public Python surface of Atomli 0.1.18.
Atoms(symbols=None, positions=None, cell=None, pbc=None, charge=None, unpaired=None)
Section titled “Atoms(symbols=None, positions=None, cell=None, pbc=None, charge=None, unpaired=None)”A collection of atoms. ASE method surface (properties via Python).
append(self, /, atom)
Section titled “append(self, /, atom)”center(self, /, vacuum=None, axis=None)
Section titled “center(self, /, vacuum=None, axis=None)”Center atoms (in place). Optional vacuum in angstrom along axes.
vacuum: Vacuum padding in angstrom, or None.axis: Which axes to center; True/False or length-3 sequence.
copy(self, /)
Section titled “copy(self, /)”edit(self, /)
Section titled “edit(self, /)”euler_rotate(self, /, phi=0.0, theta=0.0, psi=0.0, center=None)
Section titled “euler_rotate(self, /, phi=0.0, theta=0.0, psi=0.0, center=None)”extend(self, /, other)
Section titled “extend(self, /, other)”fromdict(dct)
Section titled “fromdict(dct)”get_all_distances(self, /, mic=False, vector=False)
Section titled “get_all_distances(self, /, mic=False, vector=False)”get_angle(self, /, a0, a1, a2, mic=False)
Section titled “get_angle(self, /, a0, a1, a2, mic=False)”Angle in degrees formed by three atoms a0 - a1 - a2 (vertex at a1).
get_angles(self, /, indices, mic=False)
Section titled “get_angles(self, /, indices, mic=False)”Angles in degrees for a list of (a0, a1, a2) index triplets.
get_angular_momentum(self, /)
Section titled “get_angular_momentum(self, /)”get_array(self, /, name, copy=True)
Section titled “get_array(self, /, name, copy=True)”get_atomic_numbers(self, /)
Section titled “get_atomic_numbers(self, /)”get_calculator(self, /)
Section titled “get_calculator(self, /)”get_cell(self, /, complete=False)
Section titled “get_cell(self, /, complete=False)”get_cell_lengths_and_angles(self, /)
Section titled “get_cell_lengths_and_angles(self, /)”get_celldisp(self, /)
Section titled “get_celldisp(self, /)”get_center_of_mass(self, /, scaled=False, indices=None)
Section titled “get_center_of_mass(self, /, scaled=False, indices=None)”get_charges(self, /)
Section titled “get_charges(self, /)”get_chemical_formula(self, /)
Section titled “get_chemical_formula(self, /)”Hill-system chemical formula string (e.g. "H2O").
get_chemical_symbols(self, /)
Section titled “get_chemical_symbols(self, /)”get_dihedral(self, /, a0, a1, a2, a3, mic=False)
Section titled “get_dihedral(self, /, a0, a1, a2, a3, mic=False)”Dihedral angle in degrees in [0, 360) for four atoms a0 - a1 - a2 - a3.
get_dihedrals(self, /, indices, mic=False)
Section titled “get_dihedrals(self, /, indices, mic=False)”Dihedral angles in degrees in [0, 360) for a list of (a0, a1, a2, a3) quadruplets.
get_dipole_moment(self, /)
Section titled “get_dipole_moment(self, /)”get_distance(self, /, a0, a1, mic=False, vector=False)
Section titled “get_distance(self, /, a0, a1, mic=False, vector=False)”get_distances(self, /, a, indices, mic=False, vector=False)
Section titled “get_distances(self, /, a, indices, mic=False, vector=False)”get_forces(self, /, apply_constraint=True, md=False)
Section titled “get_forces(self, /, apply_constraint=True, md=False)”get_global_number_of_atoms(self, /)
Section titled “get_global_number_of_atoms(self, /)”get_initial_charges(self, /)
Section titled “get_initial_charges(self, /)”get_initial_magnetic_moments(self, /)
Section titled “get_initial_magnetic_moments(self, /)”get_kinetic_energy(self, /)
Section titled “get_kinetic_energy(self, /)”get_kinetic_stress(self, /, voigt=True)
Section titled “get_kinetic_stress(self, /, voigt=True)”get_kinetic_stresses(self, /, voigt=True)
Section titled “get_kinetic_stresses(self, /, voigt=True)”get_magnetic_moment(self, /)
Section titled “get_magnetic_moment(self, /)”get_magnetic_moments(self, /)
Section titled “get_magnetic_moments(self, /)”get_masses(self, /)
Section titled “get_masses(self, /)”get_momenta(self, /)
Section titled “get_momenta(self, /)”Momenta as mass times ASE velocity units, shape (n, 3).
Numerically identical to ASE Atoms.get_momenta().
get_moments_of_inertia(self, /, vectors=False)
Section titled “get_moments_of_inertia(self, /, vectors=False)”get_number_of_atoms(self, /)
Section titled “get_number_of_atoms(self, /)”get_number_of_degrees_of_freedom(self, /)
Section titled “get_number_of_degrees_of_freedom(self, /)”get_pbc(self, /)
Section titled “get_pbc(self, /)”get_positions(self, /)
Section titled “get_positions(self, /)”get_potential_energies(self, /)
Section titled “get_potential_energies(self, /)”get_potential_energy(self, /, force_consistent=False, apply_constraint=True)
Section titled “get_potential_energy(self, /, force_consistent=False, apply_constraint=True)”get_properties(self, /, properties)
Section titled “get_properties(self, /, properties)”get_reciprocal_cell(self, /)
Section titled “get_reciprocal_cell(self, /)”get_scaled_positions(self, /, wrap=True)
Section titled “get_scaled_positions(self, /, wrap=True)”Fractional (scaled) positions, shape (n, 3). Needs a cell.
wrap: Wrap into the cell along the periodic directions. ASE defaults to True, so atomli does too: without it a periodic structure silently reports coordinates outside [0, 1).
get_stress(self, /, voigt=True, apply_constraint=True, include_ideal_gas=False)
Section titled “get_stress(self, /, voigt=True, apply_constraint=True, include_ideal_gas=False)”get_stresses(self, /, include_ideal_gas=False, voigt=True)
Section titled “get_stresses(self, /, include_ideal_gas=False, voigt=True)”get_tags(self, /)
Section titled “get_tags(self, /)”Integer tags per atom, shape (n,).
get_temperature(self, /)
Section titled “get_temperature(self, /)”get_total_energy(self, /)
Section titled “get_total_energy(self, /)”get_velocities(self, /)
Section titled “get_velocities(self, /)”get_volume(self, /)
Section titled “get_volume(self, /)”Unit-cell volume in angstrom^3.
Matches ASE: with fewer than three lattice vectors the volume is not
defined and this raises ValueError. Returning zero instead would
turn the error into a silent division by zero downstream.
has(self, /, name)
Section titled “has(self, /, name)”iterimages(self, /)
Section titled “iterimages(self, /)”new_array(self, /, name, a, dtype=None, shape=None)
Section titled “new_array(self, /, name, a, dtype=None, shape=None)”pop(self, /, i=None)
Section titled “pop(self, /, i=None)”rattle(self, /, stdev=0.001, seed=None, rng=None)
Section titled “rattle(self, /, stdev=0.001, seed=None, rng=None)”repeat(self, /, rep)
Section titled “repeat(self, /, rep)”rotate(self, /, a, v, center=None, rotate_cell=False)
Section titled “rotate(self, /, a, v, center=None, rotate_cell=False)”rotate_dihedral(self, /, a1, a2, a3, a4, angle, mask=None, indices=None)
Section titled “rotate_dihedral(self, /, a1, a2, a3, a4, angle, mask=None, indices=None)”set_angle(self, /, a1, a2=None, a3=None, angle=None, mask=None, indices=None, add=False)
Section titled “set_angle(self, /, a1, a2=None, a3=None, angle=None, mask=None, indices=None, add=False)”set_array(self, /, name, a, dtype=None, shape=None)
Section titled “set_array(self, /, name, a, dtype=None, shape=None)”set_atomic_numbers(self, /, numbers)
Section titled “set_atomic_numbers(self, /, numbers)”set_calculator(self, /, value=None)
Section titled “set_calculator(self, /, value=None)”set_cell(self, /, cell, scale_atoms=False, apply_constraint=True, *, pbc=None)
Section titled “set_cell(self, /, cell, scale_atoms=False, apply_constraint=True, *, pbc=None)”set_celldisp(self, /, celldisp)
Section titled “set_celldisp(self, /, celldisp)”set_center_of_mass(self, /, com, scaled=False)
Section titled “set_center_of_mass(self, /, com, scaled=False)”set_chemical_symbols(self, /, symbols)
Section titled “set_chemical_symbols(self, /, symbols)”set_constraint(self, /, constraint=None)
Section titled “set_constraint(self, /, constraint=None)”set_dihedral(self, /, a1, a2, a3, a4, angle, mask=None, indices=None)
Section titled “set_dihedral(self, /, a1, a2, a3, a4, angle, mask=None, indices=None)”set_distance(self, /, a0, a1, distance, fix=0.5, mic=False, mask=None, indices=None, add=False, factor=False)
Section titled “set_distance(self, /, a0, a1, distance, fix=0.5, mic=False, mask=None, indices=None, add=False, factor=False)”set_initial_charges(self, /, charges)
Section titled “set_initial_charges(self, /, charges)”set_initial_magnetic_moments(self, /, moments)
Section titled “set_initial_magnetic_moments(self, /, moments)”set_masses(self, /, masses)
Section titled “set_masses(self, /, masses)”set_momenta(self, /, momenta)
Section titled “set_momenta(self, /, momenta)”Set ASE-compatible momenta; updates velocities.
set_pbc(self, /, pbc)
Section titled “set_pbc(self, /, pbc)”set_positions(self, /, positions)
Section titled “set_positions(self, /, positions)”set_scaled_positions(self, /, scaled)
Section titled “set_scaled_positions(self, /, scaled)”Set fractional positions (requires a cell).
set_tags(self, /, tags)
Section titled “set_tags(self, /, tags)”Replace integer tags (length n).
set_velocities(self, /, velocities)
Section titled “set_velocities(self, /, velocities)”todict(self, /)
Section titled “todict(self, /)”translate(self, /, displacement)
Section titled “translate(self, /, displacement)”wrap(self, /)
Section titled “wrap(self, /)”Wrap positions into the unit cell (in place). Needs PBC cell.