acpype.mol.Atom
- class acpype.mol.Atom(atomName: str, atomType: AtomType, id_: int, resid: int, mass: float, charge: float, coord: List[float])
Bases:
objectAtom Object Definition
Charges in prmtop file are divided by
18.2223to be converted in units of the electron charge.To convert
ACOEFandBCOEFtor0(Å) andepsilon(ε: kcal/mol), as seen ingaff.datfor example, for a same atom type (i = j):\[\begin{split}r_0 &= 1/2 * (2 * A_{coef}/B_{coef})^{1/6} \\ \epsilon &= 1/(4 * A_{coef}) * B_{coef}^2\end{split}\]To convert
r0andepsilontoACOEFandBCOEF:\[\begin{split}A_{coef} &= \sqrt{\epsilon_i * \epsilon_j} * (r_{0i} + r_{0j})^{12} \\ B_{coef} &= 2 * \sqrt{\epsilon_i * \epsilon_j} * (r_{0i} + r_{0j})^6 \\ &= 2 * A_{coef}/(r_{0i} + r_{0j})^6\end{split}\]where index
iandjfor atom types. Coordinates are given in Å and masses in Atomic Mass Unit.- Returns:
atom object
- Return type:
- __init__(atomName: str, atomType: AtomType, id_: int, resid: int, mass: float, charge: float, coord: List[float])
- Parameters:
atomName (str) – atom name
atomType (AtomType) – atomType object
id (int) – atom number index
resid (int) – residues number index
mass (float) – atom mass
charge (float) – atom charge
coord (List[float]) – atom (x,y,z) coordinates
Methods
__init__(atomName, atomType, id_, resid, ...)- param atomName:
atom name