Jump to content

Specific Process Knowledge/Characterization/XRD: Difference between revisions

Khara (talk | contribs)
Khara (talk | contribs)
Line 36: Line 36:
Peak angles can be calculated by simple vector calculations; however, I have made a [[small MATLAB script]] calculating them for you. To use the script open MATLAB and call the program with two vectors as input. First vector should be your surface orientation, second input the plane you measure on. For a [1 1 1] substrate surface and a [3 1 1] plane and a [0 0 1] substrate surface and a [1 3 3] plane, where the measurement planes are dependent on the 2theta angle, the command looks like this:
Peak angles can be calculated by simple vector calculations; however, I have made a [[small MATLAB script]] calculating them for you. To use the script open MATLAB and call the program with two vectors as input. First vector should be your surface orientation, second input the plane you measure on. For a [1 1 1] substrate surface and a [3 1 1] plane and a [0 0 1] substrate surface and a [1 3 3] plane, where the measurement planes are dependent on the 2theta angle, the command looks like this:


PoleFigureAngles([1 1 1; 0 0 1],[3 1 1; 1 3 3])
{|style="margin:auto;"
|PoleFigureAngles([1 1 1; 0 0 1],[3 1 1; 1 3 3])
|}


It is also possible to give a path for a file exported from 3D Explore with contour data from a measurement, and a rotational correction for the data:
It is also possible to give a path for a file exported from 3D Explore with contour data from a measurement, and a rotational correction for the data:


PoleFigureAngles([1 1 1; 0 0 1],[3 1 1; 1 3 3],'\Au_thin_inplanepole_WF1_m2.txt',30.9)
{|style="margin:auto;"
 
|PoleFigureAngles([1 1 1; 0 0 1],[3 1 1; 1 3 3],'\Au_thin_inplanepole_WF1_m2.txt',30.9)
|}
Which will give the following table and pictures, without a file input only the table and the first graph will be given:
Which will give the following table and pictures, without a file input only the table and the first graph will be given: