# [**Workflows for atomistic simulations**](http://potentials.rub.de/)
# [**Workflows for atomistic simulations**](http://potentials.rub.de/)
%% Cell type:markdown id:pregnant-battery tags:
%% Cell type:markdown id:straight-bicycle tags:
## **Day 1 - Atomistic simulations with [pyiron](https://pyiron.org)**
## **Day 1 - Atomistic simulations with [pyiron](https://pyiron.org)**
### **Exercise 2: Creating and working with structure databases**
### **Exercise 2: Creating and working with structure databases**
Before the excercise, you should:
Before the excercise, you should:
* Finish exercise 1
* Finish exercise 1
The aim of this exercise is to make you familiar with:
The aim of this exercise is to make you familiar with:
* Creating structure databases and working with them for potential fitting (day 2)
* Creating structure databases and working with them for potential fitting (day 2)
%% Cell type:code id:roman-wilderness tags:
%% Cell type:markdown id:durable-leone tags:
## **Importing necessary modules and creating a project**
This is done the same way as shown in the first exercise
%% Cell type:code id:novel-wisconsin tags:
``` python
``` python
importnumpyasnp
importnumpyasnp
%matplotlibinline
%matplotlibinline
importmatplotlib.pylabasplt
importmatplotlib.pylabasplt
```
```
%% Cell type:code id:charming-furniture tags:
%% Cell type:code id:sitting-religious tags:
``` python
``` python
frompyironimportProject
frompyironimportProject
importpyiron_contrib
```
```
%% Cell type:code id:bibliographic-honey tags:
%% Cell type:code id:technical-newport tags:
``` python
``` python
pr=Project("creating_datasets")
pr=Project("creating_datasets")
```
```
%% Cell type:code id:relative-subscriber tags:
%% Cell type:markdown id:based-kentucky 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:attached-germany tags:
``` python
``` python
# Access the project created in exercise 1
pr_fs=pr["../first_steps"]
pr_fs=pr["../first_steps"]
```
```
%% Cell type:code id:solved-sight tags:
%% Cell type:code id:filled-natural tags:
``` python
``` python
# Create a TrainingContainer job (to store structures and databases)