software:fitallb
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| software:fitallb [2018/07/08 20:21] – created smerkel | software:fitallb [2020/04/08 10:09] (current) – [Evaluating the results] matthias | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== FitAllB ====== | ====== FitAllB ====== | ||
| + | |||
| + | //FitAllB// is tailored to do centre-of-mass (COM) refinements of grain orientations, | ||
| + | |||
| + | It was written by Jette Oddershede, formerly at DTU in Denmark and now working for [[https:// | ||
| + | |||
| + | Jette Oddershede, Søren Schmidt, Henning Friis Poulsen, Henning Osholm Sørensen, Jonathan Wright and Walter Reimers, Determining grain resolved stresses in polycrystalline materials using three-dimensional X-ray diffraction, | ||
| + | [[https:// | ||
| + | |||
| + | |||
| + | ===== Capabilities ===== | ||
| + | |||
| + | Taken from the [[https:// | ||
| + | |||
| + | <WRAP center round box 80%> | ||
| + | The aim is to be able to handle several hundred illuminated grains and obtain | ||
| + | the strain tensors to an accuracy of 10< | ||
| + | in the Cartesian grain coordinate system relative to the grain orientation and in | ||
| + | the sample system for overall comparisons, | ||
| + | tensor C are provided, the stress tensors in the same two representations will also | ||
| + | be output. | ||
| + | |||
| + | //FitAllB// includes an error estimation routine to give standard deviations | ||
| + | of all refined parameters. In addition the relative volumes of the grains (from the | ||
| + | peak intensities with the possibility to take absorption effects into account) are | ||
| + | refined, so in principle a 3D orientation and stress/ | ||
| + | can be obtained using tessellation. | ||
| + | |||
| + | Lately an algorithm to extract the peak widths(median 2θ and η) for each grain has been added as an indicator of intragranular | ||
| + | orientation and/or strain gradients. | ||
| + | </ | ||
| + | |||
| + | ===== Application to DAC experiments ===== | ||
| + | |||
| + | In DAC experiments, | ||
| + | |||
| + | ===== Usage ===== | ||
| + | ==== Prerequisites ==== | ||
| + | '' | ||
| + | * the GrainSpotter output file ('' | ||
| + | * the list of filtered peaks ('' | ||
| + | * the ImageD11 parameter file of the phase ('' | ||
| + | * the structure file for your phase ('' | ||
| + | * optionally, a //res// file, but i don't really know what that is so I don't use it; | ||
| + | * the input file ('' | ||
| + | |||
| + | It furthermore requires // | ||
| + | |||
| + | The input file should have this look : | ||
| + | < | ||
| + | title ' | ||
| + | log_file grains.log | ||
| + | flt_file peaks_t50.flt | ||
| + | par_file Olivine.prm | ||
| + | structure_file Forsterite.cif | ||
| + | #res_file .cif | ||
| + | sgno 62 | ||
| + | # | ||
| + | w_step 0.5 | ||
| + | w_limit -28 28 | ||
| + | bg 0 | ||
| + | dety_size 2048 | ||
| + | detz_size 2048 | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | crystal_system orthorombic | ||
| + | stress 0 | ||
| + | #abs_mu 0 | ||
| + | abs_xlim 0.1 | ||
| + | abs_ylim 0.1 | ||
| + | # | ||
| + | xyz 1 # Fit cms positions on farfield | ||
| + | rod 1 # Fit orientations and thus Rodrigues vectors on farfield | ||
| + | eps 1 # Fit strain tensors on farfield | ||
| + | do 0# Fit cell parameters | ||
| + | # | ||
| + | fixx 0 | ||
| + | fixy 0 | ||
| + | fixz 0 | ||
| + | #rej_ia 1 | ||
| + | rej_vol 42 | ||
| + | rej_resmean 10 | ||
| + | rej_resmedian 5 | ||
| + | min_refl 7 | ||
| + | # | ||
| + | tol_grain 1e-2 | ||
| + | </ | ||
| + | |||
| + | ==== Modifying the parameters ==== | ||
| + | Now, about the parameters of the refinement, these are the four lines starting with '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | ==== Running the refinement ==== | ||
| + | Edit this input file to your purposes (modify file names, experimental conditions, crystallographic info, ...) and then type this to your command line: | ||
| + | |||
| + | fitallb.py -i inputfilename.inp | ||
| + | |||
| + | As a result, //FitAllB// will run several fits in the terminal and if it succeeds to refine your grains, it will finish with '' | ||
| + | |||
| + | ==== Evaluating the results ==== | ||
| + | Your current working directory should now contain a new folder named after your input file. In this new folder you can find several output files, which //FitAllB// created during the run. As I understand it now, the most usefull output files are the '' | ||
| + | |||
| + | The '' | ||
| + | The '' | ||
| + | |||
| + | === Reported crashs === | ||
| + | * __maximum call reached__: Happens when //FitAllB// needs too much refinement loops to complete the calculation and is not powerfull enough to do it completly (?). Decrease your //rej_ia//, //rej_vol// or increase // | ||
| + | * __singular matrix__: Mean that fitallb does not have enough information on a grain to refine stress tensor. But same as before, decrease your //rej_ia//, //rej_vol// or increase // | ||
| + | * __ValueError: | ||
| + | * Issues with the CIF file: Tip: If one (or multiple) of the following errors occur over and over again and you don't know what causes the error, there' | ||
| + | |||
| + | loop_ | ||
| + | _atom_type_symbol | ||
| + | _atom_type_description | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | |||
| + | * If you don't want to use ISOCIF, here are some ways to deal with all the issues individually: | ||
| + | * CIF-file issue: __KeyError: u'No such item: _atom_type_symbol' | ||
| + | * CIF-file issue: __UnboundLocalError: | ||
| + | * CIF-file issue: __KeyError: u' | ||
| + | * CIF-file issue: __UnboundLocalError: | ||
| + | * __TypeError: | ||
| + | * __LinAlgError: | ||
| + | |||
| + | ==== Fitgloball ==== | ||
| + | '' | ||
| + | |||
| + | It is working the same way as // | ||
| + | |||
| + | A good advice to use it to refine cell parameters is to index grains with only the lowest tth (where it's easy for GrainSpotter to index peaks) and then use // | ||
software/fitallb.1531074112.txt.gz · Last modified: (external edit)
