Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Grain Size Analysis after Simulation

49 views
Skip to first unread message

Maria Lee

unread,
Nov 19, 2024, 12:38:19 PM11/19/24
to dream3d-users
Hello, I would like to know how to calculate the average grain size of the system after the simulation? I tried to use the idea from this conversation (https://groups.google.com/g/dream3d-users/c/K2P5TWDIRmk) but my file is not in the EBSD format. 
I have been having a trouble with importing the results file.  The file is written in .e for paraview. 
I converted it into .h5 and .xmf through paraview to use the import filters in Dream3D but I've been stuck and do not how to move forward. 
It would be very helpful if you could help me with me. 

Do I need to convert the file in a different format through paraview? 
What filters should I use in Dream3D? 


2d_4micron_mobility.5th.e
grin_5th.xmf

Michael Jackson

unread,
Nov 20, 2024, 10:48:58 AM11/20/24
to Maria Lee, dream3d-users
Hello Maria, 
      Looking at the “CDF” file in ParaView and viewing by ebsd_grains we see this geometry.

That is a quad surface (which DREAM3D-NX can understand). This issue is that the Grain Size computations require an “Image Geometry” or a regular grid instead of the AMR style grid that you currently have. DREAM3D does not currently have a filter that can interpolate your data onto a regular grid. My guess is that SciPy would have something that could help in this endeavor. When combined with the conda python bindings for DREAM3D-NX you should be able to achieve what you are looking to do.

--
Mike Jackson                    mike.j...@bluequartz.net
BlueQuartz Software         www.bluequartz.net
President/Owner               Dayton, Ohio
Principal DREAM.3D Developer


--
You received this message because you are subscribed to the Google Groups "dream3d-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dream3d-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dream3d-users/caf0a3af-e960-44f8-8afd-db67c23b66cbn%40googlegroups.com.

Maria Lee

unread,
Nov 20, 2024, 2:46:20 PM11/20/24
to dream3d-users
Michael,

Thank you so much for your response and explanation. I understand it now. 
Thus, if my output is on a regular uniform grid instead of on the AMR grid, will I be able to import my result into DREAM3D? If so, what filter should I use to calculate the average grain size? 

Thank you.

Michael Jackson

unread,
Nov 20, 2024, 9:24:12 PM11/20/24
to Maria Lee, dream3d-users
Dear Maria, 
   If you can get the data on a regular grid then you will need to get that imported into DREAM3D (Using one of the various “Read” filters), then segment the data using “Segment Features (Scalar)” (most likely), then run the various statistics. If you take a look at the prepackaged Small IN100 set of prebuilt pipelines those can give you a good idea what needs to be done. If you can get an example file of what you are trying to import I can try and help you get a pipeline together inside of DREAM3D-NX.

--
Mike Jackson                    mike.j...@bluequartz.net
BlueQuartz Software         www.bluequartz.net
President/Owner               Dayton, Ohio
Principal DREAM.3D Developer


On Nov 20, 2024 at 13:37:39, Maria Lee <mar...@vt.edu> wrote:
That makes sense to me. Thank you for your explanation and suggestion. 
Thus, if I do not use the AMR style to avoid a non-uniformed mesh style, will I be able to find the average grain size in Dream3D? If so, what types of filters do I need to use? 


Michael Jackson

unread,
Nov 20, 2024, 9:27:06 PM11/20/24
to ᴀʙʜɪɴᴀʙ ᴘʀᴀsᴀᴅ ʀᴀᴛʜ, dream3d-users

I would start there to get an understanding of how DREAM3D-NX works inside of python. Then you could look at leveraging python to resample the data onto a regular grid using some python libraries. Once that is accomplished you can then leverage DREAM3D-NX’s filters to compute grain statistics.


--
Mike Jackson                    mike.j...@bluequartz.net
BlueQuartz Software         www.bluequartz.net
President/Owner               Dayton, Ohio
Principal DREAM.3D Developer
On Nov 20, 2024 at 13:02:41, ᴀʙʜɪɴᴀʙ ᴘʀᴀsᴀᴅ ʀᴀᴛʜ <abhinab...@gmail.com> wrote:

When combined with the conda python bindings for DREAM3D-NX you should be able to achieve what you are looking to do.

(Can you Give any reference cz I was also looking to See the ODB files Generated from simulation Imported from DREAM 3D in paraview.


Maria Lee

unread,
Nov 22, 2024, 3:38:39 PM11/22/24
to dream3d-users
Dear Michael,

Thank you for your help and suggestions. I found the prepackaged Small IN100 set of prebuilt pipelines. I will try to convert it on a regular grid and have the similar filters from that prebuilt pipeline. 
Thank you so much. 

Reply all
Reply to author
Forward
0 new messages