Calculating an Orientation Distribution Function from EBSD data alphaODF=calcODF(ebsd( 'Zirconium').orientations, 'halfwidth',10*degree)īetaODF=calcODF(ebsd( 'ZirconiumBeta').orientations, 'halfwidth',10*degree) To get figures for the beta phase, just change the %(grains.phase=1) to (grains.phase=2). %All of the figures here were done for the alpha phase, which is phase #1 %in grains. PlotIPDF(grains(grains.phase=1).meanOrientation,dir, 'contourf') The following code will create an IPF for a direction halfway %between the x and y directions (so going diagonally across the map) %If you want to plot an IPF for an arbitrary direction you can do that as %well. PlotIPDF(grains(grains.phase=1).meanOrientation,zvector, 'contourf') PlotIPDF(grains(grains.phase=1).meanOrientation,yvector, 'contourf') PlotIPDF(grains(grains.phase=1).meanOrientation,xvector, 'contourf') = calcGrains(ebsd( 'indexed'), 'angle',5*degree) Here we also show that you can %use mean orientation data from grains instead of considering each %individual pixel. The 3 figures below plot inverse pole figures for the %x,y, and z directions of the ebsd map. Inverse pole figures %If you want to plot an inverse pole figure to see which crystal %orientations are aligned along a given sample direction, MTEX can do it %quite easily. The option "all" ensures that all data are plotted You can specify the the number points by the option "points". I'm plotting 416 random orientations out of 213854 given orientations PlotPDF(ebsd( 'Zirconium').orientations, 'contourf',0:1:6) If you prefer unfilled plots you can use contour instead of %contourf The %contourf option will plot the PF as a filled contour plot, and the option %after it sets the scale of the contours, in this case from 0 to 6 mrd in %steps of 1. %Having all these points makes it difficult to see what's going on, and %it's oftentimes more useful to display PF's as contour plots. PlotPDF(ebsd( 'Zirconium').orientations, 'points', 'all', 'markerSize',3) It's also useful %to change the marker size If you want to plot all othe points, %you can do so by setting the 'points' option to 'all'. %The plot we just made will randomly plot a certain number of points from %the ebsd map onto the pole figure. PlotPDF(ebsd( 'Zirconium').orientations,) First, define the crystallographic directions you'd %like to create pole Figures for, then use the plotPDF command as below: Plotting pole figures from EBSD data %We can take the orientaion data from an EBSD structure and use it to %generate pole figures. Calculating an Orientation Distribution Function from EBSD data.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |