Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
{
"cells": [
{
"cell_type": "markdown",
"id": "25d5b0d5-f330-4dcb-9b7c-f57c4bea9596",
"metadata": {},
"source": [
"# **Workshop: From electrons to phase diagrams**\n",
"\n",
"# Day 2: Validation of the potentials (draft)"
]
},
{
"cell_type": "markdown",
"id": "4756d4c9-304a-4ccc-b772-ba67d008c5a4",
"metadata": {},
"source": [
"## Import the fitted potentials for Li-Al ( from prevoius excercise)"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "83f7a2c9-d45a-4987-9e35-59badd754d4f",
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import matplotlib.pylab as plt\n",
"import seaborn as sns\n",
"import pandas as pd\n",
"import time\n",
"from helper import potentials_list, get_clean_project_name"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "73bedeef-3e9b-4ca4-99c1-1be729222df8",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"3.5625"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"time_start = time.process_time()\n",
"time_start"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "da96c965-24f8-401d-911e-72818c90e731",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"></pre>\n"
],
"text/plain": []
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"></pre>\n"
],
"text/plain": []
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"from pyiron_atomistics import Project\n",
"import pyiron_gpl\n",
"# from ase.lattice.compounds import B2\n",
"# from pyiron_atomistics import ase_to_pyiron"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "abf1afd7-a6a1-46b5-99f1-6d74f5986cb1",
"metadata": {},
"outputs": [],
"source": [
"# from structdbrest import StructDBLightRester\n",
"# rest = StructDBLightRester(token=\"workshop2021\")"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "706be2a9-5f94-4eb5-8e4f-6c349fe216b3",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "0d407e4af1e84824992ef6a32b9779dd",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
" 0%| | 0/148 [00:00<?, ?it/s]"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"pr = Project(\"validation_LiAl\")\n",
"pr.remove_jobs(silently=True, recursive=True)"
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "9bd63883-25b3-441f-9b4b-b3c960a179aa",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>Name</th>\n",
" <th>Filename</th>\n",
" <th>Model</th>\n",
" <th>Species</th>\n",
" <th>Config</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>LiAl_eam</td>\n",
" <td>[/home/surendralal/notebooks/workshop_preparation/potentials/AlLi.eam.fs]</td>\n",
" <td>EAM</td>\n",
" <td>[Li, Al]</td>\n",
" <td>[pair_style eam/fs\\n, pair_coeff * * AlLi.eam.fs Li Al\\n]</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" Name \\\n",
"0 LiAl_eam \n",
"\n",
" Filename \\\n",
"0 [/home/surendralal/notebooks/workshop_preparation/potentials/AlLi.eam.fs] \n",
"\n",
" Model Species Config \n",
"0 EAM [Li, Al] [pair_style eam/fs\\n, pair_coeff * * AlLi.eam.fs Li Al\\n] "
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"potentials_list[0]"
]
},
{
"cell_type": "markdown",
"id": "3b84ed62-e841-4526-893e-dc4f61477c88",
"metadata": {},
"source": [
Loading
Loading full blame...