2.1.1. moha.system package

2.1.1.1. Subpackages

2.1.1.2. Submodules

2.1.1.3. moha.system.atom module

class moha.system.atom.Atom(element, coordinate)[source]

Bases: object

Class for atom.

namestr

Name of the atom.

valueint

Atomic number of the atom

coordinate3-list

Coordinate of the atom.

__init__(self,element,coordinate)

Initialize the instance.

2.1.1.4. moha.system.auxiliary module

moha.system.auxiliary.boys(n, t)[source]

Boys function for the calculation of coulombic integrals.

nint

Order of boys function

tfloat

Varible for boys function.

TypeError

If boys function order is not an integer.

ValueError

If boys function order n is not a none negative number.

moha.system.auxiliary.eint(a, b, c, d)[source]
moha.system.auxiliary.gaussian_product_center(a, A, b, B)[source]

2.1.1.5. moha.system.molecule module

class moha.system.molecule.Molecule(title, size, symmetry='C1')[source]

Bases: list

Molecular Class.

titlestr

Title of the system.

sizeint

Number of atoms.

symmetrystr

Point group of the molecule.

center_of_mass(self)

Calculate the center of mass for molecular.

bond_length(self,i,j)

bond_angle(i, j, k)[source]
Calculate the bond angle between atoms i,j,k.

Where atom j is the central atom.

iint

Index of first atom.

jint

Index of second atom.

kint

Index of third atom.

TypeError

If index of atom is not int.

ValueError

If index of atom is not zero or positive number. If index of atom is not samller than number of atoms.

bond_length(i, j)[source]

Calculate the the distances between atom i and j.

iint

Index of first atom.

jint

Index of second atom.

TypeError

If index of atom is not int.

ValueError

If index of atom is not zero or positive number. If index of atom is not samller than number of atoms.

dihedral_angle(A, B, C, D)[source]

Calculate dihedral angle for atom connectivit A,B,C,D.

iint

Index of first atom.

jint

Index of second atom.

kint

Index of third atom.

lint

Index of fourth atom.

TypeError

If index of atom is not int.

ValueError

If index of atom is not zero or positive number. If index of atom is not samller than number of atoms.

classmethod from_file(filename)[source]

Generate N electron basis set.

truncationlist

A list of truncation degree.

TypeError

If truncation is not a list.

out_of_plane_angle(i, j, k, l)[source]
Calculate out of plane angle, which is for atom A

out of the plane consist by atoms B C D

iint

Index of first atom.

jint

Index of second atom.

kint

Index of third atom.

lint

Index of fourth atom.

TypeError

If index of atom is not int.

ValueError

If index of atom is not zero or positive number. If index of atom is not samller than number of atoms.

property center_of_mass

Calculate the center of mass for molecular.

2.1.1.6. moha.system.periodic module

class moha.system.periodic.Element(number=None, symbol=None, **kwargs)[source]

Bases: object

Represents an element from the periodic table.

numberint

The atomic number.

symbolstr

A string with the symbol of the element.

namestr

The full element name.

groupint

The group of the element (not for actinides and lanthanides).

class moha.system.periodic.Periodic(elements)[source]

Bases: object

A periodic table data structure.

moha.system.periodic.load_periodic()[source]

Load the periodic table data.

radius_calculated: pm

periodic_table:

An instance of Periodic.

2.1.1.7. Module contents