You are on page 1of 13

Computer Applications in Materials Engineering

Lab Activity No.03

CS 325

Submitted By
Maroof Faheem (20MME-S1-313)
Muhammad Umar (20MME-S1-340)
Eisha Amin (20MME-S1-326)

Submitted To
Dr.-ing Waseem Amin
Assistant Professor

Submission Date:
June 5, 2023

Institute of Metallurgy and Materials Engineering


Faculty of Chemical and Materials Engineering
University of the Punjab,Lahore
Contents
1 Objective 2

2 Introduction 2
2.1 What is DREAM 3D? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2.2 How it is helpful in Materials science and Engineering? . . . . . . . . . . . . . . . . . . . 2
2.3 What is Para view? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2.4 What role does Paraview play? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

3 Literature Review 2
3.1 Overview of the User Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
3.2 Data Structures: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
3.2.1 Geometry: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3.2.2 Features and Ensembles: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3.2.3 Filters,Plugins and Pipeline: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3.3 Creating and Building Pipeline: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3.4 StatsGenerator: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.4.1 Phase Properties: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.4.2 Size Distribution Tab: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.4.3 Omega3 Tab: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.4.4 Shape Distribution Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.4.5 ODF Tab: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.4.6 MDF Tab: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.5 Initialize Synthetic Volume . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.6 Establish Shape Types: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.7 Pack Primary Phases: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.8 Match Crystallography: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.9 Generate IPF Colors: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.10 Write DREAM.3D Data File: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

4 Procedure 7

5 Discussion 12

6 Conclusion 12

1
To create a 3D micro structure using DREAM3D and view it in para
view software.

1. Objective
The objective the experiment is to aim:

• To create a 3D representation of the microstructure using DREAM3D software.

• To view this representative volume element in para view.

2. Introduction
2.1. What is DREAM 3D? • Designing and optimizing materials for spe-
cific performance.
DREAM 3D (Diffraction Reconstruction and Explo-
ration for Advanced Materials 3D) is an open-source
software tool that is specifically designed for the
analysis and simulation of microstructures in materi-
2.3. What is Para view?
ParaView is a multi-platform, open-source data anal-
als science and engineering. It plays a crucial role in
ysis and visualization program that is widely used
the field of materials science by providing a platform
in scientific and technical domains. It is useful for
for the reconstruction, visualization, and analysis of
visualizing and analyzing vast amounts of scientific
three-dimensional (3D) microstructural data.[1]
data, especially in the context of computational sim-
2.2. How it is helpful in Materials science ulations and simulation outcomes.[2]
and Engineering?
2.4. What role does Paraview play?
DREAM 3D is helpful in materials science by:
ParaView plays the following roles:
• Analysing and quantifying complex mi-
• Visualizing and analysing large-scale scien-
crostructures.
tific data.

• Enabling interactive exploration of complex


• Visualizing and exploring 3D representations
datasets.
of materials.
• Leveraging parallel and distributed computing
for efficient processing.
• Predicting material properties based on mi-
crostructure. • 4.Integrating with simulation codes for direct
analysis of simulation results.

3. Literature Review
3.1. Overview of the User Interface where you can see and organize the filters that
DREAM.3D has 6 main sections of its user interface: are currently being used. It shows the order
in which the filters are applied. You can add
1. Pipeline View: The Pipeline View is a section filters by double-clicking on them or dragging

2
and dropping them from the Filter List or Filter the user can search for Filters based on the
Library. You can also rearrange the filters by display name, group name, subgroup name,
dragging and dropping them in different posi- branding name, or compiled library name.The
tions. For more detailed instructions on creat- Filter Library section organizes the Filters
ing pipelines, you can refer to the Creating a of DREAM.3D according to their group and
Pipeline section.[4] subgroup. The user can expand a specific
group (and possibly a subgroup) to expose
2. Filter Input View: The Filter Input View pro- the Filters. Filters are placed into groups and
vides a clear overview of the filter’s param- subgroups based on their functionality. This
eters, required inputs, generated outputs, and makes it easy to find Filters based on a desired
the resulting structure of the data after the fil- function. In general, the Filter group will cor-
ter has been executed.[4] respond to the Plugin that Filter resides in, but
this may not always be the case.[4]
3. Data Structure: The Data Structure tool
shows you the current organization of your 5. Pipeline Output The Pipeline Output Log
data in the pipeline. It includes all the data displays any output messages associated with
containers, attribute matrices, and data arrays GUI actions or Filters that are actively being
that are present in the pipeline’s data container used in the Pipeline View.[4]
array.[4]
6. Pipeline Issues Table The Pipeline Error Ta-
4. Filter List and Filter Library The Filter List ble displays any errors and/or warnings asso-
section organizes the Filters of DREAM.3D ciated with Filters that are actively being used
alphabetically by name. Using the search bar, in the Pipeline View.[4]

