Skip to content

Commit c36d9e9

Browse files
authored
fix gruneisen tutorial (#1142)
* fix gruneisen tutorial * run precommit
1 parent d445619 commit c36d9e9

File tree

4 files changed

+56
-18
lines changed

4 files changed

+56
-18
lines changed

tutorials/grueneisen_workflow.ipynb

Lines changed: 49 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -159,23 +159,61 @@
159159
]
160160
},
161161
{
162-
"cell_type": "markdown",
162+
"cell_type": "code",
163+
"execution_count": null,
163164
"id": "8",
164165
"metadata": {},
166+
"outputs": [],
167+
"source": [
168+
"phonon_bulk_relax_maker_isif4 = DoubleRelaxMaker.from_relax_maker(\n",
169+
" TightRelaxMaker(\n",
170+
" run_vasp_kwargs={\"handlers\": ()},\n",
171+
" input_set_generator=TightRelaxSetGenerator(\n",
172+
" user_incar_settings={\n",
173+
" \"GGA\": \"PE\",\n",
174+
" \"ISPIN\": 1,\n",
175+
" \"KSPACING\": 0.1,\n",
176+
" # \"EDIFFG\": 1e-5,\n",
177+
" \"ALGO\": \"Normal\",\n",
178+
" \"LAECHG\": False,\n",
179+
" \"ISMEAR\": 0,\n",
180+
" \"ENCUT\": 700,\n",
181+
" \"IBRION\": 1,\n",
182+
" \"ISYM\": 0,\n",
183+
" \"SIGMA\": 0.05,\n",
184+
" \"LCHARG\": False,\n",
185+
" \"LWAVE\": False,\n",
186+
" \"LVTOT\": False,\n",
187+
" \"LORBIT\": None,\n",
188+
" \"LOPTICS\": False,\n",
189+
" \"LREAL\": False,\n",
190+
" \"ISIF\": 4,\n",
191+
" \"NPAR\": 4,\n",
192+
" }\n",
193+
" ),\n",
194+
" )\n",
195+
")"
196+
]
197+
},
198+
{
199+
"cell_type": "markdown",
200+
"id": "9",
201+
"metadata": {},
165202
"source": [
166203
"Then one can use the `GruneisenMaker` to generate a `Flow`."
167204
]
168205
},
169206
{
170207
"cell_type": "code",
171208
"execution_count": null,
172-
"id": "9",
209+
"id": "10",
173210
"metadata": {},
174211
"outputs": [],
175212
"source": [
176213
"flow = GruneisenMaker(\n",
177214
" symprec=1e-4,\n",
178215
" bulk_relax_maker=phonon_bulk_relax_maker_isif3,\n",
216+
" const_vol_relax_maker=phonon_bulk_relax_maker_isif4,\n",
179217
" phonon_maker=PhononMaker(\n",
180218
" generate_frequencies_eigenvectors_kwargs={\n",
181219
" \"tmin\": 0,\n",
@@ -194,7 +232,7 @@
194232
{
195233
"cell_type": "code",
196234
"execution_count": null,
197-
"id": "10",
235+
"id": "11",
198236
"metadata": {},
199237
"outputs": [],
200238
"source": [
@@ -203,7 +241,7 @@
203241
},
204242
{
205243
"cell_type": "markdown",
206-
"id": "11",
244+
"id": "12",
207245
"metadata": {},
208246
"source": [
209247
"We can then run the code with \"mock_vasp\"."
@@ -212,7 +250,7 @@
212250
{
213251
"cell_type": "code",
214252
"execution_count": null,
215-
"id": "12",
253+
"id": "13",
216254
"metadata": {
217255
"jupyter": {
218256
"is_executing": true
@@ -232,7 +270,7 @@
232270
},
233271
{
234272
"cell_type": "markdown",
235-
"id": "13",
273+
"id": "14",
236274
"metadata": {},
237275
"source": [
238276
"Let's then analyze outputs from the workflow."
@@ -241,7 +279,7 @@
241279
{
242280
"cell_type": "code",
243281
"execution_count": null,
244-
"id": "14",
282+
"id": "15",
245283
"metadata": {},
246284
"outputs": [],
247285
"source": [
@@ -261,7 +299,7 @@
261299
{
262300
"cell_type": "code",
263301
"execution_count": null,
264-
"id": "15",
302+
"id": "16",
265303
"metadata": {},
266304
"outputs": [],
267305
"source": [
@@ -280,14 +318,14 @@
280318
"language_info": {
281319
"codemirror_mode": {
282320
"name": "ipython",
283-
"version": 2
321+
"version": 3
284322
},
285323
"file_extension": ".py",
286324
"mimetype": "text/x-python",
287325
"name": "python",
288326
"nbconvert_exporter": "python",
289-
"pygments_lexer": "ipython2",
290-
"version": "2.7.6"
327+
"pygments_lexer": "ipython3",
328+
"version": "3.10.16"
291329
}
292330
},
293331
"nbformat": 4,

tutorials/phonon_workflow.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,14 @@
212212
"language_info": {
213213
"codemirror_mode": {
214214
"name": "ipython",
215-
"version": 2
215+
"version": 3
216216
},
217217
"file_extension": ".py",
218218
"mimetype": "text/x-python",
219219
"name": "python",
220220
"nbconvert_exporter": "python",
221-
"pygments_lexer": "ipython2",
222-
"version": "2.7.6"
221+
"pygments_lexer": "ipython3",
222+
"version": "3.10.16"
223223
}
224224
},
225225
"nbformat": 4,

tutorials/phonon_worflow_aims.ipynb renamed to tutorials/phonon_workflow_aims.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@
344344
"name": "python",
345345
"nbconvert_exporter": "python",
346346
"pygments_lexer": "ipython3",
347-
"version": "3.12.9"
347+
"version": "3.10.16"
348348
}
349349
},
350350
"nbformat": 4,

tutorials/qha_workflow.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,14 +367,14 @@
367367
"language_info": {
368368
"codemirror_mode": {
369369
"name": "ipython",
370-
"version": 2
370+
"version": 3
371371
},
372372
"file_extension": ".py",
373373
"mimetype": "text/x-python",
374374
"name": "python",
375375
"nbconvert_exporter": "python",
376-
"pygments_lexer": "ipython2",
377-
"version": "2.7.6"
376+
"pygments_lexer": "ipython3",
377+
"version": "3.10.16"
378378
}
379379
},
380380
"nbformat": 4,

0 commit comments

Comments
 (0)