"We can now inspect the data in this dataset quite easily"
...
...
@@ -1171,7 +1171,7 @@
{
"cell_type": "code",
"execution_count": 17,
"id": "difficult-cartoon",
"id": "starting-dress",
"metadata": {},
"outputs": [],
"source": [
...
...
@@ -1181,7 +1181,7 @@
{
"cell_type": "code",
"execution_count": 18,
"id": "analyzed-bargain",
"id": "massive-wheat",
"metadata": {},
"outputs": [],
"source": [
...
...
@@ -1190,7 +1190,7 @@
},
{
"cell_type": "markdown",
"id": "serious-carry",
"id": "suited-blank",
"metadata": {},
"source": [
"The datasets used in the potential fitting procedure for day 2 (obtained from accurate DFT calculations) will be accessed in the same way"
...
...
@@ -1199,7 +1199,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "simple-packet",
"id": "standard-organic",
"metadata": {},
"outputs": [],
"source": []
...
...
%% Cell type:markdown id:previous-lotus tags:
%% Cell type:markdown id:expired-green tags:
# [**Workflows for atomistic simulations**](http://potentials.rub.de/)
%% Cell type:markdown id:solid-explosion tags:
%% Cell type:markdown id:brutal-healing tags:
## **Day 1 - Atomistic simulations with [pyiron](https://pyiron.org)**
### **Exercise 2: Creating and working with structure databases**
Before the excercise, you should:
* Finish exercise 1
The aim of this exercise is to make you familiar with:
* Creating structure databases and working with them for potential fitting (day 2)
%% Cell type:markdown id:apparent-assembly tags:
%% Cell type:markdown id:cheap-chick tags:
## **Importing necessary modules and creating a project**
This is done the same way as shown in the first exercise
%% Cell type:code id:fitting-testing tags:
%% Cell type:code id:married-kidney tags:
``` python
importnumpyasnp
%matplotlibinline
importmatplotlib.pylabasplt
```
%% Cell type:code id:mature-bearing tags:
%% Cell type:code id:academic-print tags:
``` python
frompyironimportProject
```
%% Cell type:code id:considered-karma tags:
%% Cell type:code id:comparable-creation tags:
``` python
pr=Project("creating_datasets")
```
%% Cell type:markdown id:controlled-david tags:
%% Cell type:markdown id:focal-percentage tags:
## Creating a structure "container" from the data
We now go over the jobs generated in the first notebook to store structures, energies, and forces into a structure container which will later be used for potential fitting
**Note**: Usually these datasets are created using highly accurate DFT calculations. But for practical reasons, we only demonstrate how to do this using data from LAMMPS calculations (the workflow remain the same)
%% Cell type:code id:wrong-pickup tags:
%% Cell type:code id:contrary-spider tags:
``` python
# Access the project created in exercise 1
pr_fs=pr["../first_steps"]
```
%% Cell type:code id:current-vanilla tags:
%% Cell type:code id:superior-prospect tags:
``` python
# Create a TrainingContainer job (to store structures and databases)