Newer
Older
{
"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\n",
"\n",
"Once we have the fitted potentials, it is necessary to validate them in order to assess their quality with respect to applications.\n",
"\n",
"In this exercise, we use the fitted potentials and perform some basic calculations."
]
},
{
"cell_type": "markdown",
"id": "4756d4c9-304a-4ccc-b772-ba67d008c5a4",
"metadata": {},
"source": [
"## Import the fitted potentials for Li-Al (from earlier excercise)\n",
"\n",
"The same directory contains a `helper.py` file which among other things, also contains the necessary specifications of each of the potentials that we will use today. Individual potentials are descrbed in the LAMMPS format as:\n",
"```\n",
"pot_eam = pd.DataFrame({\n",
" 'Name': ['LiAl_eam'],\n",
" 'Filename': [[\"../potentials/AlLi.eam.fs\")]],\n",
" 'Model': [\"EAM\"],\n",
" 'Species': [['Li', 'Al']],\n",
" 'Config': [['pair_style eam/fs\\n', 'pair_coeff * * AlLi.eam.fs Li Al\\n']]\n",
"})\n",
"\n",
"```\n",
"A list of such DataFrames describing the potentials is saved in a list called `potentials_list`. We import the list as:"
"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/jovyan/workshop_preparation/potentials/...</td>\n",
" <td>EAM</td>\n",
" <td>[Li, Al]</td>\n",
" <td>[pair_style eam/fs\\n, pair_coeff * * AlLi.eam....</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" Name Filename Model \\\n",
"0 LiAl_eam [/home/jovyan/workshop_preparation/potentials/... EAM \n",
" Species Config \n",
"0 [Li, Al] [pair_style eam/fs\\n, pair_coeff * * AlLi.eam.... "
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from helper import potentials_list\n",
"\n",
"\n",
"# display the first element in the list\n",
"# which is an EAM potential\n",
{
"cell_type": "markdown",
"id": "4c84560c",
"metadata": {},
"source": [
"### Import other important modules"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "83f7a2c9-d45a-4987-9e35-59badd754d4f",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"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 get_clean_project_name\n",
"from pyiron_atomistics import Project\n",
"from pyiron import pyiron_to_ase\n",
"import pyiron_gpl\n",
"\n",
"# save start time to record runtime of the notebook\n",
"time_start"
]
},
{
"cell_type": "markdown",
"id": "acc0ee8f",
"metadata": {},
"source": [
"### Create a new project to perform validation calculations\n",
"\n",
"It is useful to create a new project directory for every kind of calculation. Pyiron will automatically create subdirectories for each potential and property we calculate. "
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "706be2a9-5f94-4eb5-8e4f-6c349fe216b3",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "e51d75e54818412eb80fb490eb51d974",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
" 0%| | 0/551 [00:00<?, ?it/s]"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"pr = Project(\"validation_LiAl\")\n",
"\n",
"# remove earlier jobs\n",
{
"cell_type": "markdown",
"id": "3b84ed62-e841-4526-893e-dc4f61477c88",
"metadata": {},
"source": [
"### Define the important pases to consider for validation\n",
"\n",
"We construct a python dictionary `struct_dict` which contains a description of all the important phases that we want to consider for this exercise. The descriptions given in the dictionary will be later used by Pyiron to generate or read the structural configurations for the respective phases.\n",
"\n",
"For unary phases, we provide an initial guess for the lattice parameter and use pyiron to generate the structural prototype.\n",
"\n",
"For binary phases, we provide a phase name and an additional dictionary `fl_dict` which maps the phase name to a `.cif` file saved in a subdirectory. Pyiron will use this information to read the respective configurations from the file."
"id": "28778cef-2a07-4794-888f-7239500e7b5a",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"{'Al': {'s_murn': ['fcc', 'bcc'], 'a': 4.04},\n",
" 'Li': {'s_murn': ['bcc', 'fcc'], 'a': 3.5},\n",
" 'Li2Al2': {'s_murn': ['Li2Al2_cubic']},\n",
" 'LiAl3': {'s_murn': ['LiAl3_cubic']},\n",
" 'Li9Al4': {'s_murn': ['Li9Al4_monoclinic']},\n",
" 'Li3Al2': {'s_murn': ['Li3Al2_trigonal']},\n",
" 'Li4Al4': {'s_murn': ['Li4Al4_cubic']}}"
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"struct_dict = dict()\n",
"struct_dict[\"Al\"] = dict()\n",
"struct_dict[\"Al\"][\"s_murn\"] = [\"fcc\",\"bcc\"]\n",
"struct_dict[\"Al\"][\"a\"] = 4.04\n",
"\n",
"struct_dict[\"Li\"] = dict()\n",
"struct_dict[\"Li\"][\"s_murn\"] = [\"bcc\",\"fcc\"]\n",
"struct_dict[\"Li\"][\"a\"] = 3.5\n",
"\n",
"\n",
"\n",
"\n",
"struct_dict[\"Li2Al2\"] = dict()\n",
"struct_dict[\"Li2Al2\"][\"s_murn\"] = [\"Li2Al2_cubic\"]\n",
"# struct_dict[\"Li2Al2\"][\"a\"] = 3.7\n",
"\n",
"struct_dict[\"LiAl3\"] = dict()\n",
"struct_dict[\"LiAl3\"][\"s_murn\"] = [\"LiAl3_tetragonal\"]\n",
"# struct_dict[\"LiAl3\"][\"a\"] = 3.7\n",
"\n",
"struct_dict[\"LiAl3\"] = dict()\n",
"struct_dict[\"LiAl3\"][\"s_murn\"] = [\"LiAl3_cubic\"]\n",
"# struct_dict[\"LiAl3\"][\"a\"] = 3.7\n",
"\n",
"struct_dict[\"Li9Al4\"] = dict()\n",
"struct_dict[\"Li9Al4\"][\"s_murn\"] = [\"Li9Al4_monoclinic\"]\n",
"# struct_dict[\"Li9Al4\"][\"a\"] = 3.7\n",
"\n",
"struct_dict[\"Li3Al2\"] = dict()\n",
"struct_dict[\"Li3Al2\"][\"s_murn\"] = [\"Li3Al2_trigonal\"]\n",
"# struct_dict[\"Li3Al2\"][\"a\"] = 3.7\n",
"\n",
"struct_dict[\"Li4Al4\"] = dict()\n",
"struct_dict[\"Li4Al4\"][\"s_murn\"] = [\"Li4Al4_cubic\"]\n",
{
"cell_type": "markdown",
"id": "23b2e6d9",
"metadata": {},
"source": [
"a dictionary is described to map the binary phases to their file locations"
]
},
"source": [
"fl_dict = {\"Li2Al2_cubic\": \"mp_structures/LiAl_mp-1067_primitive.cif\",\n",
" \"LiAl3_tetragonal\":\"mp_structures/LiAl3_mp-975906_primitive.cif\",\n",
" \"LiAl3_cubic\":\"mp_structures/LiAl3_mp-10890_primitive.cif\",\n",
" \"Li9Al4_monoclinic\":\"mp_structures/Li9Al4_mp-568404_primitive.cif\",\n",
" \"Li3Al2_trigonal\":\"mp_structures/Al2Li3-6021.cif\",\n",
" \"Li4Al4_cubic\":\"mp_structures/LiAl_mp-1079240_primitive.cif\"}"
]
},
{
"cell_type": "markdown",
"id": "198e9745-734a-4502-8f1b-0330ba8c8fca",
"metadata": {},
"source": [
"\n",
"Using a series of nested `for` loops, we calculate the murnaghan EV-curves using all three potentials for all the defined structures.\n",
"\n",
"We loop over:\n",
" - All the potentials defined in `potentials_list` and name the project according to the potential\n",
" - All the chemical formulae defined in the keys of `struct_dict`\n",
" - All phases defined for a given chemical formula\n",
" \n",
"Within the loops, the first step is to get the structure basis on which we will perform the calculations. \n",
"\n",
"- For unary phases, we use the pyiron function `pr_pot.create_ase_bulk(compound, crys_structure, a=compound_dict[\"a\"])` \n",
"- For binary structures, we read the basis using `pr.create.structure.ase.read(fl_path)` with the `fl_path` given by `fl_dict` defined earlier.\n",
"\n",
"Once the structure and potential is defined as part of the pr_job, we run two calculations:\n",
"- `job_relax` to relax the structure to the ground state\n",
"- `murn_job` to calculate the energies in a small volume range around the equilibrium\n",
"\n",
"As the calculations are being performed, the status(s) of each calculation is printed. If a job is already calculated, the calculations are not re-run but rather re-read from the saved data."
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
"The job Al_fcc_relax was saved and received the ID: 1\n",
"The job murn_job_Al_fcc was saved and received the ID: 2\n",
"The job murn_job_Al_fcc_0_9 was saved and received the ID: 3\n",
"The job murn_job_Al_fcc_0_92 was saved and received the ID: 4\n",
"The job murn_job_Al_fcc_0_94 was saved and received the ID: 5\n",
"The job murn_job_Al_fcc_0_96 was saved and received the ID: 6\n",
"The job murn_job_Al_fcc_0_98 was saved and received the ID: 7\n",
"The job murn_job_Al_fcc_1_0 was saved and received the ID: 8\n",
"The job murn_job_Al_fcc_1_02 was saved and received the ID: 9\n",
"The job murn_job_Al_fcc_1_04 was saved and received the ID: 10\n",
"The job murn_job_Al_fcc_1_06 was saved and received the ID: 11\n",
"The job murn_job_Al_fcc_1_08 was saved and received the ID: 12\n",
"The job murn_job_Al_fcc_1_1 was saved and received the ID: 13\n",
"The job Al_bcc_relax was saved and received the ID: 14\n",
"The job murn_job_Al_bcc was saved and received the ID: 15\n",
"The job murn_job_Al_bcc_0_9 was saved and received the ID: 16\n",
"The job murn_job_Al_bcc_0_92 was saved and received the ID: 17\n",
"The job murn_job_Al_bcc_0_94 was saved and received the ID: 18\n",
"The job murn_job_Al_bcc_0_96 was saved and received the ID: 19\n",
"The job murn_job_Al_bcc_0_98 was saved and received the ID: 20\n",
"The job murn_job_Al_bcc_1_0 was saved and received the ID: 21\n",
"The job murn_job_Al_bcc_1_02 was saved and received the ID: 22\n",
"The job murn_job_Al_bcc_1_04 was saved and received the ID: 23\n",
"The job murn_job_Al_bcc_1_06 was saved and received the ID: 24\n",
"The job murn_job_Al_bcc_1_08 was saved and received the ID: 25\n",
"The job murn_job_Al_bcc_1_1 was saved and received the ID: 26\n",
"The job Li_bcc_relax was saved and received the ID: 27\n",
"The job murn_job_Li_bcc was saved and received the ID: 28\n",
"The job murn_job_Li_bcc_0_9 was saved and received the ID: 29\n",
"The job murn_job_Li_bcc_0_92 was saved and received the ID: 30\n",
"The job murn_job_Li_bcc_0_94 was saved and received the ID: 31\n",
"The job murn_job_Li_bcc_0_96 was saved and received the ID: 32\n",
"The job murn_job_Li_bcc_0_98 was saved and received the ID: 33\n",
"The job murn_job_Li_bcc_1_0 was saved and received the ID: 34\n",
"The job murn_job_Li_bcc_1_02 was saved and received the ID: 35\n",
"The job murn_job_Li_bcc_1_04 was saved and received the ID: 36\n",
"The job murn_job_Li_bcc_1_06 was saved and received the ID: 37\n",
"The job murn_job_Li_bcc_1_08 was saved and received the ID: 38\n",
"The job murn_job_Li_bcc_1_1 was saved and received the ID: 39\n",
"The job Li_fcc_relax was saved and received the ID: 40\n",
"The job murn_job_Li_fcc was saved and received the ID: 41\n",
"The job murn_job_Li_fcc_0_9 was saved and received the ID: 42\n",
"The job murn_job_Li_fcc_0_92 was saved and received the ID: 43\n",
"The job murn_job_Li_fcc_0_94 was saved and received the ID: 44\n",
"The job murn_job_Li_fcc_0_96 was saved and received the ID: 45\n",
"The job murn_job_Li_fcc_0_98 was saved and received the ID: 46\n",
"The job murn_job_Li_fcc_1_0 was saved and received the ID: 47\n",
"The job murn_job_Li_fcc_1_02 was saved and received the ID: 48\n",
"The job murn_job_Li_fcc_1_04 was saved and received the ID: 49\n",
"The job murn_job_Li_fcc_1_06 was saved and received the ID: 50\n",
"The job murn_job_Li_fcc_1_08 was saved and received the ID: 51\n",
"The job murn_job_Li_fcc_1_1 was saved and received the ID: 52\n",
"The job Li2Al2_Li2Al2_cubic_relax was saved and received the ID: 53\n",
"The job murn_job_Li2Al2_Li2Al2_cubic was saved and received the ID: 54\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_0_9 was saved and received the ID: 55\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_0_92 was saved and received the ID: 56\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_0_94 was saved and received the ID: 57\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_0_96 was saved and received the ID: 58\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_0_98 was saved and received the ID: 59\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_1_0 was saved and received the ID: 60\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_1_02 was saved and received the ID: 61\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_1_04 was saved and received the ID: 62\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_1_06 was saved and received the ID: 63\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_1_08 was saved and received the ID: 64\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_1_1 was saved and received the ID: 65\n",
"The job LiAl3_LiAl3_cubic_relax was saved and received the ID: 66\n",
"The job murn_job_LiAl3_LiAl3_cubic was saved and received the ID: 67\n",
"The job murn_job_LiAl3_LiAl3_cubic_0_9 was saved and received the ID: 68\n",
"The job murn_job_LiAl3_LiAl3_cubic_0_92 was saved and received the ID: 69\n",
"The job murn_job_LiAl3_LiAl3_cubic_0_94 was saved and received the ID: 70\n",
"The job murn_job_LiAl3_LiAl3_cubic_0_96 was saved and received the ID: 71\n",
"The job murn_job_LiAl3_LiAl3_cubic_0_98 was saved and received the ID: 72\n",
"The job murn_job_LiAl3_LiAl3_cubic_1_0 was saved and received the ID: 73\n",
"The job murn_job_LiAl3_LiAl3_cubic_1_02 was saved and received the ID: 74\n",
"The job murn_job_LiAl3_LiAl3_cubic_1_04 was saved and received the ID: 75\n",
"The job murn_job_LiAl3_LiAl3_cubic_1_06 was saved and received the ID: 76\n",
"The job murn_job_LiAl3_LiAl3_cubic_1_08 was saved and received the ID: 77\n",
"The job murn_job_LiAl3_LiAl3_cubic_1_1 was saved and received the ID: 78\n",
"The job Li9Al4_Li9Al4_monoclinic_relax was saved and received the ID: 79\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic was saved and received the ID: 80\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_0_9 was saved and received the ID: 81\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_0_92 was saved and received the ID: 82\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_0_94 was saved and received the ID: 83\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_0_96 was saved and received the ID: 84\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_0_98 was saved and received the ID: 85\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_1_0 was saved and received the ID: 86\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_1_02 was saved and received the ID: 87\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_1_04 was saved and received the ID: 88\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_1_06 was saved and received the ID: 89\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_1_08 was saved and received the ID: 90\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_1_1 was saved and received the ID: 91\n",
"The job Li3Al2_Li3Al2_trigonal_relax was saved and received the ID: 92\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal was saved and received the ID: 93\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_0_9 was saved and received the ID: 94\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_0_92 was saved and received the ID: 95\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_0_94 was saved and received the ID: 96\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_0_96 was saved and received the ID: 97\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_0_98 was saved and received the ID: 98\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_1_0 was saved and received the ID: 99\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_1_02 was saved and received the ID: 100\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_1_04 was saved and received the ID: 101\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_1_06 was saved and received the ID: 102\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_1_08 was saved and received the ID: 103\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_1_1 was saved and received the ID: 104\n",
"The job Li4Al4_Li4Al4_cubic_relax was saved and received the ID: 105\n",
"The job murn_job_Li4Al4_Li4Al4_cubic was saved and received the ID: 106\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_0_9 was saved and received the ID: 107\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_0_92 was saved and received the ID: 108\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_0_94 was saved and received the ID: 109\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_0_96 was saved and received the ID: 110\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_0_98 was saved and received the ID: 111\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_1_0 was saved and received the ID: 112\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_1_02 was saved and received the ID: 113\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_1_04 was saved and received the ID: 114\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_1_06 was saved and received the ID: 115\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_1_08 was saved and received the ID: 116\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_1_1 was saved and received the ID: 117\n",
"The job Al_fcc_relax was saved and received the ID: 118\n",
"The job murn_job_Al_fcc was saved and received the ID: 119\n",
"The job murn_job_Al_fcc_0_9 was saved and received the ID: 120\n",
"The job murn_job_Al_fcc_0_92 was saved and received the ID: 121\n",
"The job murn_job_Al_fcc_0_94 was saved and received the ID: 122\n",
"The job murn_job_Al_fcc_0_96 was saved and received the ID: 123\n",
"The job murn_job_Al_fcc_0_98 was saved and received the ID: 124\n",
"The job murn_job_Al_fcc_1_0 was saved and received the ID: 125\n",
"The job murn_job_Al_fcc_1_02 was saved and received the ID: 126\n",
"The job murn_job_Al_fcc_1_04 was saved and received the ID: 127\n",
"The job murn_job_Al_fcc_1_06 was saved and received the ID: 128\n",
"The job murn_job_Al_fcc_1_08 was saved and received the ID: 129\n",
"The job murn_job_Al_fcc_1_1 was saved and received the ID: 130\n",
"The job Al_bcc_relax was saved and received the ID: 131\n",
"The job murn_job_Al_bcc was saved and received the ID: 132\n",
"The job murn_job_Al_bcc_0_9 was saved and received the ID: 133\n",
"The job murn_job_Al_bcc_0_92 was saved and received the ID: 134\n",
"The job murn_job_Al_bcc_0_94 was saved and received the ID: 135\n",
"The job murn_job_Al_bcc_0_96 was saved and received the ID: 136\n",
"The job murn_job_Al_bcc_0_98 was saved and received the ID: 137\n",
"The job murn_job_Al_bcc_1_0 was saved and received the ID: 138\n",
"The job murn_job_Al_bcc_1_02 was saved and received the ID: 139\n",
"The job murn_job_Al_bcc_1_04 was saved and received the ID: 140\n",
"The job murn_job_Al_bcc_1_06 was saved and received the ID: 141\n",
"The job murn_job_Al_bcc_1_08 was saved and received the ID: 142\n",
"The job murn_job_Al_bcc_1_1 was saved and received the ID: 143\n",
"The job Li_bcc_relax was saved and received the ID: 144\n",
"The job murn_job_Li_bcc was saved and received the ID: 145\n",
"The job murn_job_Li_bcc_0_9 was saved and received the ID: 146\n",
"The job murn_job_Li_bcc_0_92 was saved and received the ID: 147\n",
"The job murn_job_Li_bcc_0_94 was saved and received the ID: 148\n",
"The job murn_job_Li_bcc_0_96 was saved and received the ID: 149\n",
"The job murn_job_Li_bcc_0_98 was saved and received the ID: 150\n",
"The job murn_job_Li_bcc_1_0 was saved and received the ID: 151\n",
"The job murn_job_Li_bcc_1_02 was saved and received the ID: 152\n",
"The job murn_job_Li_bcc_1_04 was saved and received the ID: 153\n",
"The job murn_job_Li_bcc_1_06 was saved and received the ID: 154\n",
"The job murn_job_Li_bcc_1_08 was saved and received the ID: 155\n",
"The job murn_job_Li_bcc_1_1 was saved and received the ID: 156\n",
"The job Li_fcc_relax was saved and received the ID: 157\n",
"The job murn_job_Li_fcc was saved and received the ID: 158\n",
"The job murn_job_Li_fcc_0_9 was saved and received the ID: 159\n",
"The job murn_job_Li_fcc_0_92 was saved and received the ID: 160\n",
"The job murn_job_Li_fcc_0_94 was saved and received the ID: 161\n",
"The job murn_job_Li_fcc_0_96 was saved and received the ID: 162\n",
"The job murn_job_Li_fcc_0_98 was saved and received the ID: 163\n",
"The job murn_job_Li_fcc_1_0 was saved and received the ID: 164\n",
"The job murn_job_Li_fcc_1_02 was saved and received the ID: 165\n",
"The job murn_job_Li_fcc_1_04 was saved and received the ID: 166\n",
"The job murn_job_Li_fcc_1_06 was saved and received the ID: 167\n",
"The job murn_job_Li_fcc_1_08 was saved and received the ID: 168\n",
"The job murn_job_Li_fcc_1_1 was saved and received the ID: 169\n",
"The job Li2Al2_Li2Al2_cubic_relax was saved and received the ID: 170\n",
"The job murn_job_Li2Al2_Li2Al2_cubic was saved and received the ID: 171\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_0_9 was saved and received the ID: 172\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_0_92 was saved and received the ID: 173\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_0_94 was saved and received the ID: 174\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_0_96 was saved and received the ID: 175\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_0_98 was saved and received the ID: 176\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_1_0 was saved and received the ID: 177\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_1_02 was saved and received the ID: 178\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_1_04 was saved and received the ID: 179\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_1_06 was saved and received the ID: 180\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_1_08 was saved and received the ID: 181\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_1_1 was saved and received the ID: 182\n",
"The job LiAl3_LiAl3_cubic_relax was saved and received the ID: 183\n",
"The job murn_job_LiAl3_LiAl3_cubic was saved and received the ID: 184\n",
"The job murn_job_LiAl3_LiAl3_cubic_0_9 was saved and received the ID: 185\n",
"The job murn_job_LiAl3_LiAl3_cubic_0_92 was saved and received the ID: 186\n",
"The job murn_job_LiAl3_LiAl3_cubic_0_94 was saved and received the ID: 187\n",
"The job murn_job_LiAl3_LiAl3_cubic_0_96 was saved and received the ID: 188\n",
"The job murn_job_LiAl3_LiAl3_cubic_0_98 was saved and received the ID: 189\n",
"The job murn_job_LiAl3_LiAl3_cubic_1_0 was saved and received the ID: 190\n",
"The job murn_job_LiAl3_LiAl3_cubic_1_02 was saved and received the ID: 191\n",
"The job murn_job_LiAl3_LiAl3_cubic_1_04 was saved and received the ID: 192\n",
"The job murn_job_LiAl3_LiAl3_cubic_1_06 was saved and received the ID: 193\n",
"The job murn_job_LiAl3_LiAl3_cubic_1_08 was saved and received the ID: 194\n",
"The job murn_job_LiAl3_LiAl3_cubic_1_1 was saved and received the ID: 195\n",
"The job Li9Al4_Li9Al4_monoclinic_relax was saved and received the ID: 196\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic was saved and received the ID: 197\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_0_9 was saved and received the ID: 198\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_0_92 was saved and received the ID: 199\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_0_94 was saved and received the ID: 200\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_0_96 was saved and received the ID: 201\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_0_98 was saved and received the ID: 202\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_1_0 was saved and received the ID: 203\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_1_02 was saved and received the ID: 204\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_1_04 was saved and received the ID: 205\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_1_06 was saved and received the ID: 206\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_1_08 was saved and received the ID: 207\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_1_1 was saved and received the ID: 208\n",
"The job Li3Al2_Li3Al2_trigonal_relax was saved and received the ID: 209\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal was saved and received the ID: 210\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_0_9 was saved and received the ID: 211\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_0_92 was saved and received the ID: 212\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_0_94 was saved and received the ID: 213\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_0_96 was saved and received the ID: 214\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_0_98 was saved and received the ID: 215\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_1_0 was saved and received the ID: 216\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_1_02 was saved and received the ID: 217\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_1_04 was saved and received the ID: 218\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_1_06 was saved and received the ID: 219\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_1_08 was saved and received the ID: 220\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_1_1 was saved and received the ID: 221\n",
"The job Li4Al4_Li4Al4_cubic_relax was saved and received the ID: 222\n",
"The job murn_job_Li4Al4_Li4Al4_cubic was saved and received the ID: 223\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_0_9 was saved and received the ID: 224\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_0_92 was saved and received the ID: 225\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_0_94 was saved and received the ID: 226\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_0_96 was saved and received the ID: 227\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_0_98 was saved and received the ID: 228\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_1_0 was saved and received the ID: 229\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_1_02 was saved and received the ID: 230\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_1_04 was saved and received the ID: 231\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_1_06 was saved and received the ID: 232\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_1_08 was saved and received the ID: 233\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_1_1 was saved and received the ID: 234\n",
"The job Al_fcc_relax was saved and received the ID: 235\n",
"The job murn_job_Al_fcc was saved and received the ID: 236\n",
"The job murn_job_Al_fcc_0_9 was saved and received the ID: 237\n",
"The job murn_job_Al_fcc_0_92 was saved and received the ID: 238\n",
"The job murn_job_Al_fcc_0_94 was saved and received the ID: 239\n",
"The job murn_job_Al_fcc_0_96 was saved and received the ID: 240\n",
"The job murn_job_Al_fcc_0_98 was saved and received the ID: 241\n",
"The job murn_job_Al_fcc_1_0 was saved and received the ID: 242\n",
"The job murn_job_Al_fcc_1_02 was saved and received the ID: 243\n",
"The job murn_job_Al_fcc_1_04 was saved and received the ID: 244\n",
"The job murn_job_Al_fcc_1_06 was saved and received the ID: 245\n",
"The job murn_job_Al_fcc_1_08 was saved and received the ID: 246\n",
"The job murn_job_Al_fcc_1_1 was saved and received the ID: 247\n",
"The job Al_bcc_relax was saved and received the ID: 248\n",
"The job murn_job_Al_bcc was saved and received the ID: 249\n",
"The job murn_job_Al_bcc_0_9 was saved and received the ID: 250\n",
"The job murn_job_Al_bcc_0_92 was saved and received the ID: 251\n",
"The job murn_job_Al_bcc_0_94 was saved and received the ID: 252\n",
"The job murn_job_Al_bcc_0_96 was saved and received the ID: 253\n",
"The job murn_job_Al_bcc_0_98 was saved and received the ID: 254\n",
"The job murn_job_Al_bcc_1_0 was saved and received the ID: 255\n",
"The job murn_job_Al_bcc_1_02 was saved and received the ID: 256\n",
"The job murn_job_Al_bcc_1_04 was saved and received the ID: 257\n",
"The job murn_job_Al_bcc_1_06 was saved and received the ID: 258\n",
"The job murn_job_Al_bcc_1_08 was saved and received the ID: 259\n",
"The job murn_job_Al_bcc_1_1 was saved and received the ID: 260\n",
"The job Li_bcc_relax was saved and received the ID: 261\n",
"The job murn_job_Li_bcc was saved and received the ID: 262\n",
"The job murn_job_Li_bcc_0_9 was saved and received the ID: 263\n",
"The job murn_job_Li_bcc_0_92 was saved and received the ID: 264\n",
"The job murn_job_Li_bcc_0_94 was saved and received the ID: 265\n",
"The job murn_job_Li_bcc_0_96 was saved and received the ID: 266\n",
"The job murn_job_Li_bcc_0_98 was saved and received the ID: 267\n",
"The job murn_job_Li_bcc_1_0 was saved and received the ID: 268\n",
"The job murn_job_Li_bcc_1_02 was saved and received the ID: 269\n",
"The job murn_job_Li_bcc_1_04 was saved and received the ID: 270\n",
"The job murn_job_Li_bcc_1_06 was saved and received the ID: 271\n",
"The job murn_job_Li_bcc_1_08 was saved and received the ID: 272\n",
"The job murn_job_Li_bcc_1_1 was saved and received the ID: 273\n",
"The job Li_fcc_relax was saved and received the ID: 274\n",
"The job murn_job_Li_fcc was saved and received the ID: 275\n",
"The job murn_job_Li_fcc_0_9 was saved and received the ID: 276\n",
"The job murn_job_Li_fcc_0_92 was saved and received the ID: 277\n",
"The job murn_job_Li_fcc_0_94 was saved and received the ID: 278\n",
"The job murn_job_Li_fcc_0_96 was saved and received the ID: 279\n",
"The job murn_job_Li_fcc_0_98 was saved and received the ID: 280\n",
"The job murn_job_Li_fcc_1_0 was saved and received the ID: 281\n",
"The job murn_job_Li_fcc_1_02 was saved and received the ID: 282\n",
"The job murn_job_Li_fcc_1_04 was saved and received the ID: 283\n",
"The job murn_job_Li_fcc_1_06 was saved and received the ID: 284\n",
"The job murn_job_Li_fcc_1_08 was saved and received the ID: 285\n",
"The job murn_job_Li_fcc_1_1 was saved and received the ID: 286\n",
"The job Li2Al2_Li2Al2_cubic_relax was saved and received the ID: 287\n",
"The job murn_job_Li2Al2_Li2Al2_cubic was saved and received the ID: 288\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_0_9 was saved and received the ID: 289\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_0_92 was saved and received the ID: 290\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_0_94 was saved and received the ID: 291\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_0_96 was saved and received the ID: 292\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_0_98 was saved and received the ID: 293\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_1_0 was saved and received the ID: 294\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_1_02 was saved and received the ID: 295\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_1_04 was saved and received the ID: 296\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_1_06 was saved and received the ID: 297\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_1_08 was saved and received the ID: 298\n",
"The job murn_job_Li2Al2_Li2Al2_cubic_1_1 was saved and received the ID: 299\n",
"The job LiAl3_LiAl3_cubic_relax was saved and received the ID: 300\n",
"The job murn_job_LiAl3_LiAl3_cubic was saved and received the ID: 301\n",
"The job murn_job_LiAl3_LiAl3_cubic_0_9 was saved and received the ID: 302\n",
"The job murn_job_LiAl3_LiAl3_cubic_0_92 was saved and received the ID: 303\n",
"The job murn_job_LiAl3_LiAl3_cubic_0_94 was saved and received the ID: 304\n",
"The job murn_job_LiAl3_LiAl3_cubic_0_96 was saved and received the ID: 305\n",
"The job murn_job_LiAl3_LiAl3_cubic_0_98 was saved and received the ID: 306\n",
"The job murn_job_LiAl3_LiAl3_cubic_1_0 was saved and received the ID: 307\n",
"The job murn_job_LiAl3_LiAl3_cubic_1_02 was saved and received the ID: 308\n",
"The job murn_job_LiAl3_LiAl3_cubic_1_04 was saved and received the ID: 309\n",
"The job murn_job_LiAl3_LiAl3_cubic_1_06 was saved and received the ID: 310\n",
"The job murn_job_LiAl3_LiAl3_cubic_1_08 was saved and received the ID: 311\n",
"The job murn_job_LiAl3_LiAl3_cubic_1_1 was saved and received the ID: 312\n",
"The job Li9Al4_Li9Al4_monoclinic_relax was saved and received the ID: 313\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic was saved and received the ID: 314\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_0_9 was saved and received the ID: 315\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_0_92 was saved and received the ID: 316\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_0_94 was saved and received the ID: 317\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_0_96 was saved and received the ID: 318\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_0_98 was saved and received the ID: 319\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_1_0 was saved and received the ID: 320\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_1_02 was saved and received the ID: 321\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_1_04 was saved and received the ID: 322\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_1_06 was saved and received the ID: 323\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_1_08 was saved and received the ID: 324\n",
"The job murn_job_Li9Al4_Li9Al4_monoclinic_1_1 was saved and received the ID: 325\n",
"The job Li3Al2_Li3Al2_trigonal_relax was saved and received the ID: 326\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal was saved and received the ID: 327\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_0_9 was saved and received the ID: 328\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_0_92 was saved and received the ID: 329\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_0_94 was saved and received the ID: 330\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_0_96 was saved and received the ID: 331\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_0_98 was saved and received the ID: 332\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_1_0 was saved and received the ID: 333\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_1_02 was saved and received the ID: 334\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_1_04 was saved and received the ID: 335\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_1_06 was saved and received the ID: 336\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_1_08 was saved and received the ID: 337\n",
"The job murn_job_Li3Al2_Li3Al2_trigonal_1_1 was saved and received the ID: 338\n",
"The job Li4Al4_Li4Al4_cubic_relax was saved and received the ID: 339\n",
"The job murn_job_Li4Al4_Li4Al4_cubic was saved and received the ID: 340\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_0_9 was saved and received the ID: 341\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_0_92 was saved and received the ID: 342\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_0_94 was saved and received the ID: 343\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_0_96 was saved and received the ID: 344\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_0_98 was saved and received the ID: 345\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_1_0 was saved and received the ID: 346\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_1_02 was saved and received the ID: 347\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_1_04 was saved and received the ID: 348\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_1_06 was saved and received the ID: 349\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_1_08 was saved and received the ID: 350\n",
"The job murn_job_Li4Al4_Li4Al4_cubic_1_1 was saved and received the ID: 351\n"
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
"for pot in potentials_list:\n",
" with pr.open(get_clean_project_name(pot)) as pr_pot:\n",
" for compound, compound_dict in struct_dict.items():\n",
" for crys_structure in compound_dict[\"s_murn\"]:\n",
" \n",
" # Relax structure\n",
" if crys_structure in [\"fcc\",\"bcc\"]:\n",
" basis = pr_pot.create_ase_bulk(compound, crys_structure, a=compound_dict[\"a\"])\n",
" else:\n",
" basis = pr.create.structure.ase.read(fl_dict[crys_structure])\n",
" job_relax = pr_pot.create_job(pr_pot.job_type.Lammps, f\"{compound}_{crys_structure}_relax\", delete_existing_job=True)\n",
"\n",
" job_relax.structure = basis\n",
" job_relax.potential = pot\n",
" job_relax.calc_minimize(pressure=0)\n",
" job_relax.run()\n",
" \n",
" # Murnaghan\n",
" job_ref = pr_pot.create_job(pr_pot.job_type.Lammps, f\"ref_job_{compound}_{crys_structure}\")\n",
" job_ref.structure = job_relax.get_structure(-1)\n",
" job_ref.potential = pot\n",
" job_ref.calc_minimize()\n",
" \n",
" murn_job = job_ref.create_job(pr_pot.job_type.Murnaghan, f\"murn_job_{compound}_{crys_structure}\")\n",
" murn_job.input[\"vol_range\"] = 0.1\n",
" murn_job.run()"
]
},
{
"cell_type": "markdown",
"id": "9d848f1a",
"metadata": {},
"source": [
"One can display the technical details of all submitted jobs using `pr.job_table()` below."
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "fdc89ebb-3c2a-4315-8fe0-3ae470375223",
"metadata": {
"scrolled": true
},
"outputs": [],
"source": [
"# pr.job_table()"
]
},
{
"cell_type": "markdown",
"id": "425dcaec",
"metadata": {},
"source": [
"In order to get read useful results from the completed calculations (eq_energy, eq_volume, etc), it is useful to define the following functions"
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
"id": "ef2f414b-64b8-49aa-87e9-e204950da938",
"metadata": {},
"outputs": [],
"source": [
"# Only work with Murnaghan jobs\n",
"def get_only_murn(job_table):\n",
" return (job_table.hamilton == \"Murnaghan\") & (job_table.status == \"finished\") \n",
"\n",
"def get_eq_vol(job_path):\n",
" return job_path[\"output/equilibrium_volume\"]\n",
"\n",
"def get_eq_lp(job_path):\n",
" return np.linalg.norm(job_path[\"output/structure/cell/cell\"][0]) * np.sqrt(2)\n",
"\n",
"def get_eq_bm(job_path):\n",
" return job_path[\"output/equilibrium_bulk_modulus\"]\n",
"\n",
"def get_potential(job_path):\n",
" return job_path.project.path.split(\"/\")[-3]\n",
"\n",
"def get_eq_energy(job_path):\n",
" return job_path[\"output/equilibrium_energy\"]\n",
"\n",
"def get_n_atoms(job_path):\n",
" return len(job_path[\"output/structure/positions\"])\n",
"\n",
"def get_ase_atoms(job_path):\n",
" return pyiron_to_ase(job_path.structure).copy()\n",
"\n",
"\n",
"def get_potential(job_path):\n",
" return job_path.project.path.split(\"/\")[-2]\n",
"\n",
"def get_crystal_structure(job_path):\n",
" return job_path.job_name.split(\"_\")[-1]\n",
"\n",
"def get_compound(job_path):\n",
" return job_path.job_name.split(\"_\")[-2]"
]
},
{
"cell_type": "markdown",
"id": "2fe57b8b",
"metadata": {},
"source": [
"Using the functions defined above, one can now define a `pd.DataFrame` containing all useful results"
]
},
"id": "255c28af-e4af-48c6-ae01-e90377c94e32",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
]
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0
},
"text/plain": [
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0
},
"text/plain": [
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/srv/conda/envs/notebook/lib/python3.8/site-packages/pyiron_base/table/datamining.py:620: PerformanceWarning: \n",
"your performance may suffer as PyTables will pickle object types that it cannot\n",
"map directly to c-types [inferred_type->mixed,key->block2_values] [items->Index(['potential', 'ase_atoms', 'compound', 'crystal_structure'], dtype='object')]\n",
"\n",
" self.pyiron_table._df.to_hdf(\n"
]
},
{
"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>job_id</th>\n",
" <th>potential</th>\n",
" <th>ase_atoms</th>\n",
" <th>compound</th>\n",
" <th>crystal_structure</th>\n",
" <th>a</th>\n",
" <th>eq_vol</th>\n",
" <th>eq_bm</th>\n",
" <th>eq_energy</th>\n",
" <th>n_atoms</th>\n",
" <th>phase</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <td>LiAl_eam</td>\n",
" <td>(Atom('Al', [0.0, 0.0, 0.0], index=0))</td>\n",
" <td>fcc</td>\n",
" <td>4.039967</td>\n",
" <td>16.495612</td>\n",
" <td>85.876912</td>\n",
" <td>-3.483097</td>\n",
" <td>1</td>\n",
" <td>Al_fcc</td>\n",
" <td>LiAl_eam</td>\n",
" <td>(Atom('Al', [0.0, 0.0, 0.0], index=0))</td>\n",
" <td>bcc</td>\n",
" <td>3.898853</td>\n",
" <td>16.147864</td>\n",
" <td>48.620841</td>\n",
" <td>-3.415312</td>\n",
" <td>1</td>\n",
" <td>Al_bcc</td>\n",
" <td>LiAl_eam</td>\n",
" <td>(Atom('Li', [0.0, 0.0, 0.0], index=0))</td>\n",
" <td>bcc</td>\n",
" <td>4.195477</td>\n",
" <td>20.114514</td>\n",
" <td>13.690609</td>\n",
" <td>-1.757011</td>\n",
" <td>1</td>\n",
" <td>Li_bcc</td>\n",
" <td>LiAl_eam</td>\n",
" <td>(Atom('Li', [0.0, 0.0, 0.0], index=0))</td>\n",
" <td>fcc</td>\n",
" <td>4.253841</td>\n",
" <td>19.241330</td>\n",
" <td>13.985972</td>\n",
" <td>-1.758107</td>\n",
" <td>1</td>\n",
" <td>Li_fcc</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>(Atom('Li', [4.359978178265943, 2.5172345748814795, 1.7799536377360747], index=0), Atom('Li', [6.53996726740165, 3.775851862320358, 2.669930456604317], index=1), Atom('Al', [-3.964456982410852e-12...</td>\n",
" <td>Li2Al2</td>\n",
" <td>cubic</td>\n",
" <td>6.165940</td>\n",
" <td>58.604895</td>\n",
" <td>100.347240</td>\n",
" <td>-11.074362</td>\n",
" <td>4</td>\n",
" <td>Li2Al2_cubic</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5</th>\n",
" <td>LiAl_eam</td>\n",
" <td>(Atom('Li', [0.0, 0.0, 0.0], index=0), Atom('Al', [1.9825515172760235, 1.9825515172760237, 2.427925369776811e-16], index=1), Atom('Al', [1.9825515172760235, 1.2139626848884054e-16, 1.9825515172760...</td>\n",
" <td>LiAl3</td>\n",
" <td>cubic</td>\n",
" <td>5.607502</td>\n",
" <td>62.227580</td>\n",
" <td>51.472656</td>\n",
" <td>-12.774590</td>\n",
" <td>4</td>\n",
" <td>LiAl3_cubic</td>\n",
" </tr>\n",
" <tr>\n",
" <th>6</th>\n",
" <td>(Atom('Li', [4.9874611628416465, 1.0099045365192156, 0.8188840806477526], index=0), Atom('Li', [3.1237816780987666, 1.455730745331952, 2.673723152073369], index=1), Atom('Li', [-3.4421956688209843...</td>\n",
" <td>Li9Al4</td>\n",
" <td>monoclinic</td>\n",
" <td>13.023701</td>\n",
" <td>190.504374</td>\n",
" <td>53.125276</td>\n",
" <td>-28.970054</td>\n",
" <td>13</td>\n",
" <td>Li9Al4_monoclinic</td>\n",
" <td>(Atom('Al', [2.1548001975659234, 1.244075358781918, 1.861784175000869], index=0), Atom('Al', [-2.154798282819334, 3.732223313213554, 2.6646760238080542], index=1), Atom('Li', [8.560563403365654e-0...</td>\n",
" <td>Li3Al2</td>\n",
" <td>trigonal</td>\n",
" <td>6.094693</td>\n",
" <td>72.810229</td>\n",
" <td>69.231669</td>\n",
" <td>-12.413856</td>\n",
" <td>5</td>\n",
" <td>Li3Al2_trigonal</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8</th>\n",
" <td>(Atom('Li', [2.142967147985671, 1.2372426587287435, 7.662120717536293], index=0), Atom('Li', [-8.783761113500244e-10, 2.4744853189563414, 0.5913679335098909], index=1), Atom('Li', [-8.783761113500...</td>\n",
" <td>Li4Al4</td>\n",
" <td>cubic</td>\n",
" <td>6.061226</td>\n",
" <td>131.389799</td>\n",
" <td>-20.506570</td>\n",
" <td>8</td>\n",
" <td>Li4Al4_cubic</td>\n",