"<font style=\"font-family:roboto;color:#455e6c\"> <b> StahlDigital Tutorial: Creating and Running Simulations for Steel Development </b> </font> </br>\n",
"<font style=\"font-family:roboto;color:#455e6c\"> 25 April 2024 </font>\n",
"</div>"
]
},
{
"cell_type": "markdown",
"id": "9cc1f7f7-f5c8-48e3-b7b4-950ba2cd2a8e",
"metadata": {},
"source": [
"In this notebook, we will use `pyiron` to setup and run a workflow for multiple rolling simulation of steel with the continuum code [DAMASK](https://damask.mpie.de/release/). A damask simulation requires material specific information (`Elastic` and `Plastic` parameters of the material). We will show, how we can get these parameters from a `Tensile Test Experiment` data using [DSMS](https://stahldigital.materials-data.space/) and run damask simulation with these parameters."
"# Unit conversion factors: from megapascal(MPa) and gegapascal(GPa) to pascal(Pa) \n",
"MPa_to_Pa = 1e+6\n",
"GPa_to_Pa = 1e+9"
]
},
{
"cell_type": "markdown",
"id": "5f47d4fe-d51d-48ec-9ea7-228cdd104122",
"metadata": {},
"source": [
"#### <font style=\"font-family:roboto;color:#455e6c\"> Create a pyiron project </font> "
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "54951d3f-7b2a-48a9-b9c6-466f84362247",
"metadata": {},
"outputs": [],
"source": [
"pr = Project('damask_rolling_simulation')"
]
},
{
"cell_type": "markdown",
"id": "864bf1f6-1fad-4c6a-909c-2236bd0d4fcc",
"metadata": {},
"source": [
"### <font style=\"font-family:roboto;color:#455e6c\"> Running a multiple rolling simulation with DAMASK </font>\n",
"\n",
"Suppose your colluge performed a nice tensile test experiment and uploaded the data, the fitted elasticity parameters, and phenopowerlaw parameters required for damask simulation into the `DSMS`. Now, we will show how you can get the required parameters from dsms and run your `DAMASK` simulation with it."
]
},
{
"cell_type": "markdown",
"id": "1af5a9eb-1430-4288-b38f-b197a6588711",
"metadata": {},
"source": [
"First, we will write two python functions to get the required data from DSMS\n",
"- A python function to get experimental elastic parameters \n",
"- A python function to get experimental plastic parameters"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "abfff782-2657-431c-8161-253a1f302b57",
"metadata": {},
"outputs": [],
"source": [
"# A python function to get experimental elastic parameters from dsms\n",
"Now, we have to connect to `dsms`. For the next step you need your dsms `username` and `password`. If you don't have a dsms account, please look [here](https://stahldigital.materials-data.space/support) for help."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "b0c4d5dc-d75a-4dc3-9c7b-0762e81db52e",
"metadata": {},
"outputs": [],
"source": [
"# After executing this cell, you have to enter your dsms username \n",
"username = getpass()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "e2e5d11f-9c54-4522-92c5-319c88b1de2b",
"metadata": {},
"outputs": [],
"source": [
"# After executing this cell, you have to enter your dsms password\n",
In this notebook, we will use `pyiron` to setup and run a workflow for multiple rolling simulation of steel with the continuum code [DAMASK](https://damask.mpie.de/release/). A damask simulation requires material specific information (`Elastic` and `Plastic` parameters of the material). We will show, how we can get these parameters from a `Tensile Test Experiment` data using [DSMS](https://stahldigital.materials-data.space/) and run damask simulation with these parameters.
### <font style="font-family:roboto;color:#455e6c"> Running a multiple rolling simulation with DAMASK </font>
Suppose your colluge performed a nice tensile test experiment and uploaded the data, the fitted elasticity parameters, and phenopowerlaw parameters required for damask simulation into the `DSMS`. Now, we will show how you can get the required parameters from dsms and run your `DAMASK` simulation with it.
Now, we have to connect to `dsms`. For the next step you need your dsms `username` and `password`. If you don't have a dsms account, please look [here](https://stahldigital.materials-data.space/support) for help.