-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"id": "joined-seven", | ||
"metadata": {}, | ||
"source": [ | ||
"# Example 06: Automated calculation of melting temperature" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "authorized-presentation", | ||
"metadata": {}, | ||
"source": [ | ||
"In Example 03, we calculated the melting temperature for Cu. The same can be done in a fully automated way using Calphy. The input file in this case is shown below:\n", | ||
"\n", | ||
"```\n", | ||
"element: Cu\n", | ||
"mass: 63.546\n", | ||
"calculations:\n", | ||
"- mode: melting_temperature \n", | ||
" pressure: [0]\n", | ||
" repeat: [5, 5, 5]\n", | ||
" nsims: 1\n", | ||
"\n", | ||
"md:\n", | ||
" pair_style: eam/alloy\n", | ||
" pair_coeff: \"* * ../potentials/Cu01.eam.alloy Cu\"\n", | ||
" timestep: 0.001\n", | ||
" nsmall: 10000\n", | ||
" tdamp: 0.1\n", | ||
" pdamp: 0.1\n", | ||
" te: 10000\n", | ||
" ts: 15000\n", | ||
" \n", | ||
"queue:\n", | ||
" scheduler: local\n", | ||
" cores: 4\n", | ||
" commands:\n", | ||
" - conda activate calphy\n", | ||
"```\n", | ||
"\n", | ||
"There is much less information in the input file. For example, there is no need to specify the input lattice or temperature. Once the input file is set up, the calculation can be run using:\n", | ||
"\n", | ||
"```\n", | ||
"calphy -i input.yaml\n", | ||
"```\n", | ||
"\n", | ||
"A log file called `calphy.log`. The contents of the file after the calculation is run is shown below: " | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "calphy", | ||
"language": "python", | ||
"name": "calphy" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.9.7" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 5 | ||
} |