As shown in Figure 1,

Figure 1: (a)Overview of the User Interface

3.2. Data Structures: ogy and mesh structures. It’s a hierarchical structure
that helps represent complex information in a simple
According to the documentation [3], the data struc- and organized manner. Data Container Array: The
tures in DREAM.3D uses a special way to organize root node that holds all other objects. It can create
data that is based on ideas from combinatorial topol-

3
and retrieve objects within its hierarchy. ious types:
Data Container: Contains Attribute Matrices for Element Attribute Matrices: Hold attribute data
data related to specific geometries. directly associated with the features of the Geome-
Attribute Matrix: Stores Attribute Arrays, which try, categorized by the unit Element type.
hold raw data. The type of Attribute Matrix deter- Feature Attribute Matrices: Group Elements into
mines the hierarchy level it corresponds to. features and associate data with them.
Attribute Array: Holds data in memory using a flat Ensemble Attribute Matrices: Group features into
storage approach, which improves computational ef- ensembles and associate data with them.
ficiency.
3.2.2. Features and Ensembles:
Features and Ensembles are composed of Elements
3.2.1. Geometry: of the same unit Element type. Each Feature or En-
The Geometry object defines the spatial organization semble has associated Ids, which are used to link
of the data and is associated with Data Containers. them to lower levels in the hierarchy.
Geometries are categorized based on the topology of
their unit Element, which can be a point, line, poly- 3.2.3. Filters,Plugins and Pipeline:
gon, or polyhedron. Filters are self-contained functions in DREAM.3D
Data attributes can be associated with different types that modify the data structure. They can be com-
of Elements as long as it makes sense for the topol- bined into Pipelines, where the data flows through
ogy. For example, a triangle mesh can have attributes multiple Filters. Filters are organized into Plugins,
associated with vertices, edges, and faces but not which are collections of Filters with similar func-
cells. tionality. The Plugin library determines the location
Attribute Matrices organize data and can be of var- of Filters within the interface.

Figure 2: (a)Element Object (b)Feature Object (c)Ensemble Object

3.3. Creating and Building Pipeline: in the data structure has a unique name to avoid
conflicts. For example, you can’t have two objects
To create a Pipeline in DREAM.3D, you connect a with the same name at the same level in the data
series of Filters to process your data. Filters modify structure.[4]
the data structure step by step. Remember that the Building a Pipeline involves selecting and connect-
data is processed in place, so there’s only one copy ing Filters to perform specific tasks on your data.
in memory, reducing memory usage. However, this Imagine the Pipeline as a sequence of tubes, where
means the original data may be changed.[4] each Filter represents a piece of the tube. The data
When building the Pipeline, make sure each object flows through the Filters, which can modify, com-

4
press, or add to it.[4] Once you’ve completed the analysis, you may want
To build an effective Pipeline, understand the to export the modified data structure. DREAM.3D
DREAM.3D data structure and its ontology. Con- supports various file formats for exporting, including
sider the type of data you have (e.g., images or sur- its native .dream3d format based on HDF5, which al-
face meshes) and where the data is located on the lows easy data access.[4]
elements of the data structure. This determines the To streamline your workflow or share it with others,
appropriate Attribute Matrix to use.[4] save the Pipeline for future use. This helps main-
Start by reading data from a file to create the ini- tain a consistent workflow and allows you to reuse
tial data structure. Then, connect Filters to perform the Pipeline easily. Check the Saving and Opening
analyses and manipulations on the data. Filters can Pipelines section for more details on how to save and
analyze the data, group elements into features, cal- open Pipelines in DREAM.3D.[4]
culate sizes and shapes, and more.[4]

The Filters that we used in this experiment to create certain pipeline for 3D microstructure(REV) are
given below:

