Unable to index twin boundaries.

105 views
Skip to first unread message

Carlos Ávila

unread,
Sep 2, 2015, 9:11:03 AM9/2/15
to MTEX

Any thoughts of why this (below) isn't working? The twinning law is 85º<02-21>.

Apparently the error is in the "isTwinning" line, but the code is almost the exact copy of the example in the documentation page.

Sdir = symmetrise(Miller(0,2,-2,1,ebsd('Hematite').CS,'UVTW'));

R_twin = rotation('axis',Sdir,'angle',85*degree);

isTwinning = angle(grains.boundary('He','He').misorientation,R_twin) < 5*degree;

R_twin_bounds = grains.boundary(isTwinning);


Cheers.

Ralf Hielscher

unread,
Sep 3, 2015, 10:23:47 AM9/3/15
to MTEX
Could you please try

R_twin = orientation('axis',Sdir,'angle',85*degree,ebsd('Hematite').CS,ebsd('Hematite').CS);

Thank you very much,

Ralf.

Carlos Ávila

unread,
Sep 3, 2015, 12:38:00 PM9/3/15
to MTEX
Hello Ralf,
sorry, but it didn't work.
Error message is in the image. Can't figure it out.

I was wondering about the arguments of the "angle" command. We are comparing two misorientation relations, but shouldn't we be comparing the products of such misorientations.
Not sure if I was clear enough. Anyway, can you help?

Thank you.
Carlos Ávila.
error.png

Ralf Hielscher

unread,
Sep 3, 2015, 1:22:12 PM9/3/15
to mtex...@googlegroups.com
Hi Carlos,

I think the mistake is that you symmetrise the rotational axis which gives you Sdir. As an result R_twin is a list of rotations and  angle( ... ) does not know what to do. 
When working with misorientations MTEX automatically knows that he has to consider symmetric equivalent orientations.

Please try the following
%// define the misorientation axis
Sdir = Miller(0,2,-2,1,ebsd('Hematite').CS,'UVTW');

%// define the twinning misorientation

R_twin
= orientation('axis',Sdir,'angle',85*degree,ebsd('Hematite').CS,ebsd('Hematite').CS);

%// check the angle between boundary misorientations and twinning misorientation is small
gB_He
= grains.boundary('He','He');
isTwinning
= angle(gB_He.misorientation,R_twin) < 5*degree;

R_twin_bounds
= gB_He(isTwinning);

Ralf.



On Wednesday, September 2, 2015 at 3:11:03 PM UTC+2, Carlos Ávila wrote:

Carlos Ávila

unread,
Sep 3, 2015, 2:01:41 PM9/3/15
to MTEX
Well the error message did change. Still didn't work though.
I'm sure this is the correct twinning law and that the error is not in the R_twin line.
Thanks Ralf.


On Thursday, 3 September 2015 14:22:12 UTC-3, Ralf Hielscher wrote:
Hi Carlos,

I think the mistake is that you symmetrise the rotational axis which gives you Sdir. As an result R_twin is a list of rotations and  angle( ... ) does not know what to do. 
When working with misorientations MTEX automatically knows that he has to consider symmetric equivalent orientations.

Please try the following
%// define the misorientation axis
Sdir = Miller(0,2,-2,1,ebsd('Hematite').CS,'UVTW');

%// define the twinning misorientation
R_twin
= orientation('axis',Sdir,'angle',85*degree,ebsd('Hematite').CS,ebsd('Hematite').CS);

%// check the angle between boundary misorientations and twinning misorientation is small

isTwinning
= angle(grains.boundary('He','He').misorientation,R_twin) < 5*degree;

R_twin_bounds
= grains.boundary(isTwinning);
error2.png

Ralf Hielscher

unread,
Sep 3, 2015, 2:34:33 PM9/3/15
to MTEX
Sorry, I made an mistake in my previous reply. I edited it. Look at it back please.

Thx.

Carlos Ávila

unread,
Sep 3, 2015, 6:17:14 PM9/3/15
to MTEX
Huh, how about that. It worked.
I guess it's because the size of the "isTwinning" didn't match the grain.boundaries right?
Anyway thank you very much Ralf, won't make mistakes like that again.
Carlos.

Ralf Hielscher

unread,
Sep 4, 2015, 12:01:38 AM9/4/15
to mtex...@googlegroups.com
right :)

********************************************************************
Ralf Hielscher                   Tel: +371-531-38556
Fakultät für Mathematik               +371-531-22200 (Sekr.)
Technische Universität Chemnitz  Fax: +371-531-22109
Reichenhainer Str. 39            E-mail: ralf.hi...@mathematik.tu-chemnitz.de
D-09126 Chemnitz                 http://www.tu-chemnitz.de/~rahi
********************************************************************

--
If you want to reduce the number of emails you get through this forum login to https://groups.google.com/forum/?fromgroups=#!forum/mtexmail, click "My membership" and select "Don't send me email updates". You can still get emails on selected topics by staring them.
---
You received this message because you are subscribed to the Google Groups "MTEX" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mtexmail+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/mtexmail.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages