Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Out of memory" error during GND density calculation from large EBSD datasets #1923

Open
nbauermcl opened this issue Aug 16, 2023 · 2 comments

Comments

@nbauermcl
Copy link

nbauermcl commented Aug 16, 2023

Hello, I am trying to calculate the GND density in a deformed BCC iron specimen from an EBSD map with over 17 million datapoints (over 13 million indexed). I am using MTEX version 5.10.0 together with Matlab version R2023a on a 64-bit Windows 10 Pro system with 32 GB RAM. I stick to the calculation method described in https://mtex-toolbox.github.io/GND.html.

However, the rotation of the BCC dislocation system into the specimen reference frame
dSRot = ebsd.orientations * dS
has so far always produced an "out of memory" error for me. Specifically, it occurs during one of the computationally heavy rotation steps, i.e. at line 25 or 26 in the rotate_outer.m file (path to mtex\geometry@vector3d\rotate_outer.m) which reads something like
v.x = (a.^2+b.^2-c.^2+d.^2)*x + ...

Has anyone else encountered such an error with large EBSD datasets? And does anyone have a solution how to make the calculation work on my PC with 32 GB RAM?

Thanks for your help!

@marcoalopez
Copy link

hi,

just try changing the total amount of free RAM memory in the mtex_setting.m file (around line 196) to higher values, for example, if you want to use 20 Gb you can set 20000*1024.

Best

@ralfHielscher
Copy link
Member

Can you tell me how large your EBSD data set is and what size your variable dS has?

Thank you,

Ralf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants