Three dimensional grain share many of the properties of two dimensional grains, e.g. grains.meanOrientation
. However, the geometric properties are quite different. These are
grainSize |
number of pixels per grain |
volume in µm³ |
|
numFaces |
number boundary elements per grain |
surface area in µm² |
|
diameter in µm |
caliper |
not yet implemented |
|
perimeter of a circle with the same area |
radius of a circle with the same area |
||
perimeter / equivalent perimeter |
is it a boundary grain |
||
TODO |
TODO |
||
number neighboring grains |
list of boundary faces |
||
grains.V |
vertices |
the geometric center |
We start our discussion by importing some sample data set of three dimensional grains
Grain volume
The most basic properties are diameter, surface and volume. Those can be computed by
The units are µm, µm² and µm³. We may analyze the distribution of grains by grain volume using a histogram.
Note that in the above histogram all grains contribute equally independently of their size. We obtain a more realistic histogram if we do not plot the number of grains at the y-axis but its total volume. This can be achieved with the command histogram(grains)
.
Similarly, we can visualize the distribution of surface or diameter with respect to grain volume or number of grains.
We may also investigate the correlation between any properties using a scatter plot. Almost surely, we find a relationship between the grain diameter and the volume.
Ellipsoid Based Properties
Similarly as for two dimensional grains the command principalComponents
computes the principle axes a
, b
and c
of each grain. These can be interpreted as the half-axes of an ellipsoid fitted to the grain.
Lets use these half-axes to visualize the 3d-grains as ellipsoids colorized by the grain orientation. This is done using the command plotEllipsoid
Vertices, grain and surface centroids
Each grain has a set of vertices grains.V
and a centroid grains.centroid
. Furthermore, each grain boundary element has a centroid. Lets visualize those quantities.
Grain boundary properties
The grain boundary elements the have the following geometric properties
area |
area in µm² |
N |
normal direction |
diameter |
diameter in µm |
perimeter |
perimeter in µm |
curvature |
TODO |
||
grainId |
neighboring grain ids |
misorientation |
misorientation |
Let us first visualize the grain boundary normals