AtomicSystem.add_atoms#
- AtomicSystem.add_atoms(atypes, positions, charges=None, masses=None)#
Add multiple atoms to the system in a single operation.
- Parameters:
- atypeslist of str or int, or np.ndarray
Atom types (e.g.
['H', 'Ow', 'Ca']).- positionsarray-like of shape (n, 3)
Cartesian coordinates in Angstroms.
- chargesarray-like of shape (n,), optional
Partial charges in elementary charge units. Default is
0.0for each atom.- masseslist of float, optional
Atomic masses in g/mol. If
None, masses are looked up inMASSES_DICTor default to1.0for unknown types.