{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "\n# File conversion\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "*Here we create the necessary files for this example.\nGo to next section for the file conversion.*\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "from ase.build import fcc111\nfrom ase.io import write\n\natoms = fcc111('Au', size=(4, 4, 6), vacuum=6.0)\natoms.info.clear()\nwrite('slab.extxyz', atoms, format='extxyz')\n\nimages_rattled = []\nfor i in range(10):\n atoms.rattle(stdev=0.1, seed=i)\n images_rattled.append(atoms.copy())\nwrite('md_trajectory.traj', images_rattled)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## With python interpreter\n\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "