Geometrically Necessary Dislocations Example at webpage gives errors

174 views
Skip to first unread message

Qamar Hayat

unread,
Jan 29, 2020, 8:34:36 AM1/29/20
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 :)

Hi All, 

I am new user of MTEX. I need to see GNDs in the pure Iron sample and for that purpose, I am trying with a tutorial given on MTEX website but as I reach at ''Fitting Dislocations to incomplete dislocation density tensor'' it strat giving following error

Error using curvatureTensor/fitDislocationSystems (line 30)
Optimization Toolbox not found. The funtion fitDislocationSystems depends on the Matlab
Optimzation Toolbox or, more specifically, on the function linprog.

Can you please help me to sort this out and guide which optimization toolbox I need to install in  MATLAB. 

If there are other examples to plot GND please share links of them.  

Kind regards

Qamar 

Rüdiger Kilian

unread,
Jan 29, 2020, 1:18:28 PM1/29/20
to mtex...@googlegroups.com
Hi Qamar,
the toolbox you'll need is called "Optimization Toolbox". As far sa I see, there's only one toolbox with this name.
Cheers,
Rüdiger

Qamar Hayat

unread,
Jan 30, 2020, 5:59:26 AM1/30/20
to MTEX
Hi Rudiger, 

Thank you for your help. I have installed the toolbox but now I am struck at fitdislocationsystems, it gives following error

 [rho,factor] = fitDislocationSystems(kappa,dSRot);
Error using curvatureTensor/fitDislocationSystems
Attempt to execute SCRIPT fitDislocationSystems as a function:
C:\Users\hayatq\OneDrive - Coventry University\MATLAB\EBSD Toolbox
MTEX\mtex-5.2.8\TensorAnalysis\@curvatureTensor\fitDislocationSystems.m 

uptill dSRot = ebsd.orientations * dS the code works very well but as it goes on it starts giving above error at following line  [rho,factor] = fitDislocationSystems(kappa,dSRot);

Please also see attached screenshot. 

Looking forward for the help. 

Kind Regards

Qamar 
GND.PNG

Rüdiger

unread,
Jan 30, 2020, 6:49:41 AM1/30/20
to mtex...@googlegroups.com
Hi Qamar,
it looks like you have a script with the same name as the function in
your mtex base directory.
Cheers,
Rüdiger


Qamar Hayat

unread,
Apr 16, 2020, 2:40:08 PM4/16/20
to MTEX
Hi Rudiger, 

Thank for your support. It works now and I got GND map but it gives it sort a heat map. I want to get GND and its density as shown in below picture. Can you please guide me how can I get it. 

Regards

Qamar



Qamar Hayat

unread,
Apr 16, 2020, 2:41:18 PM4/16/20
to MTEX

Qamar Hayat

unread,
Apr 16, 2020, 2:42:59 PM4/16/20
to MTEX


On Thursday, 16 April 2020 19:41:18 UTC+1, Qamar Hayat wrote:

Capture.PNG



On Thursday, 16 April 2020 19:40:08 UTC+1, Qamar Hayat wrote:
Hi Rudiger, 

Thank for your support. It works now and I got GND map but it gives it sort a heat map. I want to get GND and its density as shown in below picture. Can you please guide me how can I get it. 

Regards

Qamar





Qamar Hayat

unread,
Apr 20, 2020, 7:47:07 PM4/20/20
to MTEX
Hi, 

GND example at the webpage ends up finding a total dislocation energy map. I want to calculate GN density can you please let me know how can I find a dislocation density map of each bcc crystal slip system. Another thing is that the dislocation energy map on webpage shows staircase effect at grain boundaries, can you please guide how can I minimize this effect. 

Thanks

Qamar 

On Thursday, 16 April 2020 19:40:08 UTC+1, Qamar Hayat wrote:

Rüdiger Kilian

unread,
Apr 21, 2020, 3:34:52 AM4/21/20
to mtex...@googlegroups.com
Hi,
factor*sum(abs(rho .* dSRot.u),2)
is the number of GND in 1/m^2.

What you observe along the boundaries is, that mtex should not try to compute a gradient across/on a grain boundary.

Cheers,
Rüdiger



Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
--
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.

Reply all
Reply to author
Forward
0 new messages