Codes/Scripts
Solving Finite Element Code in MATLAB
- Main script [view code]
- Function: Gauss Integral for Q4 element in iso-parametric space [view code]
- Find all the codes in my GitHub repo
Molecular Dynamics (MD)
Here are a few sample LAMMPS scripts for:
- Uniaxial Deformation
- Shock Simulation
- Thermal Conductivity Analysis
Uniaxial Deformation
Uniaxial compression
- Download uniaxial compression script
- for more info –> Check out our CMS article
Uniaxial tension
- Download uniaxial tension script [coming soon]
- for more info –> Check out our CMS article
Simple (edge) shear
- Download shear script [coming soon]
- for more info –> Check out our JAP article
Shock Simulation
Food for thought 1: Why do we simulate uniaxial compression/tension in MD codes with a strain rate of 108 or 109 s-1 and how come we do not even observe any shock waves?
Food for thought 2: Does Poisson’s ratio influence shock compression? Specifically, does the lateral dimension expand in response to compression along the shock direction?
This tutorial provides a LAMMPS script for shock simulation.
Hugoniot vs. Rayleigh:
Modifying EAM interatomic potential (modifying LAMMPS C++ source codes)
- View how-to
- Check out our Acta Materialia paper for details [section 4.2 in main text and Figs. S3 & S4 of the supplementary file]
- [Download the modified codes] (coming soon)
Thermal Conductivity Analysis
Muller-Plathe Method (reverse non-equilibrium molecular dynamics)
- Download rNEMD script
- for more info –> Check out our APL letter
Green-Kubo Method (equilibrium molecular dynamics)
- Download EMD script
- for more info –> Check out our APL letter
OVITO
Calculate atomic level von Mises stress from per-atom stress tensors
Bash
Edit repeating entries in a LAMMPS restart file to use as a continuation of previous file
- Download bash script [view code]
- for sample files & worked-out example –> See GitHub repo
Remove velocities (or any other unwanted properties) from xyz or data file
- Download bash script [view code]
- for sample files & worked-out example –> See GitHub repo