-
Notifications
You must be signed in to change notification settings - Fork 1
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
7 changed files
with
194 additions
and
19 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
Empty file.
Empty file.
Empty file.
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 |
---|---|---|
@@ -1 +1 @@ | ||
# Minimiser for lammps, vasp, gulp | ||
# Minimiser for lammps, vasp, gulp |
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 |
---|---|---|
@@ -1,18 +1,19 @@ | ||
# Get grain orientation | ||
|
||
# https://github.com/paulhof/GraDe-A | ||
# Centrosymetric parameter | ||
|
||
|
||
# Polyhedral template matching is implemented in ovito, ASAP, and LAMMPS | ||
# P. M. Larsen, S. Schmidt, J. Schiøtz, Modelling Simul. Mater. Sci. Eng. 2016, 24, 055007. | ||
# https://docs.lammps.org/compute_ptm_atom.html | ||
|
||
def get_grain_orientation(backend): | ||
if backend == 'ovito': | ||
# First, perform PTM | ||
# Iterate over all ions to get grains | ||
# Pick one fcc ion, if > 2 ffc neighbors, count to grain, otherwise disregard | ||
# Get average | ||
|
||
return None | ||
# Get grain orientation | ||
|
||
# https://github.com/paulhof/GraDe-A | ||
# Centrosymetric parameter | ||
|
||
|
||
# Polyhedral template matching is implemented in ovito, ASAP, and LAMMPS | ||
# P. M. Larsen, S. Schmidt, J. Schiøtz, Modelling Simul. Mater. Sci. Eng. 2016, 24, 055007. | ||
# https://docs.lammps.org/compute_ptm_atom.html | ||
|
||
def get_grain_orientation(backend): | ||
if backend == 'ovito': | ||
|
||
# First, perform PTM | ||
# Iterate over all ions to get grains | ||
# Pick one fcc ion, if > 2 ffc neighbors, count to grain, otherwise disregard | ||
# Get average | ||
|
||
return None |
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,93 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": { | ||
"collapsed": true, | ||
"pycharm": { | ||
"name": "#%% md\n" | ||
} | ||
}, | ||
"source": [ | ||
"This notebook demonstrates how Auto-GABI can be used to get distinct grains and their properties" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 1, | ||
"outputs": [], | ||
"source": [ | ||
"from analysis import GBStructure\n", | ||
"import numpy as np" | ||
], | ||
"metadata": { | ||
"collapsed": false, | ||
"pycharm": { | ||
"name": "#%%\n" | ||
} | ||
} | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"source": [], | ||
"metadata": { | ||
"collapsed": false | ||
} | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 4, | ||
"outputs": [], | ||
"source": [ | ||
"gb = GBStructure('ovito', 'LSF_supercell_md3.lmp')\n", | ||
"gb.delete_particles('O')\n", | ||
"gb.perform_ptm(\n", | ||
" enabled = ['bcc'],\n", | ||
" output_orientation=True,\n", | ||
" rmsd_cutoff = 0.15)\n", | ||
"gb.set_analysis()" | ||
], | ||
"metadata": { | ||
"collapsed": false, | ||
"pycharm": { | ||
"name": "#%%\n" | ||
} | ||
} | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 5, | ||
"outputs": [], | ||
"source": [ | ||
"gb.get_distinct_grains(min_grain_size=10)" | ||
], | ||
"metadata": { | ||
"collapsed": false, | ||
"pycharm": { | ||
"name": "#%%\n" | ||
} | ||
} | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"name": "pycharm-1f46a509", | ||
"language": "python", | ||
"display_name": "PyCharm (03_postprocessing)" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 2 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython2", | ||
"version": "2.7.6" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 0 | ||
} |