|
5 | 5 | "execution_count": 1,
|
6 | 6 | "id": "7c8c9669",
|
7 | 7 | "metadata": {},
|
8 |
| - "outputs": [ |
9 |
| - { |
10 |
| - "name": "stderr", |
11 |
| - "output_type": "stream", |
12 |
| - "text": [ |
13 |
| - "/home/simon/.local/lib/python3.12/site-packages/matplotlib/projections/__init__.py:63: UserWarning: Unable to import Axes3D. This may be due to multiple versions of Matplotlib being installed (e.g. as a system package and as a pip package). As a result, the 3D projection is not available.\n", |
14 |
| - " warnings.warn(\"Unable to import Axes3D. This may be due to multiple versions of \"\n" |
15 |
| - ] |
16 |
| - } |
17 |
| - ], |
| 8 | + "outputs": [], |
18 | 9 | "source": [
|
19 | 10 | "import numpy as np\n",
|
20 | 11 | "import sys, os, git, lammps_logfile\n",
|
|
62 | 53 | "log = lammps_logfile.File(data_path + \"log.lammps\")\n",
|
63 | 54 | "timestep = 0.005\n",
|
64 | 55 | "Time_EM = log.get(\"Step\", run_num = 0)*timestep\n",
|
65 |
| - "PotEng_EM = log.get(\"PotEng\", run_num = 0)\n", |
66 |
| - "KinEng_EM = log.get(\"KinEng\", run_num = 0)\n", |
| 56 | + "PotEng_EM = log.get(\"TotEng\", run_num = 0) # its the same if Kin En = 0\n", |
67 | 57 | "Time_MD = log.get(\"Step\", run_num = 1)*timestep\n",
|
68 | 58 | "PotEng_MD = log.get(\"PotEng\", run_num = 1)\n",
|
69 | 59 | "KinEng_MD = log.get(\"KinEng\", run_num = 1)"
|
70 | 60 | ]
|
71 | 61 | },
|
72 | 62 | {
|
73 | 63 | "cell_type": "code",
|
74 |
| - "execution_count": 4, |
75 |
| - "id": "90ba3a69", |
| 64 | + "execution_count": 7, |
| 65 | + "id": "5b2dc55f", |
76 | 66 | "metadata": {},
|
77 | 67 | "outputs": [
|
78 | 68 | {
|
|
103 | 93 | " myplt.prepare_figure(fig_size = (18,10), dark_mode = dark_mode,\n",
|
104 | 94 | " transparency = True, use_serif=True, n_line=2)\n",
|
105 | 95 | " myplt.add_panel()\n",
|
106 |
| - " myplt.add_plot(x = Time_EM, y = PotEng_EM, type = \"plot\", linewidth_data = 3,\n", |
| 96 | + " myplt.add_plot(x = Time_EM, y = PotEng_EM, linewidth_data = 3,\n", |
107 | 97 | " marker = \"-\", data_color = 1, markersize = 12,\n",
|
108 | 98 | " data_label = r'$E_{12}$')\n",
|
109 | 99 | " myplt.add_plot(x = Time_MD, y = PotEng_MD, type = \"plot\", linewidth_data = 3,\n",
|
|
114 | 104 | " myplt.set_boundaries(x_ticks=np.arange(0, 25, 5), x_boundaries=(-0.5, 20.5),\n",
|
115 | 105 | " y_ticks=np.arange(-1, 0.2, 0.2), y_boundaries=(-1, 0.1))\n",
|
116 | 106 | " myplt.add_panel()\n",
|
117 |
| - " myplt.add_plot(x = Time_EM, y = KinEng_EM, type = \"plot\", linewidth_data = 3,\n", |
| 107 | + " myplt.add_plot(x = Time_EM, y = PotEng_EM*0, type = \"plot\", linewidth_data = 3,\n", |
118 | 108 | " marker = \"-\", data_color = 1, markersize = 12,\n",
|
119 | 109 | " data_label = r'$\\mathrm{Energy~Minimization}$')\n",
|
120 | 110 | " myplt.add_plot(x = Time_MD, y = KinEng_MD, type = \"plot\", linewidth_data = 3,\n",
|
|
0 commit comments