Generating random texture with mtex

518 views
Skip to first unread message

Mehdi Hamid

unread,
Sep 25, 2016, 1:21:34 AM9/25/16
to MTEX
 I am wondering if I can generate random texture with Mtex 3.5.0? I am trying to generate Euler angles to generate a random structure but when I am importing my data as EBSD data the pole figures intensity is above 1 which shows the texture has some sort of pattern. I am told that Mtex has the ability to generate this type of random texture.
below you can find the code I am using to plot the pole figures. attached you can see the pole figure that I am getting from a texture with 1000 grains. Can you please help me with this?
Thanks

cs=symmetry('cubic');
>> h=[Miller(1,0,0),Miller(1,1,0),Miller(1,1,1)]
 
h
= Miller (show methods, plot)
  size
: 1 x 3
  symmetry
: triclinic
  h
1 1 1
  k
0 1 1
  l
0 0 1
>> odf=calcODF(ebsd);
 performing kernel density estimation
 kernel
: de la Vallee Poussin, hw = 10°
 construct
Fourier odf
>> odf
 
odf
= ODF (show methods, plot)
  crystal symmetry
: unkown (cubic)
  sample symmetry
: triclinic
 
 
Portion specified by Fourier coefficients:
    degree
: 28
    weight
: 1
 
>> plotpdf(odf,h,'antipodal')


pole fig.jpg

Rüdiger Kilian

unread,
Sep 25, 2016, 5:15:19 AM9/25/16
to mtex...@googlegroups.com
Hi Mehdi,
I can't really recall the mtex3.5 syntax, but proabably something like:
% for mtex3.5
cs=symmetry('432');
ss=symmetry('-1');
odf=uniformODF(cs,ss)
ebsd=calcEBSD(odf,1000)
% im not sure if calcOrientation or discreteSample already existed

% or with recent versions of mtex:
cs=crystalSymmetry('321')
odf=uniformODF(cs)
o=discreteSample(odf,1000)
%or even just:
o=orientation.rand(1000,cs)

Of course you will see intensities larger 1 on a pole figure if you estiamte the density from a limited number of orientations, e.g. 1000, maybe with a kernel that is a little too narrow , but if you plot the uniformODF, you can see that the density you sample from is 1.

I hope this helps,
Rüdiger




From: mtex...@googlegroups.com [mtex...@googlegroups.com] on behalf of Mehdi Hamid [mehdi....@gmail.com]
Sent: Saturday, September 24, 2016 11:10 PM
To: MTEX
Subject: {MTEX} Generating random texture with mtex

--
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 https://groups.google.com/group/mtexmail.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages