diff --git a/en/404.html b/en/404.html index 73be37a8182a60bc397e53637538bc75106b910b..85e098f2342889c082f3fcc5aa0e62e10c68d5e8 100644 --- a/en/404.html +++ b/en/404.html @@ -10,16 +10,16 @@ 404 Page not found - - - - - - - - + + + + + + + + - + + + + + + + + + + +
+
+
+ +
+
+ + + + + + + +
+
+ + + +
+ +

Bragg Edge Modeling

+ + + + + + + +

The following tutorial will guide, step by step, in a full Bragg Edge Modeling

+ +

Requirements

+ +

Input file

+ +

You will need a VDrive file (vdrive_filename.txt) generated by the VULCAN instrument. This file should looks like this

+ +

+ +

Python code

+ +

You need to clone the bragg edge repository (this won’t be necessary as soon as the library has been deployed).

+ +
    +
  • start a terminal session
  • + +
  • clone braggedgemodeling repo

    + +
    +

    cd ~/

    + +

    git clone https://github.com/ornlneutronimaging/braggedgemodeling

    + +

    cd braggedgemodeling

    +
  • + +
  • switch to texture branch

    + +
    +

    git checkout texture

    +
  • + +
  • add to python path

    + +
    +

    export PYTHONPATH=$PWD:$PYTHONPATH

    +
  • +
+ +

Step 1 - Prepare VDrive file

+ +

In order to run the VDrive file through the Matlab code (step 2), we need to change the format of this file. To do so +simply run the following command line (make sure you provide your own file path)

+ +

NB: Add braggedgemodeling repo to python path !

+ +
> python braggedgemodeling/scripts/vdrive_handler_to_mtex.py
+    -i <full path to the vdrive filename.txt>
+    -io <specify full filename of an intermediate file>
+    -o <full path to output file, prefered extension .rpf>
+
+ +

Example

+ +
> python scripts/vdrive_handler_to_mtex.py
+    -i ~/Desktop/vdrive_filename.txt
+    -o ~/Desktop/VULCAN.rpf
+    -io ~/Desktop/intermediate_file
+
+ +

Here is what the output file should look like

+ +

+ +

Step 2 - Matlab code

+ +
    +
  • Right now, this code only works on VULCAN2 computer, so connect to https://vulcan2.sns.gov

  • + +
  • From there, launch Matlab2014a as this version is the only working for the code we are going to use.

  • +
+ +

+ +
    +
  • Within Matlab, move to folder /user/local/mtex-3.5.0
  • +
  • start startup_mtex from the Matlab command
  • +
+ +

+ +
    +
  • We need to import the pole figure (file created in Step 1), + +
      +
    • click the Import pole figure data blue line
    • +
    • click + to select input file (~/Desktop/VULCAN.rpf)
    • +
    • click Next >> and select Crystal Coordinate System Laue Group +_ click several times Next >> or just Finish
    • +
  • +
+ +

+ +
    +
  • A matlab script is created, make sure the specimen symetry is the one you specified in the GUI (BUG in the Matlab +program!!!). If incorect, make sure you edit the file and replace it with the orientation you choosed.
  • +
+ +

+ +
    +
  • Save the file and Run it. This will produce a few variables listed in the workspace window (right side +of Matlab UI).
  • +
+ +

+ +
    +
  • We need to create now the ODF file by just entering the following script in Matlab command line
  • +
+ +

+ +
    +
  • And now the final step where we need to export the ODF data. But we first need to specify the number of +graind orientation (default 5000) by editing the export_vPSC1 file.
  • +
+ +

FIX ME!!! find a way to make this script available to user (put it inside the mtex code

+ +

+ +
    +
  • Run the export_vPSC1 script from Matlab command line
  • +
+ +

+ +

And here is the final file created, texture.txt

+ +

+ + +
+ +
+ + +
+ + +
+ + + +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + diff --git a/en/tutorial/how_to_other/index.html b/en/tutorial/how_to_other/index.html index 104a9915344f1f0c1a71c267271b82d90cd58d67..4f2db068bd067824d9cd14f562e9591f9a03d9e1 100644 --- a/en/tutorial/how_to_other/index.html +++ b/en/tutorial/how_to_other/index.html @@ -10,22 +10,22 @@ - More ... :: Documentation for Hugo Learn Theme + 8. More ... :: Documentation for Hugo Learn Theme - - - - - - - - + + + + + + + + - + - +