3.4. StatsGenerator: ing the Alpha and Beta parameters. The associated
plot provides a visual representation of object shapes
According to the documentation of [5] , this Filter
based on the superellipsoid class, showing the nor-
creates the arrays necessary to generate synthetic mi-
malized affine invariant as a function of the shape
crostructures. The StatsGenerator Filter was created
parameter.
to allow users to quickly generate a set of statistics
that can be used to create a synthetic microstructure.
Using this Filter, the user can generate the neces- 3.4.4. Shape Distribution Tab
sary statistics that describe a microstructure, with the
aid of visual plots of the statistics, and immediately The Shape Distribution Tab allows users to specify
use them in the Pipeline to generate a synthetic mi- the aspect ratios of the features using the alpha and
crostructure. The statistics data can also be saved to beta parameters of a beta distribution. These param-
a DREAM.3D file for later use. As shown in Figure eters control the distribution of aspect ratios and ul-
3. timately determine the shape characteristics of the
generated features.As shown in Figure 4.
3.4.1. Phase Properties:
The StatsGenerator GUI provides buttons to man- 3.4.5. ODF Tab:
age phases in the microstructure, allowing the user
to add, remove, or edit phase properties through the The ODF Tab enables users to control the crystal-
Phase Properties Manager. Parameters such as crys- lographic texture of the synthetic structure by enter-
tal structure, volume fraction, phase type, fraction ing specific orientations and weights or loading an-
of precipitate on boundary, and phase name can be gle data from a file. The calculated ODF and gen-
specified to accurately generate statistics for each erated pole figures provide visual representations of
phase. the texture for further analysis and inspection. De-
scribes the statistical distribution of crystallographic
3.4.2. Size Distribution Tab: orientations within a material. It provides informa-
tion about the preferred crystallographic orientations
The Size Distribution tab provides controls to define or texture present in the sample.
the size distribution of Features, including average
value, standard deviation, truncation, binning, and
initial defaults for correlated statistics. The Create 3.4.6. MDF Tab:
Data button is crucial to finalize the input and popu-
The MDF GUI allows users to manipulate and en-
late other tabs with default values.
hance specific misorientations in the generated mis-
orientation distribution function. By adding weights
3.4.3. Omega3 Tab: to desired angles and axes, users can customize the
The Omega3 tab allows users to control the mor- distribution to align with specific characteristics or
phological shape of the generated features by adjust- experimental observations.

5
3.5. Initialize Synthetic Volume tions, write out the goal attributes of the packed pre-
cipitates, and even read in a list of pre-defined pre-
According to the documentation of [10], the ”Initial- cipitates. The filter creates various shape description
ize Synthetic Volume” filter sets up the empty vol- arrays for each packed feature, including axis Euler
ume, Image Geometry, and necessary data structures angles, axis lengths, centroids, equivalent diameters,
required for generating a synthetic microstructure. neighborhoods, omega3 values, and volumes. These
Users can define the volume size, origin, and reso- arrays provide detailed information about the packed
lution, and estimate the number of features based on features and enable further analysis and evaluation.
specified statistics for further processing. As shown As shown in Figure 7.
in Figure 5.
3.8. Match Crystallography:
3.6. Establish Shape Types:
According to the documentation of [8],the ”Match
According to the documentation of [6],the ”Establish Crystallography” filter, found within the ”Synthetic
Shape Types” filter allows users to assign specific Building” group, aims to match a specified orienta-
shape types to ensembles in a synthetic structure. It tion distribution function (ODF) to a set of features
should be used before packing filters and after ini- in a synthetic microstructure. The filter employs an
tializing the synthetic volume. The available shape iterative algorithm that involves two processes: ran-
types include Ellipsoid, Super Ellipsoid, Cube Octa- domly swapping the orientation of a feature with a
hedron, Cylinder, and Unknown Shape Type. Ellip- new orientation sampled from the desired ODF, and
soid represents a rounded and symmetric shape, Su- randomly switching the orientations of two features.
per Ellipsoid allows for shape customization, Cube These operations are accepted if they reduce the er-
Octahedron combines a cube and an octahedron, and ror between the current ODF and misorientation dis-
Cylinder represents a cylindrical shape. The Un- tribution function (MDF) and the target ODF. The
known Shape Type is used for error detection and process continues for a user-defined number of it-
should not be used for normal synthetic structures. erations or until the texture functions are matched
This filter gives users control over the morphology within a specified precision. The filter helps align
of the generated synthetic structure. As shown in the crystallographic properties of the synthetic mi-
Figure 6. crostructure with the desired distribution. As shown
in Figure 9.
3.7. Pack Primary Phases:
3.9. Generate IPF Colors:
According to the documentation of [7],the ”Pack Pri-
mary Phases” filter is part of the ”Synthetic Build- According to the documentation of [9], IPF stands
ing” group and is used for packing precipitate fea- for Inverse Pole Figure. This filter generates IPF col-
tures in a synthetic microstructure. It places precip- ors, which are visual representations of crystal orien-
itate features based on their sizes, shapes, physical tations or orientations of individual elements within
orientations, and locations according to the speci- the data structure.As shown in Figure 10.
fied goal statistics. The packing process ensures that
the features do not overlap. The filter allows for 3.10. Write DREAM.3D Data File:
matching parameters such as fraction of precipitates This step involves writing the modified or processed
on a grain boundary, size distribution, volume frac- data structure to a DREAM.3D data file format. It
tion, orientation distribution, and radial distribution saves the changes made during the pipeline pro-
function. Users can choose periodic boundary condi- cess.As shown in Figure 11.

