Question about export a file in Dream.3D as LAMMPS file

134 views
Skip to first unread message

Raffaello Chen

unread,
Jan 2, 2024, 4:49:07 PM1/2/24
to dream3d-users
Hi, I am trying to export a structure I made via Dream.3D as a LAMMPS file for later processing. But the 'insert atoms' filter keeps making error message like the photo I attached here. Would you mind kindly helping to take a look into it?
ThanksScreenshot 2024-01-02 154647.png

Michael Jackson

unread,
Jan 4, 2024, 9:55:54 AM1/4/24
to Raffaello Chen, dream3d-users
Dear Raffaello, 
    The Insert Atoms filter is pretty picky about what it can and cannot do. Could you tell me what the voxel dimensions and spacing of your generated microstructure are? Also what version of DREAM3D are you using currently?

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


On Jan 2, 2024 at 4:49:07 PM, Raffaello Chen <raffae...@gmail.com> wrote:
Hi, I am trying to export a structure I made via Dream.3D as a LAMMPS file for later processing. But the 'insert atoms' filter keeps making error message like the photo I attached here. Would you mind kindly helping to take a look into it?
ThanksScreenshot 2024-01-02 154647.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.
To view this discussion on the web visit https://groups.google.com/d/msgid/dream3d-users/894d251e-2a6d-454b-acd2-7cf9bf478540n%40googlegroups.com.


Raffaello Chen

unread,
Jan 4, 2024, 12:27:04 PM1/4/24
to dream3d-users
Hi, Thanks for your response. My version is 6.5.171 and I have attached the setting of all parameters here with the error message and another .csv file I output. Would you mind taking a look to that kindly?
---Raffaello

10.png
6.png
error.png
test2.csv
3.png
5.png
7.png
9.png
1.png
4.png
2.png

Michael Jackson

unread,
Jan 4, 2024, 5:36:43 PM1/4/24
to Raffaello Chen, dream3d-users
Dear Raffaello, 
    You can make this a bit easier by saving the pipeline to a file (Use the File menu) and then just send me the file. I was able to recreate most of the pipeline from the images but on macOS at least the pipeline crashes when it gets to the InsertAtoms filter. Please note that the InsertAtoms filter combined with even a modest sized microstructure can generate more atoms that can be stored in memory. DREAM3D 6.5 did not do a great job of explaining this. I think the later nightly builds of DREAM3D did a better job. You can grab one from here.


I would try that nightly and see if there are any better results.
--
Mike Jackson


Raffaello Chen

unread,
Jan 4, 2024, 5:45:26 PM1/4/24
to dream3d-users
Thank your for your response. Yes, the crash while running to the filter of InsertAtoms is what I am confused with. Sorry for the trouble caused by these pictures. I have attached the save pipeline here
--Raffaello
Untitled.json

Michael Jackson

unread,
Jan 4, 2024, 6:42:40 PM1/4/24
to Raffaello Chen, dream3d-users
Essentially that filter is probably unusable. Let’s do some math to help us both realize that who ever wrote the filter was probably running on a VERY large memory machine.

Let us assume that you have a microstructure that is 1 micron on a side and you are using a lattice constant of 1 angstrom. That means that there are at least 10000 x 10000 x 10000 atoms in that small microstructure. This is 1x10E12 atoms or 1 Tera worth of atoms. Since we store the location of each atom as 3x4byte floats, that is 12 bytes for each position which gives us 12 Terabytes of memory that is needed just to allocate for this filter.

Unfortunately the InsertAtoms filter was hard coded to assume the position values that were passed into the filter are in micrometers so there isn’t much you can do. If your microstructure is really in nanometers you could try to save the .dream3d file, use something like Python to open the .dream3d file, find the vertices of the mesh and scale them  to be expressed as nanometers instead. (So multiply each vertex by 1000). This might get you close as you would remove 9 orders of magnitude from the calculation.

Sorry for the bad news.
--
Mike Jackson                   
BlueQuartz Software         www.bluequartz.net
President/Owner               Dayton, Ohio
Principal DREAM.3D Developer

Raffaello Chen

unread,
Jan 4, 2024, 6:51:23 PM1/4/24
to dream3d-users
Thanks for your response. For the model I am doing with I just wanna build up a polycrystal structure of cubic diamond with about 2000 atoms for LAMMPS running. That is why I am using this InsertAtoms filter which is required for another filter called 'ExportLammpsDataFile'. Or would you mind sharing another more simple way to achieve this rather than doing the insertatoms filter.  What I wanna get is like the photo I attached here. I can get the left side figure via imput the .xdmf file into the Paraview and may I ask how can I get the figure like right side one which will show the distribution of atoms? Thanks
Screenshot 2024-01-04 174853.png

Michael Jackson

unread,
Jan 4, 2024, 8:29:21 PM1/4/24
to Raffaello Chen, dream3d-users
I don't know how that image was generated. I do know that DREAM3D was involved just looking at the left and center. But the right side probably was not generated with DREAM.3D but instead used some other method. Maybe you could email the original authors and inquire with them how the image was made.

Mike Jackson
Principal DREAM.3D Developer
BlueQuartz Software


Hanyu Xu

unread,
Dec 4, 2025, 5:37:42 AMDec 4
to dream3d-users
Dear Michael,

If I want an atomic system containing 1000 × 1000 × 1000 atoms, can I create a simple geometry in DREAM.3D—such as a single-grain structure—and then use the Export LAMMPS Data File filter to generate the corresponding atomic configuration? Is this possible?  

Best Regards,
Hanyu

Michael Jackson

unread,
Dec 4, 2025, 10:11:06 AMDec 4
to Hanyu Xu, dream3d-users
Hello Hanyu, 
   This is possible. I have included a pipeline that places a single atom type on a 1000 x 1000 x 1000 grid and writes out the LAMMPS file. The file will be VERY Large since it is a text file so you will need to give it some time to finish.

You will need to use DREAM.3D Version 6.5.171 to run the pipeline as we have not yet ported that filter into DREAM3D-NX.

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


LAMMPS_Grid.json
Reply all
Reply to author
Forward
0 new messages