python import cclib def parse_gaussian_log(log_file_path): log_file = open(log_file_path, 'r') data = log_file.read() parser = cclib.io.ccread(data, log_file_path) molecule = parser.parse() return molecule.atomcoords, molecule.energy log_file_path = 'path/to/gaussian.log' atom_coords, energy = parse_gaussian_log(log_file_path) print("Atom coordinates:", atom_coords) print("Energy:", energy)


上一篇:
下一篇:
切换中文