Skip to content

hsc1993/DefectNetwork

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DefectNetwork

This repository simulates the formation of defects network near a saturated grain boundary

The project consists of three parts:

  1. Simulating multiple batches of prismatic loop evolution using kMC algorithm embedded with Dislocation Dynamics module dd3d_diffuse.m, all results from different batches are 'parallel' and stiched together using merge.m and the dislocation data files are exported from it.
  2. Generating cubic volume tessellation with the tessellation_orthogonal.m. The output contains all the vertices of each volume element.
  3. Conducting GND signal analysis with main.py, which reads both the dislocation data and volume_mesh data. It outputs information about dislocation segments after being truncated by volume cells, the volume, vertice and GND content of each volume cell.
  4. Generating GND signal 3D map. Running voro_plot.m will produce result, which is rendered in 3d_rendering.py for final 3d image of GND signal near the GB.

Table of Contents

Install

This project consists of code developed in Python and MATLAB. Commercial Software OVITO is used for data processing.

Usage

kinetic Monte Carlo/Dislocation Dynamics simulation of defect evolution

Simulation starts by running dd3d_diffuse.m, with simulation parameters specified in input_bes.m. After simulation time is fulfilled, the dislocation network information is stored in relaxround.mat. This file will can be used by merge.m to form bigger dislocation network. The result will be written into dislocation.txt and dislocation_burgers.txt.

Spatial tessellation

Aftern tunning the simulation box size and number of meshed elements in the tessellation_orthogonal.m, execution of the code will save the coordinates of all volume mesh vertices into text files in the designated directory.

Gaussian 3d GND analysis

The main.py calculates the GND density by combining the dislocation information and meshed volumes. The output from this script includes:

  1. Simulation parameters like the mesh size and the dimension of the simulation volume;
  2. Volume of each meshed volume element;
  3. GND signal intensity of each meshed volume element;
  4. Vertices of dislocation segments with the truncating effect of meshed volume elements;
  5. The correspondence between each dislocation segment and the meshed volume element that fully contains it.

The output of main.py will be further analyzed by voro_plot.m to generate final 3d GND signal ready for rendering.

Analyze GND calculation

Use 3d_rendering.py to process the orthogonal_merged20_voro_color.txt and we get

Maintainers

@AlanHe.

Contributing

Contributors

This project is supported by research group at UCLA, Johns Hopkins University, Hongkong City University and Pennsylvania University.

License

MIT © Sicong He

About

This repository simulates the formation of defects network near saturated a grain boundary

Resources

License

Stars

Watchers

Forks

Packages

No packages published