Skip to content

epang22/pcglobal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pcglobal

Algorithm for fitting pattern centers of EBSD patterns. Fits orientation and pattern center by optimization in 6D space using the SNOBFIT global optimization algorithm. This helps prevent getting trapped in local minima, which is an issue for standard downhill search methods. Uses EMsoft to simulate EBSD patterns.

Our paper (preprint) describing this method. Patterns used in this paper can be found in the folder 'paperdata/'.

More information about the SNOBFIT algorithm

More information about EMsoft

*As of 5/8/2021, can automatically fit pattern centers for pseudosymmetric materials using the programs 'RunPCfit_pseudosym.m' and 'RunPCfit_loop_pseudosym.m'. These programs were used in this paper (preprint).

Installation instructions:

  1. Install EMsoft. Code and installation instructions can be found here.
  2. Download/clone this repository in any location.
  3. Download the minq5 package from here.

If you are using EMsoft v4.0, extract in a folder named 'minq5/' located in the 'pcglobal/EMsoft_v4_0/' directory. Only use the version of the code in this directory.

If you are using EMsoft v4.3 or later, extract in a folder named 'minq5/' located in the 'pcglobal/EMsoft_v4_3/' directory. Only use the version of the code in this directory.

Different versions of EMsoft have separate code here because of the differences in pattern orientation. Using the incorrect version can lead to low dot product values (and may not give an error) because the incorrect pattern orientation. We have only tested EMsoft v4.0 and v4.3. Please let us know if one or neither of these versions seems to work for you.

Use instructions:

  1. Before performing a fitting run, you need to precompute the master pattern using EMsoft. See here for instructions.
  2. Open 'RunPCfit.m'. There is also a version 'RunPCfit_loop.m' that allows you to loop through multiple image files.
  3. Enter the parameter values in the section labeled 'INPUT PARAMETERS'. Comments in the script explain the meaning of each parameter. Default SNOBFIT values should be fine in most cases, but we have included a program FindParameters.m that can help you determine the optimal values for some of these parameters for your system.
  4. Run the script.

I have included some examples to learn how to use the package. This data is located in the folder /testdata/. You need to take a few additional steps to be able to perform a fitting run on this data:

  1. Download 'Ni.tar.gz' from here. Copy the file 'Ni-master-20kV.h5' to any location within EMsoft's EMdatapathname.
  2. Download 'Xtals.tar.gz' from here. Copy the 'Ni.xtal' file to your EMsoft xtal folder.
  3. Copy the folder 'testdata/' to any location within EMsoft's EMdatapathname. You can find the location of your xtal and EMdatapathname folders at: '~/.config/EMsoft/EMsoftConfig.json'

Feel free to email me at [email protected] if you have any questions/difficulties/suggestions.

About

Fit EBSD pattern centers using global optimization

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published