Skip to content

Commit

Permalink
docu
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfHielscher committed Nov 7, 2024
1 parent 82f6c3a commit 0c36375
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 23 deletions.
16 changes: 8 additions & 8 deletions doc/ODFAnalysis/SigmaSections.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
% Although $\varphi_2$ sections are most common to represent orientation
% distribution functions they heavily suffer from geometrical distortions
% of the orientation space. Lets illustrate this at a simple example.
% The following $\varphi_2$ sections represent a hexagonal ODF composod
% The following $\varphi_2$ sections represent a hexagonal ODF composed
% from several unimodal components

% the ODF is defined at the bottom of this script to be secret during the first read :)
Expand Down Expand Up @@ -124,8 +124,8 @@

%%

% They can be seen as the (001) pole figure splitted according to rotations
% about the (001) axis. Lets have a look at the 001 pole figure
% They can be seen as the (001) pole figure split according to rotations
% about the (001) axis. Lets have a look at the (001) pole figure

plotPDF(odf,Miller(0,0,0,1,cs))

Expand All @@ -137,12 +137,12 @@

%%
% we can clearly distinguish the two spots in the middle indicating two
% radial symmetric portions. On the other hand the spots at 001 appear in
% every section indicating a fibre at position [001](100). Knowing that
% sigma sections are nothing else then the split 001 pole figure they
% are much more simple to interpret then usual phi2 sections.
% radial symmetric portions. On the other hand the spots at (001) appear in
% every section indicating a fiber at position [001](100). Knowing that
% sigma sections are nothing else then the split (001) pole figure they are
% much more simple to interpret than usual $\phi_2$ sections.

%% Customizations
%% Customization

oS = sigmaSections(odf.CS,odf.SS);

Expand Down
27 changes: 12 additions & 15 deletions doc/Tutorials/GrainTutorial.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
plot(ebsd)

%%
% The phase map shows a multi-phase rock specimen with Andesina, Quartz,
% Biotite and Orthoclase. Lets restrict it to a smaller region of interest.
% The rectangle is defined by [xmin, ymin, xmax-xmin, ymax-ymin].
% The phase map displays a multi-phase rock specimen with phases such as
% Andesine, Quartz, Biotite, and Orthoclase. We will now focus on a smaller
% rectangular region of interest defined by the coordinates |[xmin, ymin,
% xmax - xmin, ymax - ymin]|.

region = [19000 1500 4000 1500];
% overlay the selected region on the phase map
Expand Down Expand Up @@ -58,31 +59,27 @@
hold off

%%
% For the map created, most of the phases are colored based on where they
% exist, while only the Quartz phase is colored according to the
% orientation. The quartz orientations are colored using the following ipf
% color key
% In this visualization most phases are displayed in uniform colors, while
% Quartz is colored according to the ipf color key

close all
ipfKey = ipfColorKey(ebsd_region('Quartz'));
plot(ipfKey)


%%
% Alternatively, we may colorize each quartz grain according to its mean
% orientation. Again, the other phases are colored based on where they
% exist.
% Alternatively, we can display each quartz grain according to its mean
% orientation.

plot(grains({'Andesina','Biotite','Orthoclase'}),'FaceAlpha',0.4)
hold on
plot(grains('Quartz'),grains('Quartz').meanOrientation)
legend off


%% Highlight specific boundaries
% We can create a phase map with certain grain boundaries highlighted. In
% this case, we highlight where adjacent grains of Andesina and Orthoclase
% have a misorientation with rotational axis close to the c-axis.
% We can create a phase map with certain grain boundaries highlighted. In
% this phase map, we highlight grain boundaries where neighboring grains of
% Andesine and Orthoclase exhibit a misorientation with a rotational axis
% close to the c-axis.

close all
% copy all boundaries between Andesina, Orthoclase to a new variable
Expand Down

0 comments on commit 0c36375

Please sign in to comment.