|
42 | 42 | "source": [ |
43 | 43 | "## Set the plotting parameters\n", |
44 | 44 | "seed = 0\n", |
45 | | - "identifier = \"_VASP\"\n", |
| 45 | + "identifier = \"\"\n", |
46 | 46 | "output_directory_prefix = \"DResponse\"\n", |
47 | 47 | "# min_energy = -" |
48 | 48 | ] |
|
57 | 57 | "from agox.models.descriptors.fingerprint import Fingerprint\n", |
58 | 58 | "# from agox.models.descriptors import Voronoi\n", |
59 | 59 | "\n", |
60 | | - "template = read(output_directory_prefix+identifier+\"/unrlxd_structures_seed0.xyz\")\n", |
| 60 | + "template = read(output_directory_prefix+identifier+\"/unrlxd_structures_seed0.traj\")\n", |
61 | 61 | "# diamond = bulk(\"C\", \"diamond\", a=3.567) # Lattice constant for diamond cubic carbon\n", |
62 | 62 | "confinement_cell = template.cell.copy()\n", |
63 | 63 | "confinement_corner = np.array([0, 0, 0])\n", |
|
97 | 97 | "outputs": [], |
98 | 98 | "source": [ |
99 | 99 | "## Load the unrelaxed structures\n", |
100 | | - "unrlxd_structures = read(output_directory_prefix+identifier+\"/unrlxd_structures_seed\"+str(seed)+\".xyz\", index=\":\")" |
| 100 | + "unrlxd_structures = read(output_directory_prefix+identifier+\"/unrlxd_structures_seed\"+str(seed)+\".traj\", index=\":\")" |
101 | 101 | ] |
102 | 102 | }, |
103 | 103 | { |
|
107 | 107 | "outputs": [], |
108 | 108 | "source": [ |
109 | 109 | "## Load the relaxed structures\n", |
110 | | - "rlxd_structures = read(output_directory_prefix+identifier+\"/rlxd_structures_seed\"+str(seed)+\".xyz\", index=\":\")" |
| 110 | + "rlxd_structures = read(output_directory_prefix+identifier+\"/rlxd_structures_seed\"+str(seed)+\".traj\", index=\":\")" |
111 | 111 | ] |
112 | 112 | }, |
113 | 113 | { |
|
174 | 174 | " print(\"Minimum energy per atom is not zero. Check the energy calculation.\")" |
175 | 175 | ] |
176 | 176 | }, |
| 177 | + { |
| 178 | + "cell_type": "code", |
| 179 | + "execution_count": null, |
| 180 | + "metadata": {}, |
| 181 | + "outputs": [], |
| 182 | + "source": [ |
| 183 | + "# print the min, max, mean, and std of the relaxed energies\n", |
| 184 | + "print(\"Relaxed energies per atom: min = {:.2f}, max = {:.2f}, mean = {:.2f}, std = {:.2f}\".format(\n", |
| 185 | + " np.min(rlxd_delta_en_per_atom), np.max(rlxd_delta_en_per_atom), \n", |
| 186 | + " np.mean(rlxd_delta_en_per_atom), np.std(rlxd_delta_en_per_atom)))\n", |
| 187 | + "# plot in latex table format\n", |
| 188 | + "print(\"MoS$_2$ search & {:.2f} & {:.2f} & {:.2f} & {:.2f} \\\\\\\\\".format(\n", |
| 189 | + " np.min(rlxd_delta_en_per_atom), np.max(rlxd_delta_en_per_atom), \n", |
| 190 | + " np.mean(rlxd_delta_en_per_atom), np.std(rlxd_delta_en_per_atom)))" |
| 191 | + ] |
| 192 | + }, |
177 | 193 | { |
178 | 194 | "cell_type": "code", |
179 | 195 | "execution_count": null, |
|
0 commit comments