Change Euler Angles from Bunge to Kocks Convention

315 views
Skip to first unread message

Omar Al-Abri

unread,
Dec 8, 2015, 9:37:09 AM12/8/15
to MTEX
Please be as detailed as possible, explain what you want to do, what kind of data you are using. Attaching simplified code and data is always useful. Click the the button { } to inline code and finally remove these lines before posting :)

Dear All,

The Euler angles obtained from EBSD are normally in Bunge convention, can we change them into Kocks convention in MTEX? Is there any command dedicated to do this operation in MTEX? 
What I'm interested to do is to import data from EBSD into MTEX, perform some rotation operations on them, convert them into Kocks convention, and then export them to a .txt file in order to use them as input to a CPFEM code.

Looking forward to your support

Regards,

Omar

Ralf Hielscher

unread,
Dec 9, 2015, 9:09:32 AM12/9/15
to MTEX

bjørn eske sørensen

unread,
Nov 5, 2025, 4:27:20 AMNov 5
to MTEX
just to double check. I am working with some collegues and they want to get an output of euler angles for host glaucophane inclusions in garnet host and euler angles of the garnet hosts. I assume that the euler angles follow the standard Bunge convention:
"Euler angles

Since the Euler angles are the most common way to describe orientations MTEX implements them such that the Euler angles of an MTEX orientation coincide with the Euler angles of a Bunge orientation. Thus the Euler angles of orientations in MTEX agree with the Euler angles reported by all common EBSD devices, simulation software, text books and paper."

export code looks something like this:

xlsfilename=[pname '\filename.xls'];
grainexport = included_glaucophane;
Gnt_hostId = included_glaucophane.hostId;
%garnet (Gnt) host euler
HostEuler =grains(Gnt_hostId).meanOrientation.Euler;
Hostphi1 = HostEuler(:,1);
HostPhi = HostEuler(:,2);
Hostphi2 = HostEuler(:,3);
% Gln (glaucophane) Euler
GlnEuler =included_glaucophane.meanOrientation.Euler;
Glnphi1 = GlnEuler(:,1);
GlnPhi = GlnEuler(:,2);
Glnphi2 = GlnEuler(:,3);
varnames ={'Gnt_hostId', 'GlnId', 'Hostphi1','HostPhi','Hostphi2','Glnphi1','GlnPhi','Glnphi2'}
n=length(varnames)
grains_props =cell(length(grainexport),n);
for i=1:n
grains_props(:,i)=num2cell(eval(varnames{i}));
end
graintable=cell2table(grains_props,'VariableNames',varnames)
% write this to an excel spreadsheet
writetable(graintable,xlsfilename,'sheet','grainprops')



Reply all
Reply to author
Forward
0 new messages