Help with Grain Boundaries Misorientation

128 views
Skip to first unread message

Camilo Garzón

unread,
Apr 12, 2019, 3:36:36 AM4/12/19
to MTEX
Hi,

I'm currently analyzing the misorientation in the grain boundaries of a Ti alpha-beta alloy, however, I had problems with the function grains.boundary.
My objectives are plotting a diagram with the misorientation angle boundaries and also and a histogram of misorientation between alpha-alpha, alpha-beta and beta-beta grain boundaries to classify them in LAGB o HAGB.

Could anyone help me? (I'm using mtex-5.2.beta2)

That's the script that I'm using

set_angle = 10;
min_points=10;

[grains_csm,ebsd_csm.grainId,ebsd_csm.mis2mean] = calcGrains(ebsd_csm('indexed'),'angle',set_angle*degree);
grains_csm = grains_csm(grains_csm.grainSize > min_points);


[grains_csm,ebsd_csm.grainId,ebsd_csm.mis2mean] = calcGrains(ebsd_csm('indexed'),'angle',set_angle*degree);

%Filter 
F = infimalConvolutionFilter;
F.lambda = 0.01;
F.mu = 0.005;

ebsd_csm = smooth(ebsd_csm,F)

plot(grains_csm('Titanium (Alpha)'),grains_csm('Titanium (Alpha)').meanOrientation,'micronbar','off','figSize','large')
hold on
plot(grains_csm.boundary)
hold off


Until this point, everything looks fine.

lw = 6;

% consider on Alpha-Alpha boundaries
gBa = grains_csm.boundary('Titanium (Alpha)','Titanium (Alpha)')

Error using ischar
Not enough input arguments.

Error in grainBoundary/subsref (line 31)
    if ~ischar(gB.CSList{phId})

Error in grain2d/subsref (line 42)
  [varargout{1:nargout}] = builtin('subsref',grains,s);


Then, I get this error

How could I solve it?

Thanks for the help



Rüdiger Kilian

unread,
Apr 12, 2019, 7:37:46 AM4/12/19
to mtex...@googlegroups.com
Hi,
are you sure grains_csm.boundary is not empty?
Cheers,
Rüdiger
________________________________________
From: mtex...@googlegroups.com <mtex...@googlegroups.com> on behalf of Camilo Garzón <scga...@gmail.com>
Sent: Friday, April 12, 2019 9:36:35 AM
To: MTEX
Subject: {MTEX} Help with Grain Boundaries Misorientation
--
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<mailto:mtexmail+u...@googlegroups.com>.
Visit this group at https://groups.google.com/group/mtexmail.
For more options, visit https://groups.google.com/d/optout.

Camilo Garzón

unread,
Apr 12, 2019, 1:56:30 PM4/12/19
to MTEX
Hi,

I recheck and it is not empty, however, I attached you my data in this link


>> grains_csm
 
grains_csm = grain2d (show methods, plot)
 
 Phase  Grains  Pixels           Mineral  Symmetry  Crystal reference frame
     1     166   45352  Titanium (Alpha)       622        X||a, Y||b*, Z||c
     2     129    2255   Titanium (Beta)       432                         
 
 boundary segments: 8121
 triple points: 461
 
 Properties: GOS, meanRotation

Thanks



And when I
To unsubscribe from this group and stop receiving emails from it, send an email to mtex...@googlegroups.com<mailto:mtexmail+unsubscribe@googlegroups.com>.

Ralf Hielscher

unread,
Apr 12, 2019, 2:44:07 PM4/12/19
to mtex...@googlegroups.com
Hi Camilo,

I can confirm that this is a Bug in MTEX. The problems are the parenthesis around Alpha and Beta. 

Its a bit strange but

gBa = grains_csm.boundary('Titanium \(Alpha\)','Titanium \(Alpha\)')

should work.

Ralf.


********************************************************************
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
********************************************************************


To unsubscribe from this group and stop receiving emails from it, send an email to mtex...@googlegroups.com<mailto:mtexmail+u...@googlegroups.com>.

--
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.

Camilo Garzón

unread,
Apr 13, 2019, 7:01:08 PM4/13/19
to MTEX
Thanks, Ralf, 

It works 

Best Regards

Camilo

El viernes, 12 de abril de 2019, 13:44:07 (UTC-5), Ralf Hielscher escribió:
Hi Camilo,

I can confirm that this is a Bug in MTEX. The problems are the parenthesis around Alpha and Beta. 

Its a bit strange but

gBa = grains_csm.boundary('Titanium \(Alpha\)','Titanium \(Alpha\)')

should work.

Ralf.

********************************************************************
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.h...@mathematik.tu-chemnitz.de
To unsubscribe from this group and stop receiving emails from it, send an email to mtex...@googlegroups.com<mailto:mtexmail+unsubscribe@googlegroups.com>.

--
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 mtex...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages