I/O Write: XYZ

I/O Write: XYZ#

Writer for standard XYZ files. See https://en.wikipedia.org/wiki/XYZ_file_format.

tad_mctc.io.write.turbomole.write_turbomole(fileobj, numbers, positions, **kwargs)#

Write atomic coordinates in Turbomole format to a file object. The input positions are expected to be in atomic units (bohrs).

Parameters:
  • fileobj (IO[Any]) – The file-like object to which the Turbomole data will be written.

  • numbers (Tensor) – A 1D tensor containing atomic numbers.

  • positions (Tensor) – A 2D tensor of shape (n_atoms, 3) containing atomic positions in atomic units (bohrs).

  • fmt (str, optional) – Format string for the position coordinates.