How to take a mesh from Dream 3D and input it to matlab?

406 views
Skip to first unread message

John Hunt

unread,
Dec 12, 2017, 3:27:37 PM12/12/17
to dream3d-users
Dream 3D,

I have created a mesh for a structure.  I have some matlab code that I want to analyse the mesh.  specifically I need to a matrix of the mesh nodes location, a matrix of the euler angles of each grain, a matrix of the which nodes are connected to each other and then a matrix that then has the face information (which three lines make a face).

I saw that I can export text files (ASCII) and that I can export the "FaceLables", and "NodeType" can I get all of the information I need from these two sources?

thanks

John

Michael Jackson

unread,
Dec 13, 2017, 9:03:47 AM12/13/17
to John Hunt, dream3d-users
If you are wanting to export the actual surface mesh to files that you can read into MatLab I would suggest using the "Export Triangle Geometry" filter. It will write 2 files when used. The first is the Vertices and the second are the triangles. You can combine that with the "Export ASCII Data" filter to dump the associated arrays for those triangles and vertices. If you want to read directly from the .dream3d file I can help you locate the information you are looking for. A DREAM.3D file is just a HDF5 file and MATLAB can natively read those files.
--
Michael Jackson | Owner, President
BlueQuartz Software
[e] mike.j...@bluequartz.net
[w] www.bluequartz.net


-- 
Michael A. Jackson                 400 S. Pioneer Blvd
Owner, President                   Springboro, Ohio 45066
BlueQuartz Software, LLC           EMail: mike.j...@bluequartz.net
Voice: 937-790-1601                Web: http://www.bluequartz.net
Fax: 937-746-0783
--
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 post to this group, send email to dream3...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dream3d-users/1fe912c7-41a0-48df-a3ad-180d54b98048%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.




Aniket Chakrabarty

unread,
Jan 9, 2019, 2:56:43 AM1/9/19
to dream3d-users
Dear Sir,

I am currently working with the DREAM 3D filter called "Export Triangle Geometry", but I do not have much idea how to work with it. In the Required Objects section it needs a Data Container which can either be the SyntheticVolumeDataContainer or the StatsGeneratorDataContainer. Selecting either one of the two makes me find either one out of the following two errors:

1) "Data Container Geometry is not Compatible", error code -384
2) "Data Container Geometry is missing", error code -385

I have also tried using the "Export ASCII Data" filter before the "Export Triangle Data" filter. In the "Required Objects" section at the "Attribute Arrays to Export" part , I have tried pointing towards StatsGeneratorDataContainer and the SyntheticVolumeDataContainer, but in neither case does the following filter (i.e., "Export Triangle Geometry" ) is turned on green or is activated.

Please help or suggest something to proceed with. 

Michael Jackson

unread,
Jan 9, 2019, 7:39:12 AM1/9/19
to Aniket Chakrabarty, dream3d-users

Dear Aniket,

     When DREAM.3D creates a synthetic volume the volume is a voxelized structure in memory, meaning at the moment of creation there is not any kind of “Surface Mesh” created. After the synthetic volume is created, say near the end of your current pipeline insert the filter “Quick Surface Mesh” which will generate the surface mesh that you are looking for. Please note that while the generation of the mesh has gotten better in the latest release it is still possible to create a surface mesh that Abaqus may not be able to use properly. If you want to try our latest codes take a look at the nightly builds at http://dream3d.bluequartz.net/binaries/experimental/ then look for a directory with today’s date. Those binaries have some experimental new filters that do a better job of exporting DREAM.3D data structures for import into Simulation codes. The filter is called “Export 3d Solid Mesh”. The filter is still in development so if you have some feedback for the filter developer please let us know.

 

--

Michael Jackson | Owner, President

      BlueQuartz Software

[e] mailto:mike.j...@bluequartz.net

[w] http://www.bluequartz.net

 

From: <dream3...@googlegroups.com> on behalf of Aniket Chakrabarty <aniketchak...@gmail.com>

Date: Wednesday, January 9, 2019 at 3:16 AM

To: dream3d-users <dream3...@googlegroups.com>

Subject: Re: How to take a mesh from Dream 3D and input it to matlab?

 

Dear Sir,

 

I am currently working with the DREAM 3D filter called "Export Triangle Geometry", but I do not have much idea how to work with it. In the Required Objects section it needs a Data Container which can either be the SyntheticVolumeDataContainer or the StatsGeneratorDataContainer. Selecting either one of the two makes me find either one out of the following two errors:

 

1) "Data Container Geometry is not Compatible", error code -384

2) "Data Container Geometry is missing", error code -385

 

I have also tried using the "Export ASCII Data" filter before the "Export Triangle Data" filter. In the "Required Objects" section at the "Attribute Arrays to Export" part , I have tried pointing towards StatsGeneratorDataContainer and the SyntheticVolumeDataContainer, but in neither case does the following filter (i.e., "Export Triangle Geometry" ) is turned on green or is activated.

 

Please help or suggest something to proceed with. 

 

On Wednesday, December 13, 2017 at 7:33:47 PM UTC+5:30, Michael Jackson wrote:

If you are wanting to export the actual surface mesh to files that you can read into MatLab I would suggest using the "Export Triangle Geometry" filter. It will write 2 files when used. The first is the Vertices and the second are the triangles. You can combine that with the "Export ASCII Data" filter to dump the associated arrays for those triangles and vertices. If you want to read directly from the .dream3d file I can help you locate the information you are looking for. A DREAM.3D file is just a HDF5 file and MATLAB can natively read those files.

--

Michael Jackson | Owner, President

      BlueQuartz Software

[e] javascript:

[w] http://www.bluequartz.net

 

 

-- 

Michael A. Jackson                 400 S. Pioneer Blvd

Owner, President                   Springboro, Ohio 45066

BlueQuartz Software, LLC           EMail: javascript:

Voice: 937-790-1601                Web: http://www.bluequartz.net

Fax: 937-746-0783

 

 

From: dream3d-users <javascript:> on behalf of John Hunt <javascript:>

Date: Tuesday, December 12, 2017 at 3:27 PM

To: dream3d-users <javascript:>

Subject: How to take a mesh from Dream 3D and input it to matlab?

 

Dream 3D,

 

I have created a mesh for a structure.  I have some matlab code that I want to analyse the mesh.  specifically I need to a matrix of the mesh nodes location, a matrix of the euler angles of each grain, a matrix of the which nodes are connected to each other and then a matrix that then has the face information (which three lines make a face).

 

I saw that I can export text files (ASCII) and that I can export the "FaceLables", and "NodeType" can I get all of the information I need from these two sources?

 

thanks

 

John

--

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 javascript:.

To post to this group, send email to javascript:.

To view this discussion on the web visit https://groups.google.com/d/msgid/dream3d-users/1fe912c7-41a0-48df...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

 

 

 

--

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 mailto:dream3d-user...@googlegroups.com.

To post to this group, send email to mailto:dream3...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/dream3d-users/e949ccf5-07f4-4d3d...@googlegroups.com?utm_medium=email&utm_source=footer.

Reply all
Reply to author
Forward
0 new messages