The problem of voxel information generation

52 views
Skip to first unread message

燕某

unread,
Nov 15, 2024, 3:33:17 AM11/15/24
to Prisms-CPFE-users

Hello everyone,

I recently simulated grain growth and output a VTK file. Using the computed quaternions, I obtained Euler angles and a flag that can be successfully used in DREAM3D to output grain morphologies matching my simulation results. However, I do not know how to convert quaternion or Euler angle information into voxel information using DREAM3D. Can anyone please help with this?

Kai

Chaitali Patil

unread,
Nov 18, 2024, 9:15:16 AM11/18/24
to Prisms-CPFE-users
Hi Kai, 

I am not quite sure if I understand the problem correctly. But, did you try utilize Import ASCII Data filter for Dream3D, and import the Euler angles as text file ? Hopefully in that way you can import Euler angle data and use dream3d for your required purpose. If you want to use Euler angle data for Prisms-Plasticity, we  give structured input of grainIDs separately so you just need the list of grain ID and corresponding quaternions (which I guess you already have).  

-Regards,
Chaitali

Kai Tang

unread,
Mar 18, 2025, 5:27:23 AMMar 18
to Prisms-CPFE-users

Hi Chaitali

I can get a list of grain ids and corresponding quaternions, but I don't know how to use the structured input of grainID, can you give me an example?

Kai

Chaitali Patil

unread,
Mar 18, 2025, 6:43:14 AMMar 18
to Prisms-CPFE-users
Hi Kai, 

You need to write two files, one representing grainIDs and other representing orientation file.
For orientation file write grainID and Rodriguez vector of the each grain. Add a dummy line at the start.
For grainID file, reformat the grainIDs vector into 2D matrix such that grainID at (x,y,z) location corresponds to the ((x-1)*(Y dimension size)+y, z) location in matrix. 
Example of grainID file attached.  
grainID_example.txt
Reply all
Reply to author
Forward
0 new messages