6
4. Procedure
• Opened the Stats Generator module and adjusted the parameters to create the desired size distribution
as shown in figure below:

Figure 3: Showing Stats Generator Window

• Clicked the ”Create data” button to generate initial distributions, including the omega3 distribution,
B/A and C/A axis ratios and Neighbor distribution. As shown in figure below:

Figure 4: (a) Showing Omega3 window (b) Showing B/A (c) Showing C/A (d) Showing Feature Neighbor

• Initialized the synthetic volume by setting up the necessary configurations. As shown in figure below

7
Figure 5: Showing Initialize synthetic Volume Window

• Created ellipsoid shapes using established shape types. As shown in figure below:

Figure 6: Showing Establishing shape types Window

• Configured the parameters for packing primary phases in the synthetic volume. As shown in figure
below:

8
Figure 7: Showing Packing Primary Phases Window

• Set the parameters for finding feature neighbors in the synthetic microstructure. As shown in figure
below:

Figure 8: Showing Feature Neighbors Window

• Configured the parameters for matching crystallography in the synthetic microstructure. As shown in
figure below:

9
Figure 9: Showing Matching Crystallography

• Set parameters for generating IPF colors to visualize orientation relationships. As shown in figure
below:

Figure 10: Showing Generating IPF colors

• Selected the file name and location to write the DREAM3D data file. Used the ”Write DREAM3D
Data File” function to save the synthetic microstructure. As shown in the figure below:

10
Figure 11: Showing Write Dream.3d file Window

• The file name “synthetic. Dream3d” was exported to Paraview. Then visualization was observed as
shown in the figure below:

Figure 12: Visualizing 3D microstructure in Para View

11
5. Discussion
DREAM3D software enables researchers in ma- the microstructure. Filters, organized into plugins,
terials science and engineering to analyze and simu- allow for the application of specific tasks on the data,
late complex microstructures. By creating a pipeline such as generating statistical metrics and manipulat-
of filters within DREAM3D, users can process and ing the microstructure. The resulting data can then
modify microstructural data to extract valuable in- be visualized and explored in ParaView, a power-
sights. The software’s hierarchical data structure ful open-source data analysis and visualization tool,
organizes data containers, attribute matrices, and at- further enhancing the understanding of material be-
tribute arrays, providing a comprehensive view of havior at a microscale.

6. Conclusion
The experiment aims to utilize DREAM3D software and ParaView to analyze, visualize, and modify mi-
crostructural data. The pipeline of filters in DREAM3D allows for efficient processing and analysis of the
data, while ParaView enables interactive exploration and visualization of the results. This combination of
tools and techniques is valuable in materials science and engineering for understanding the properties and
behavior of materials at a microscale.

References
[1] Introduction, Documentation and issues tracking. [Online]. Available at: https://github.com/
BlueQuartzSoftware/DREAM3D (Accessed: June 3, 2023).
[2] Introduction to Para view. [Online]. Available at: https://docs.paraview.org/en/latest/
UsersGuide/introduction.html (Accessed: June 3, 2023).
[3] DREAM.3D Data Structure. [Online]. Available at: http://dream3d.bluequartz.net/Help/1_
UsingDREAM3D/%5BA%5D_DataStructure/ (Accessed: June 3, 2023).
[4] Overview of the User interface(Dreamm3d). [Online]. Available at: http://dream3d.bluequartz.
net/Help/1_UsingDREAM3D/%5BB%5D_UserInterface/ (Accessed: June 3, 2023).
[5] StatsGenerator. [Online]. Available at: http://dream3d.bluequartz.net/Help/Filters/
SyntheticBuildingFilters/StatsGeneratorFilter/ (Accessed: June 3, 2023).
[6] Establish Shape Types. [Online]. Available at: http://dream3d.bluequartz.net/Help/Filters/
SyntheticBuildingFilters/StatsGeneratorFilter/ (Accessed: June 3, 2023).
[7] Pack Primary Phases. [Online]. Available at: http://dream3d.bluequartz.net/Help/Filters/
SyntheticBuildingFilters/PackPrimaryPhases/ (Accessed: June 3, 2023).
[8] Match Crystallography. [Online]. Available at: http://dream3d.bluequartz.net/Help/
Filters/SyntheticBuildingFilters/MatchCrystallography/ (Accessed: June 3, 2023).
[9] Generate IPF Colors. [Online]. Available at: http://dream3d.bluequartz.net/Help/Filters/
OrientationAnalysisFilters/GenerateIPFColors/#generate-ipf-colors (Accessed: June
3, 2023).
[10] Initialize Synthetic Volume. [Online]. Available at: http://dream3d.bluequartz.net/Help/
Filters/SyntheticBuildingFilters/InitializeSyntheticVolume/ (Accessed: June 3,
2023).

12

You might also like