Bainite ferritic duplex grain area, aspect ratio and slope statistics #9
-
Hi, @AzdiarGazder |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @Mikewangkang, I do not fully understand your question - please let me know if my understanding of your issue is correct.
If my understanding is correct, then all you have to do is:
Here is an example of what I mean.
% clear variables
clc; clear all; clear hidden; close all;
% start Mtex
startup_mtex;
% define Mtex plotting convention as X = right, Y = up
setMTEXpref('xAxisDirection','east');
setMTEXpref('zAxisDirection','outOfPlane');
setMTEXpref('FontSize', 14);
% Import the dataset
ebsd = EBSD.load('newDuplex.ctf','interface','ctf',...
'convertEuler2SpatialReferenceFrame');
%% Calculate the grains
% identify grains
[grains,ebsd.grainId,ebsd.mis2mean] = calcGrains(ebsd,'angle',[1 5].*degree,'unitcell');
% remove small clusters
ebsd(grains(grains.grainSize <= 5)) = [];
% re-calculate the grains
[grains,ebsd.grainId,ebsd.mis2mean] = calcGrains(ebsd,'angle',[1 5].*degree,'unitcell');
% Plot a map of grain aspect ratios for the Polygonal ferrite phase
plot(grains('Polygonal ferrite'),grains('Polygonal ferrite').aspectRatio) **Lastly, and importantly, if an explanation from the maintainers resolves your issue, please press the "Mark as answer" button on the appropriate response. Your assistance in this regard enables us to close discussions as complete. ** Hope this helps. Warm regards, |
Beta Was this translation helpful? Give feedback.
-
Hi, @AzdiarGazder Sincerely, |
Beta Was this translation helpful? Give feedback.
Hi @Mikewangkang,
Thank you for the clarification.
I now understand what you're trying to calculate.
Here is the script to compute the angles of the fitted ellipses of all grains.