|
| 1 | +{ |
| 2 | + "cells": [ |
| 3 | + { |
| 4 | + "cell_type": "code", |
| 5 | + "execution_count": null, |
| 6 | + "id": "initial_id", |
| 7 | + "metadata": { |
| 8 | + "collapsed": true |
| 9 | + }, |
| 10 | + "outputs": [], |
| 11 | + "source": [ |
| 12 | + "from pathlib import Path\n", |
| 13 | + "TEST_ROOT = Path(__file__).parent.parent / \"tests\"\n", |
| 14 | + "TEST_DIR = TEST_ROOT / \"test_data\"" |
| 15 | + ] |
| 16 | + }, |
| 17 | + { |
| 18 | + "metadata": {}, |
| 19 | + "cell_type": "code", |
| 20 | + "outputs": [], |
| 21 | + "execution_count": null, |
| 22 | + "source": [ |
| 23 | + "from pymatgen.core.structure import Structure\n", |
| 24 | + "si_structure = Structure.from_file(TEST_DIR / \"structures\" / \"Si.cif\")" |
| 25 | + ], |
| 26 | + "id": "59d1925b6558c9bb" |
| 27 | + }, |
| 28 | + { |
| 29 | + "metadata": {}, |
| 30 | + "cell_type": "code", |
| 31 | + "outputs": [], |
| 32 | + "execution_count": null, |
| 33 | + "source": [ |
| 34 | + "from atomate2.forcefields.flows.phonons import PhononMaker\n", |
| 35 | + "from jobflow import run_locally\n", |
| 36 | + "flow=PhononMaker(\n", |
| 37 | + " min_length=3.0,\n", |
| 38 | + " born_maker=None,\n", |
| 39 | + " use_symmetrized_structure=\"conventional\",\n", |
| 40 | + " create_thermal_displacements=False,\n", |
| 41 | + " store_force_constants=False,\n", |
| 42 | + " prefer_90_degrees=False,\n", |
| 43 | + " generate_frequencies_eigenvectors_kwargs={\"tstep\": 100},\n", |
| 44 | + " ).make(si_structure)\n", |
| 45 | + "run_locally(flow, store=job_store,create_folders=True, raise_immediately=True)" |
| 46 | + ], |
| 47 | + "id": "83e78705d60d7c9b" |
| 48 | + }, |
| 49 | + { |
| 50 | + "metadata": {}, |
| 51 | + "cell_type": "code", |
| 52 | + "outputs": [], |
| 53 | + "execution_count": null, |
| 54 | + "source": "", |
| 55 | + "id": "bf10b23db3655278" |
| 56 | + } |
| 57 | + ], |
| 58 | + "metadata": { |
| 59 | + "kernelspec": { |
| 60 | + "display_name": "Python 3", |
| 61 | + "language": "python", |
| 62 | + "name": "python3" |
| 63 | + }, |
| 64 | + "language_info": { |
| 65 | + "codemirror_mode": { |
| 66 | + "name": "ipython", |
| 67 | + "version": 2 |
| 68 | + }, |
| 69 | + "file_extension": ".py", |
| 70 | + "mimetype": "text/x-python", |
| 71 | + "name": "python", |
| 72 | + "nbconvert_exporter": "python", |
| 73 | + "pygments_lexer": "ipython2", |
| 74 | + "version": "2.7.6" |
| 75 | + } |
| 76 | + }, |
| 77 | + "nbformat": 4, |
| 78 | + "nbformat_minor": 5 |
| 79 | +} |
0 commit comments