Los Alamos FFT file to .dream3D

217 views
Skip to first unread message

Ankita Mangal

unread,
Jan 26, 2017, 12:17:19 PM1/26/17
to dream3d-users
Hi,

I have a 2 phase synthetic microstructure discretized over a 216^3 grid, in the form of a text file written in the Los alamos  FFT format. I want to use the filters in Dream.3D and am at a loss at how to convert the file into the correct dream.3d format.  If we explore the data containers typical 2 phase synthetic microstructure, there is a lot of data there e.g.: (DataContainers/StatsGeneratorDataContainer/CellEnsembleData/Statistics/) that is not straightforward to calculate.

I am wondering if you have a reverse filter in Dream.3d which would help me to convert this file to dream.3d format.

I am attaching a sample file (GoogleDriveLink: https://drive.google.com/file/d/0B7z1HNopCA0uQXVVM3dHZ2xLOTQ/view?usp=sharing) and the microstructure for your perusal.



donegan.sean.p

unread,
Jan 26, 2017, 2:18:20 PM1/26/17
to dream3d-users
Hi Ankita,

You can use the filter "Read ASCII Data", which will read any generic column-orientated text file, such as an FFT-type input or output file.  When you select the file in the filter, a wizard will pop up that walks you through the process of setting up the data reading.  You can do things like skip header lines, define the tuple dimensions (216x216x216 in your case), selectively only read in certain columns (for example, you can skip the x,y,z columns as these indices aren't really needed), and select the type of data for the columns (int32_t for the grain Ids and phase Ids, etc.).  I've successfully used this filter before to read in FFT text files, so it should generally work.

That filter reads the data into DREAM.3D, but you'll need to manually create a place to "put" the data.  First thing is to create a data container ("Create Data Container" filter).  Then create an attribute matrix ("Create Attribute Matrix" filter).  When creating the attribute matrix, you'll want to create a "Cell" type (since the data will sit on the voxels, or cells), and enter tuple dimensions of 216x216x216.  You can do this by adding columns to the widget in the GUI (3 total) and entering 216 in each of them.  Finally, you'll need to create an image geometry that defines the FFT grid ("Create Geometry (Image)" filter).  In this filter, you'll again want to set the dimensions to 216x216x216.  You can also set the grid resolution and origin, if necessary.  Then, you can run the "Read ASCII Data" filter to import the raw data, making sure the place the data into the attribute matrix you created.

hope that helps,

-Sean

Michael Jackson

unread,
Jan 26, 2017, 2:28:40 PM1/26/17
to Ankita Mangal, dream3d-users
There is a pipeline you can put together using the "Import ASCII Data"
as the center piece. I'll attach the pipeline and an additional file
that you will need to fill in some guessed crystal information. This
will work on the currently released version of DREAM.3D from the web
site. This _may_ work on the latest nightly but have not tested it
there. At the end of the pipeline I was able to show the volume in ParaView.

Also, could we get your permission to use this text file as example data
during teaching sessions? It really shows how to import this kind of
data into DREAM.3D.

Hope this helps.

--
Michael A. Jackson
BlueQuartz Software, LLC
[e]: mike.j...@bluequartz.net
> <https://lh3.googleusercontent.com/-YchoJqfy0KE/WIorGatx1lI/AAAAAAAANKI/g13AfovT1nAu3gdYIaxTftJBOkxHksHrgCLcB/s1600/image.png>
>
>
>
> --
> 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
> <mailto:dream3d-user...@googlegroups.com>.
> To post to this group, send email to dream3...@googlegroups.com
> <mailto:dream3...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dream3d-users/461b32ae-b156-477a-8542-c8bbce396ce9%40googlegroups.com
> <https://groups.google.com/d/msgid/dream3d-users/461b32ae-b156-477a-8542-c8bbce396ce9%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.
FFT_Test.json
FFT_Ensemble.ini

Ankita Mangal

unread,
Jan 26, 2017, 6:28:18 PM1/26/17
to dream3d-users
Thankyou Michael and Sean. This has been very helpful. This data originally belongs to Tugce Ozturk and she said you can use it for teaching purposes. 
Reply all
Reply to author
Forward
0 new messages