Expressions and Keys#
Mathematical and Logical Expressions#
Neper handles mathematical expressions thanks to the muparser library. The expression must contain no space, tab or newline characters, and match the following syntax. [1]
Functions#
The following table gives an overview of the functions supported by the default implementation. It lists the function names and a brief description.
Name |
Description |
|
sine function |
|
cosine function |
|
tangent function |
|
arc sine function |
|
arc cosine function |
|
arc tangent function |
|
hyperbolic sine function |
|
hyperbolic cosine function |
|
hyperbolic tangent function |
|
hyperbolic arc sine function |
|
hyperbolic arc cosine function |
|
hyperbolic arc tangent function |
|
logarithm to the base 2 |
|
logarithm to the base 10 |
|
logarithm to the base \(e\) (2.71828…) |
|
logarithm to the base \(e\) (2.71828…) |
|
e raised to the power of x |
|
square root of a value |
|
sign function: -1 if \(x<0\); 1 if \(x>0\) |
|
round to nearest integer |
|
absolute value |
|
min of all arguments |
|
max of all arguments |
|
sum of all arguments |
|
mean value of all arguments |
Binary Operators#
The following table lists the default binary operators supported by the parser.
Operator |
Description |
Priority |
|
logical and |
1 |
|
logical or |
2 |
|
less or equal |
4 |
|
greater or equal |
4 |
|
not equal |
4 |
|
equal |
4 |
|
greater than |
4 |
|
less than |
4 |
|
addition |
5 |
|
subtraction |
5 |
|
multiplication |
6 |
|
division |
6 |
|
raise x to the power of y |
7 |
Ternary Operators#
The parser has built-in support for the if-then-else operator. It uses lazy evaluation in order to make sure only the necessary branch of the expression is evaluated.
Operator |
Description |
|
if-then-else operator, following the C/C++ syntax: |
In the options that take string values (such as -morpho in a multiscale tessellation), the values must be enclosed in double quotes, as in (id==1)?"voronoi":"gg", and can include other ternaries, as in (id==1)?"voronoi":(id==2)?"gg":"centroidal".
Statistical Distributions#
The following table lists the statistical distributions. Custom endpoints (not indicated) can also be added as arguments, as described in the following.
Operator |
Description |
Information |
|
normal |
|
|
lognormal |
|
|
Dirac |
|
|
beta function |
\(x>0\), \(y>0\) |
|
Lorentzian |
|
|
Student’s t |
|
|
Weibull |
\(k > 0\) represents the shape |
|
Breit-Wigner |
\(<gamma> \geq 0\), default 1 |
|
exp-normal |
\(<gamma> > 0\), default \(<sigma>\) |
|
Moffat |
\(<gamma> > 0\), default 1 |
|
Pearson type VII |
default \(<gamma> = 1.5\) |
|
Pseudo-Voigt |
\(<gamma> \in [0,\,1]\), default 0.5 |
|
skewed normal |
default \(<gamma> = <sigma>\) |
|
custom |
<mean> represents the mean (or center), and <sigma> represents the standard deviation (or scale, \(> 0\)). <gamma> depends on the distribution function (see the above table). For all distributions but weibull and beta, custom endpoints can be added as last arguments, as <from_value>,<to_value>, where <from_value> is the lower endpoint and <to_value> is the upper endpoint. The parameter keywords do not need to be provided, but, when they are, the parameters can be given in any order, as in moffat(gamma=1,from=0,to=1,sigma=0.1,mean=0.5). Endpoints are considered inclusive by default, but exclusive endpoints can be specified using fromexclusive=<from_value> and toexclusive=<to_value> (frominclusive=<from_value> and toinclusive=<to_value> can be used for inclusive endpoints). String completion is available for the keywords. Finally, a sum of distributions of increasing averages can be provided, as in 0.3*lognormal(0.5,0.1)+0.7*normal(1,0.1).
Attention
When from and/or to are used, they should preferably be so that the distribution retains the same mean; otherwise, the distribution is shifted after truncation to match the specified mean.
In the case of the custom distribution, the numerical distribution must be provided in the file. The file must contain the x and y values of the distribution on successive lines. The x values must be provided in ascending order and form a regular grid. The distribution must contain at least 3 points and does not need to integrate to 1.
Tessellation Keys#
Available keys for a tessellation itself are provided below.
Key |
Descriptor |
Apply to |
|
dimension |
tess |
|
number of vertices |
tess |
|
number of edges |
tess |
|
number of faces |
tess |
|
number of polyhedra |
tess |
|
number of cells |
tess |
|
x coordinate |
tess |
|
y coordinate |
tess |
|
z coordinate |
tess |
|
minimum x coordinate |
tess |
|
minimum y coordinate |
tess |
|
minimum z coordinate |
tess |
|
maximum x coordinate |
tess |
|
maximum y coordinate |
tess |
|
maximum z coordinate |
tess |
|
length along x |
tess |
|
length along y |
tess |
|
length along z |
tess |
|
x, y and z coordinates |
tess |
|
surface area |
tess |
|
volume |
tess |
|
size (surface area/volume in 2D/3D) |
tess |
|
simulation step |
tess |
Available keys for tessellation seeds, vertices, edges, faces, polyhedra, crystals and cell groups are provided below. Also note that the keys apply to cells if they are tagged to apply to polyhedra and the tessellation is 3D, or to faces and the tessellation is 2D, and that keys apply to crystals if they apply to cells. You may also replace, in the tessellation keys themselves, poly by cell if the tessellation is 3D and face by cell if the tessellation is 2D (it applies only in rare cases). For example, for a 2D tessellation, you may use -statcell ncells instead of -statface nfaces. Keys specific to cells are defined accordingly in the following but also apply to polys if the tessellation is 3D and to faces if the tessellation is 2D. The keys of the cell of a seed are available for the seed by prefixing them with cell_ (e.g., cell_vol is the volume of the seed’s cell, and cell_x is the x coordinate of its centroid, while x is the x coordinate of the seed).
To turn a key value into a value relative to the mean over all entities (e.g. the relative cell size), append the key expression with the :rel modifier. To turn a key value into a value which holds for a unit cell size, append the key expression with the :uc modifier. To use as a reference only the body entities (see below), append b to the modifiers.
Key |
Descriptor |
Apply to |
|
identifier |
seed, ver, edge, face, poly, group |
|
x coordinate |
seed, ver, edge, face, poly |
|
y coordinate |
seed, ver, edge, face, poly |
|
z coordinate |
seed, ver, edge, face, poly |
|
x, y and z coordinates |
seed, ver, edge, face, poly |
|
minimum x coordinate |
edge, face, poly |
|
minimum y coordinate |
edge, face, poly |
|
minimum z coordinate |
edge, face, poly |
|
maximum x coordinate |
edge, face, poly |
|
maximum y coordinate |
edge, face, poly |
|
maximum z coordinate |
edge, face, poly |
|
Laguerre weight (width for a lamellar tessellation) |
seed, cell |
|
body level |
ver, edge, face, poly |
|
state |
ver, edge, face, poly |
|
type of domain (0 if on a domain vertex, 1 if on a domain edge and 2 if on a domain face) |
ver, edge, face |
|
domain face (-1 if undefined) |
face |
|
domain edge (-1 if undefined) |
edge |
|
domain vertex (-1 if undefined) |
ver |
|
scale |
ver, edge, face, poly, cell [2] |
|
length |
edge |
|
directional length along \((d_x,d_y,d_z)\) (in 2D, |
edge, face, poly |
|
surface area |
face, poly, group |
|
volume |
poly, group |
|
size (surface area/volume in 2D/3D) |
cell, group |
|
equivalent diameter [4] |
face, poly |
|
average equivalent diameter [4] |
poly |
|
equivalent radius (half of the eq. diameter) |
face, poly |
|
average equivalent radius (half of the eq. diameter) |
poly |
|
sphericity [5] |
poly |
|
circularity [6] |
face |
|
convexity [7] |
face (only for a 2D tessellation), poly |
|
average dihedral angle |
face, poly |
|
minimum dihedral angle |
face, poly |
|
maximum dihedral angle |
face, poly |
|
dihedral angles |
face, poly |
|
flatness fault (in degrees) |
face |
|
disorientation angle (in degrees) |
edge (in 2D), face (in 3D) |
|
cylinder polygonization [20] |
edge |
|
number of vertices |
edge, face, poly |
|
vertices |
edge, face, poly |
|
number of edges |
ver, face, poly |
|
edges |
ver, face, poly |
|
number of faces |
ver, edge, poly |
|
faces |
ver, edge, poly |
|
number of polyhedra |
ver, edge, face |
|
polyhedra |
ver, edge, face |
|
number of neighboring faces |
face |
|
neighboring faces |
face |
|
number of neighboring faces of the same domain (parent cell of a multiscale tessellation) |
face (in 2D) |
|
neighboring faces of the same domain (parent cell of a multiscale tessellation) |
face (in 2D) |
|
number of neighboring polyhedra |
poly |
|
neighboring polyhedra |
poly |
|
neighboring polyhedra, unsorted list |
poly |
|
number of neighboring polyhedra of the same domain (parent cell of a multiscale tessellation) |
poly |
|
neighboring polyhedra of the same domain (parent cell of a multiscale tessellation) |
poly |
|
vertex coordinates |
face, poly |
|
face surface areas |
poly |
|
face equations [10] |
poly |
|
number of neighboring seeds |
poly |
|
neighboring seeds [11] |
poly |
|
identifier of the corresponding cell at scale |
cell |
|
lamella width id [12] |
cell |
|
mode [13] |
cell |
|
group |
cell |
|
number of modes of the parent cells |
ver, edge, face (in 3D) |
|
number of groups of the parent cells |
ver, edge, face (in 3D) |
|
periodic (1 if periodic, 0 otherwise) |
ver, edge, face (in 3D) |
|
1 if in orientation fiber and 0 otherwise, see Orientation Fibers |
poly |
|
orientation, see Rotation and Orientation Descriptors |
face (in 2D), poly (in 3D) |
|
simulation step |
ver, edge, face, poly |
Variables consisting of several values (vers, etc.) are not available for sorting (option -sort).
For a cell, the body variable is defined as follows:
In the general case (
body, no argument provided), it is an integer equal to0if the cell is at the domain boundary, i.e. if it shares at least one face with it (edge in 2D), and is equal to1or higher otherwise. This is determined as follows: if a cell is surrounded by cells withbodyvalues equal to or higher thann, itsbodyvalue is equal ton + 1. Therefore,bodytends to increase with the distance to the domain boundary and can be used to define cells that may suffer from boundary effects.In the case where an expression is provided as argument (
body(<expr>)), the expression is a logical expression that defines the boundary to consider, from the domain face (edge in 2D) labels (for a cube,x0,x1,y0,y1,z0andz1). For example,body(z0||z1)considers only thez0andz1domain faces as the boundary, and the more exoticbody(x1&&y0||z1)considers only the intersection between thex1andy0domain faces, and thez1domain face as the boundary.
For entities of lower dimension than cells (vertices, edges and faces), body is equal to the maximum body value of the cells they belong to.
Raster Tessellation Keys#
Available keys for a raster tessellation itself are provided below.
Key |
Descriptor |
Apply to |
|
dimension |
tesr |
|
number of voxels in direction x |
tesr |
|
number of voxels in direction y |
tesr |
|
number of voxels in direction z |
tesr |
|
number of voxels in total |
tesr |
|
origin x coordinate |
tesr |
|
origin y coordinate |
tesr |
|
origin z coordinate |
tesr |
|
voxel size in direction x |
tesr |
|
voxel size in direction y |
tesr |
|
voxel size in direction z |
tesr |
|
raster size in direction x |
tesr |
|
raster size in direction y |
tesr |
|
raster size in direction z |
tesr |
|
raster size (surface area/volume in 2D/3D) |
tesr |
|
surface area |
tesr |
|
volume |
tesr |
|
size (surface area/volume in 2D/3D) |
tesr |
|
x coordinate |
tesr |
|
y coordinate |
tesr |
|
z coordinate |
tesr |
|
minimum x coordinate |
tesr |
|
minimum y coordinate |
tesr |
|
minimum z coordinate |
tesr |
|
maximum x coordinate |
tesr |
|
maximum y coordinate |
tesr |
|
maximum z coordinate |
tesr |
|
x, y and z coordinates |
tesr |
|
simulation step |
tesr |
Available keys for raster tessellation seeds, cells, cell groups and voxels are provided below. Mathematical and logical expressions based on these keys can also be used. To turn a key value into a value relative to the mean over all entities (e.g. the relative cell size), append the key expression with the :rel modifier. To turn a key value into a value which holds for a unit cell size, append the key expression with the :uc modifier.
General#
Key |
Descriptor |
Applies to |
|
identifier |
seed, cell, group, voxel |
|
cell |
voxel |
|
orientation is defined |
voxel |
|
Laguerre weight |
seed |
|
simulation step |
tesr |
Geometry#
Key |
Descriptor |
Applies to |
|
x coordinate |
seed, cell, voxel |
|
y coordinate |
seed, cell, voxel |
|
z coordinate |
seed, cell, voxel |
|
x, y and z coordinates |
seed, cell, voxel |
|
x coordinate (in voxel) |
voxel |
|
y coordinate (in voxel) |
voxel |
|
z coordinate (in voxel) |
voxel |
|
x, y and z coordinates (in voxel) |
voxel |
|
minimum x coordinate (in voxel) |
cell |
|
minimum y coordinate (in voxel) |
cell |
|
minimum z coordinate (in voxel) |
cell |
|
maximum x coordinate (in voxel) |
cell |
|
maximum y coordinate (in voxel) |
cell |
|
maximum z coordinate (in voxel) |
cell |
|
domain minimum x coordinate (in voxel), always 1 |
domain |
|
domain minimum y coordinate (in voxel), always 1 |
domain |
|
domain minimum z coordinate (in voxel), always 1 |
domain |
|
domain maximum x coordinate (in voxel) |
domain |
|
domain maximum y coordinate (in voxel) |
domain |
|
domain maximum z coordinate (in voxel) |
domain |
|
surface area |
cell, group (in 2D) |
|
volume |
cell, group (in 3D) |
|
size (surface area/volume in 2D/3D) |
cell, group |
|
number of voxels |
cell |
|
surface area fraction |
group (in 2D) |
|
volume fraction |
group (in 3D) |
|
size fraction (surface area/volume fraction in 2D/3D) |
group |
|
equivalent diameter [4] |
cell |
|
equivalent radius |
cell |
|
anisotropy factor |
cell |
|
convexity [7] |
cell |
Orientation#
Key |
Descriptor |
Applies to |
|
orientation, see Rotation and Orientation Descriptors |
voxel, cell |
|
grain orientation spread [8] |
cell |
|
orientation distribution anisotropy / principal angles [14] |
cell |
|
orientation distribution anisotropy / principal axes [14] |
cell |
|
orientation distribution anisotropy factor [14] |
cell |
|
orientation distribution anisotropy / principal delta angles [15] |
cell |
In oridisanisoaxes[_<csys>], the optional coordinate system can be set to ref for the reference (or sample) coordinate system or crys for the crystal coordinate system (default ref).
Tessellation Optimization Keys#
Time Keys#
The available keys for option -morphooptilogtime are provided below. Use iter(<factor>), where factor is an integer reduction factor, to log values only at specific iteration numbers.
Key |
Descriptor |
|
iteration number |
|
number of updated variables |
|
number of updated seeds |
|
list of updated seeds |
|
number of updated cells |
|
list of updated cells |
|
time for variable update |
|
time for seed update |
|
time for cell update initialization |
|
time for cell update kdtree computation |
|
time for cell update shift computation |
|
time for cell update neighbor computation |
|
time for cell update cell computation |
|
time for cell update others |
|
total time for cell update |
|
time for (objective function) value update |
|
time for (objective function) value update / initialization |
|
time for (objective function) value update / penalty computation |
|
time for (objective function) value update / value computation |
|
time for (objective function) value update / value computation / cell values |
|
time for (objective function) value update / value computation / computation |
|
time for (objective function) value update / computation |
|
total time |
|
cumulative total time |
Variable Keys#
The available keys for option -morphooptilogvar are provided below. Use iter(<factor>), where factor is an integer reduction factor, to log values only at specific iteration numbers.
Key |
Descriptor |
Apply to |
|
iteration number |
n/a |
|
identifier |
seed |
|
x coordinate |
seed |
|
y coordinate |
seed |
|
z coordinate |
seed |
|
Laguerre weight |
seed |
|
total cell error |
seed |
Objective Function Value Keys#
The available keys for option -morphooptilogval are provided below. Use iter(<factor>), where factor is an integer reduction factor, to log values only at specific iteration numbers.
Key |
Descriptor |
|
iteration number |
|
value |
|
minimal value |
|
value, without smoothing |
|
minimal value, without smoothing |
|
|
|
|
|
error on the objective function (see |
|
relative error on the objective function (see |
Statistical Distribution Keys#
The available keys for option -morphooptilogdis are provided below. PDF stands for probability density function and CDF stands for cumulative distribution function. Use iter(<factor>), where factor is a reduction factor, to log values only at specific iteration numbers.
Key |
Descriptor |
|
iteration number |
|
x coordinate |
|
target PDF |
|
target CDF |
|
current PDF |
|
current CDF |
|
target PDF, not smoothed |
|
target CDF, not smoothed |
|
current PDF, not smoothed |
|
current CDF, not smoothed |
Raster Tessellation Voxel Keys#
The available keys for option -morphooptilogtesr are provided below. Values are written for each voxel used to compute the objective function. Use iter(<factor>), where factor is a reduction factor, to log values only at specific iteration numbers.
Key |
Descriptor |
|
iteration number |
|
cell identifier |
|
x coordinate |
|
y coordinate |
|
z coordinate |
|
distance to the cell |
Orientation Optimization Keys#
Variable Keys#
The available keys for option -orioptilogvar are provided below. For all orientation descriptors but quaternion, the returned orientations are located in the fundamental region. Use iter(<factor>), where factor is an integer reduction factor, to log values only at specific iteration numbers.
Key |
Descriptor |
Apply to |
|
iteration number |
n/a |
|
identifier |
seed |
|
Rodrigues vector |
seed |
|
Euler angles (Bunge convention) |
seed |
|
Euler angles (Kocks convention) |
seed |
|
Euler angles (Roe convention) |
seed |
|
rotation matrix |
seed |
|
rotation axis / angle pair |
seed |
|
quaternion |
seed |
Objective Function Value Keys#
The available keys for option -orioptilogval are provided below.
Key |
Descriptor |
|
iteration number |
|
value |
|
minimal value |
Mesh Keys#
Available keys for a mesh itself are provided below. “co” stands for “cohesive”.
Key |
Descriptor |
Apply to |
|
element number |
{0-3}D,co mesh |
|
node number |
{0-3}D mesh |
|
elset number |
{0-3}D,co mesh |
|
partition number |
highest-dimension mesh |
|
x coordinate |
{0-3}D mesh |
|
y coordinate |
{0-3}D mesh |
|
z coordinate |
{0-3}D mesh |
|
x, y and z coordinates |
{0-3}D mesh |
|
length |
1D mesh |
|
surface area |
2D mesh |
|
volume |
3D mesh |
|
size (length/area/volume in 1D/2D/3D) |
{1-3}D mesh |
|
simulation step |
{0-3}D,co mesh |
Available keys for mesh nodes, elements and element sets (of all dimensions) and points are provided below. “co” stands for “cohesive”.
Key |
Descriptor |
Apply to |
|
identifier |
node, {0-3}D,co elt, {0-3}D,co elset |
|
x coordinate |
node, {0-3}D,co elt, {0-3}D elset |
|
y coordinate |
node, {0-3}D,co elt, {0-3}D elset |
|
z coordinate |
node, {0-3}D,co elt, {0-3}D elset |
|
x, y and z coordinates |
node, {0-3}D,co elt, 3D elset |
|
lowest parent elt dimension |
node |
|
0D elset |
0D elt |
|
1D elset |
1D elt |
|
2D elset |
2D elt |
|
3D elset |
3D elt |
|
cohesive elset |
co elt |
|
partition |
{1-3}D elt, node |
|
group |
{0-3}D elt, {0-3}D elset |
|
identifier of the corresponding tess cell at scale |
2D elset, 3D elset |
|
scale |
{0-2}D elset [3] |
|
cylinder polygonization [20] |
1D elt, 1D elset |
|
volume |
3D elt, 3D elset |
|
volume, orientation-space-wise [21] |
3D elt |
|
surface area |
2D elt |
|
equivalent diameter |
{2,3}D elt, {2,3}D elset |
|
equivalent radius |
{2,3}D elt, {2,3}D elset |
|
anisotropy factor |
{2,3}D elset |
|
average edge length |
{0-3}D elt, 1D elset |
|
edge lengths |
2D elt, 3D elt |
|
elset volume |
3D elt |
|
elset area |
2D elt |
|
elset length |
1D elt |
|
radius ratio |
3D elt |
|
average radius ratio |
3D elset |
|
min radius ratio |
3D elset |
|
max radius ratio |
3D elset |
|
Osize |
3D elset |
|
number of elements |
{0-3}D,co elset |
|
elements |
{0-3}D,co elset |
|
number of nodes |
{0-3}D,co elset |
|
nodes |
{0-3}D,co elset |
|
body level |
{0-3}D elt, {0-3}D elset |
|
body level, relative to the elset boundary |
{2,3}D elt |
|
type of domain [16] |
{0-2}D elt, {0-2}D elset |
|
closest point of the 2D mesh |
node, 3D elt |
|
distance to |
node, 3D elt |
|
vector to |
node, 3D elt |
|
outgoing normal vector at |
node, 3D elt |
|
periodic (1 if periodic, 0 otherwise) |
{0,1}D elt, 2D elt (in 3D), {0,1}D elset, 2D elset (in 3D) |
|
color in Rodrigues vector convention [17] |
node |
|
color in IPF convention, cubic symmetry [18] |
node |
|
color in IPF convention, hexagonal symmetry [18] |
node |
|
1 if in orientation fiber and 0 otherwise |
3D elt, 3D elset |
|
disorientation angle (in degrees) |
1D elt and elset (in 2D), 2D elt and elset (in 3D) |
|
grain orientation spread [8] |
3D elset |
|
grain orientation spread estimated from the ODF [8] |
3D elset |
|
orientation, see Rotation and Orientation Descriptors |
2D elt (in 2D), 2D elset (in 2D), 3D elt (in 3D), 3D elset (in 3D), node [19] |
|
simulation step |
{0-3}D,co mesh, {0-3}D,co elt and elset |
Variables beginning with 2dmesh are only available for statistics (options beginning with -stat of module -M); for elements, they apply to the centroids.
Point Keys#
Available keys for points are provided below.
Key |
Descriptor |
Apply to |
Requires |
|
identifier |
point |
|
|
x coordinate |
point |
|
|
y coordinate |
point |
|
|
z coordinate |
point |
|
|
cell |
point |
tessellation |
|
containing element |
point |
mesh |
|
containing elset |
point |
mesh |
|
coordinates of the closest point of the 2D mesh |
point |
3D mesh |
|
distance to |
point |
3D mesh |
|
vector to |
point |
3D mesh |
|
outgoing normal vector of the 2D mesh at |
point |
3D mesh |
Simulation Results#
A result of a Simulation Directory (.sim) can be invoked simply from its name. A component of a vector or tensor result can be invoked by appending the component to the name, as in coo1, stress11, etc. For a symmetric tensor (for which only 6 values are stored), t, both t<i><j> and t<j><i> are valid. The type of a result of the simulation directory is given by its definition file if it specifies one (see Simulation Directory (.sim)), and otherwise by its name, for the following results of known type: coo, disp, vel, rss, crss, slip, sliprate, rotrate, rotrate_spin and rotrate_slip (vectors); stress, strain, strain_el, strain_pl, defrate and defrate_pl (symmetric tensors); velgrad (non-symmetric tensor); spinrate (skew-symmetric tensor); ori (orientation); stress_eq, strain_eq, strain_el_eq, strain_pl_eq, defrate_eq, defrate_pl_eq, work, work_pl, workrate and workrate_pl (real values). The type of any other result is undefined. Such a result can be used if the operation does not depend on its type (in an expression, if it has a single column, or for mean, stddev or var), but its components, prval, prvect and <res>_eq are not available. Tessellation results can be obtained from the cell results, by averaging or other statistical treatments. Similarly, elset and mesh results can be obtained from the element results, by averaging or other statistical treatments.
Available results / keys for nodes are the following:
Key |
Descriptor |
Apply to |
|
displacement (computed from positions) |
node |
Available results / keys for elements are the following:
Key |
Descriptor |
Apply to |
|
equivalent value of |
elt, elset, mesh |
Available results / keys for element sets are the following:
Key |
Descriptor |
Apply to |
|
average orientation |
elset, mesh |
|
grain orientation spread [8] |
elset |
|
grain orientation spread computed from |
elset |
|
orientation distribution principal angles |
elset, mesh |
|
orientation distribution principal axes |
elset, mesh |
|
orientation distribution factor |
elset, mesh |
|
ODF defined at elements of orientation space (see also below) |
tess, tesr, mesh, cell, elt, elset |
|
ODF defined at nodes of orientation space (see also below) |
tess, tesr, mesh |
|
“Texture index” of the ODF |
tess, tesr, mesh, cell |
|
“Texture index” of the (nodal) ODF |
tess, tesr, mesh, cell |
|
|
mesh |
|
|
mesh |
The ODF (odf or odfn) of a tessellation or mesh is computed over orientation space (provided using -orispace) from the orientations of the (tessellation) cells or (mesh) elsets. It is not available for the triclinic crystal symmetry. The (optional) parameters are:
input: the input used for the orientations, eitherelsetsoreltsfor a mesh (defaultelsets);theta: the standard deviation of the kernel (in degrees);weight: the weight of a cell or elset, which can be a real value,file(<file_name>)to load values from a file, or an expression based on the Tessellation Keys (for cells) or Mesh Keys (for elsets); by default, the volumes of the cells or elsets are used;clustering: a logical value controlling orientation clustering, which can be0(for no clustering) or1(for clustering); the default is0for cells or elsets and1for voxels or elements;cutoff: the cut-off factor used to compute the ODF, which can beall(for no cut-off) or any positive real value (default5).
For a cell, element or elset, odf returns the value of the ODF of the tessellation or mesh at the corresponding orientation (and simulation step).
The “texture index”, odfindex, is defined as \(\sqrt{\frac{n_c}{\pi^2}\int_g \left(f(g) - 1\right)^2 \hbox{d}g}\), where \(n_c\) is the orientation multiplicity and \(\pi^2\) is the volume of orientation space.
The orifield and orifieldn of a mesh are computed over orientation space (provided using -orispace) from the values of the (mesh) elsets. The mandatory parameter is:
var: the variable, which must be defined for elsets (i.e., have its files in the simulation directory);
and the optional parameters are:
theta: the standard deviation of the kernel (in degrees);weight: the weight of an elset, which can be a real value or an expression based on the Mesh Keys (for elsets); by default, the volumes of the elsets are used.
Rotations and Orientations#
Rotation and Orientation Descriptors#
Rotations and orientations can be described using the following descriptors.
Key |
Descriptor |
Number of parameters |
|
name (see Ideal Orientations) |
1 |
|
Rodrigues vector |
3 |
|
Euler angles (Bunge convention) |
3 |
|
Euler angles (Kocks convention) |
3 |
|
Euler angles (Roe convention) |
3 |
|
rotation matrix |
9 |
|
rotation axis / angle pair |
4 |
|
quaternion |
4 |
The convention can be added to the descriptor, either active or passive, as in rodrigues:active. When no convention is provided, passive is assumed.
Some options can take parameter values as argument, in which case the orientation must be expressed as <descriptor>(<parameter1>,<parameter2>,...). An example is rodrigues(0.1,0.2,0.3).
Orientation Convention#
The crystal coordinate systems are attached to the crystal lattice as illustrated below, in the case of cubic and hexagonal symmetries:
The so-called “passive” orientation convention is used by default, which is based on the rotation of the sample coordinate system into the crystal coordinate system. Under this convention, the values of all Rotation and Orientation Descriptors are provided below for a simple (but representative) configuration that corresponds to a rotation of 30° about \(X_s\):
Descriptor |
Value (angles in degrees) |
Rodrigues vector |
\((0.267949192,\,0,\,0)\) |
Euler angles (Bunge convention) |
\((0,\,30,\,0)\) |
Euler angles (Kocks convention) |
\((270,\,30,\,90)\) |
Euler angles (Roe convention) |
\((270,\,30,\,90)\) |
rotation matrix |
\(\left(\begin{array}{ccc}1 & 0 & 0 \\ 0 & 0.866025404 & 0.5 \\ 0 & -0.5 & 0.866025404\\\end{array}\right)\) |
rotation axis / angle pair |
\((1,\,0,\,0) / 30\) |
quaternion |
\((0.965925826,\,0.258819045,\,0,\,0)\) |
The values of the orientation descriptors under the “active” convention are obtained by taking the opposite rotation.
Ideal Orientations#
Keys are available for ideal orientations (lowercase keys are also accepted):
Key |
Miller indices |
|
\((0\,0\,1)[1\,0\,0]\) |
|
\((0\,1\,1)[1\,0\,0]\) |
|
\((1\,0\,1)[\overline{1}\,0\,1]\) |
|
\((0\,0\,1)[1\,\overline{1}\,0]\) |
|
\((1\,2\,3)[6\,3\,\overline{4}]\) |
|
\((\overline{1}\,2\,3)[6\,\overline{3}\,4]\) |
|
\((1\,\overline{2}\,3)[6\,\overline{3}\,\overline{4}]\) |
|
\((\overline{1}\,\overline{2}\,3)[6\,3\,4]\) |
|
\((1\,1\,0)[1\,\overline{1}\,2]\) |
|
\((\overline{1}\,1\,0)[1\,1\,\overline{2}]\) |
|
\((1\,1\,2)[1\,1\,\overline{1}]\) |
|
\((\overline{1}\,1\,2)[1\,\overline{1}\,1]\) |
When loading orientations from an external file, use file(<file_name>[,des=<descriptor>]) where the orientation descriptor is among those listed above and is rodrigues:passive by default.
Special Orientations#
Keys are available for special orientations, which do not represent single orientations (in contrast with Ideal Orientations), but continuous orientation sets:
Key |
Description |
|
\(\alpha\), partial \((1\,1\,0)\|\hbox{Z}\) fiber (\(\pm45°\) about Goss) |
|
\(\alpha\), partial \((1\,1\,0)\|\hbox{Z}\) fiber (\(\pm45°\) about U) |
|
\(\alpha\), full \((1\,1\,0)\|\hbox{Z}\) fiber |
|
\(\beta\) partial fiber |
|
bent \(\beta\) partial fiber (through Brass, S and Copper, which are not aligned) |
When loading special orientations from an external file, use file(<file_name>,des=label).
Orientation Fibers#
Orientation fibers are defined by a crystal direction being parallel to a sample direction. Depending on the context, an angular tolerance or distribution with respect to the theoretical fiber can also be defined:
fiber(<dirc_x>,<dirc_y>,<dirc_z>,<dirs_x>,<dirs_y>,<dirs_z>), where (<dirc_x>,<dirc_y>,<dirc_z>) is the crystal direction and (<dirs_x>,<dirs_y>,<dirs_z>) is the sample direction, corresponds to an ideal orientation fiber;fiber(<dirc_x>,<dirc_y>,<dirc_z>,<dirs_x>,<dirs_y>,<dirs_z>,<theta>), where<theta>is an angle expressed in degrees, corresponds to an orientation fiber with the angular tolerance<theta>from the ideal fiber;fiber(<dirc_x>,<dirc_y>,<dirc_z>,<dirs_x>,<dirs_y>,<dirs_z>):normal(<var>=<val>), where<var>can bethetaorthetamand<val>is the value, corresponds to an orientation fiber with a normal (Gaussian) distribution about the ideal fiber.
Crystal Symmetries#
Crystal symmetries can be described using the following descriptors.
Key |
Descriptor |
Number of operators |
|
triclinic (Laue group \(\overline{1}\)) |
1 |
|
cubic (Laue group \(m\overline{3}m\)) |
24 |
|
hexagonal (Laue group \(6/mmm\)) |
12 |
|
Laue group \(\overline{1}\) |
1 |
|
Laue group \(2/m\) |
2 |
|
Laue group \(mmm\) |
4 |
|
Laue group \(4/m\) |
4 |
|
Laue group \(4/mmm\) |
8 |
|
Laue group \(\overline{3}\) |
3 |
|
Laue group \(\overline{3}m\) |
6 |
|
Laue group \(6/m\) |
6 |
|
Laue group \(6/mmm\) |
12 |
|
Laue group \(m\overline{3}\) |
12 |
|
Laue group \(m\overline{3}m\) |
24 |
Colors and Color Maps#
Colors#
The available colors are provided below, with their corresponding RGB channel values (ranging from 0 to 255). Any other color can be defined from the RGB channel values, in the format <R_value>:<G_value>:<B_value>. Manim colors are available and prefixed manim. “Highlighting” colors are provided as hl1, hl2 and hl3.
Key |
RGB value |
|
(0, 0, 0) |
|
(255, 0, 0) |
|
(0, 255, 0) |
|
(0, 0, 255) |
|
(255, 255, 0) |
|
(255, 0, 255) |
|
(0, 255, 255) |
|
(255, 255, 255) |
|
(128, 0, 0) |
|
(0, 0, 128) |
|
(127, 255, 0) |
|
(0, 255, 127) |
|
(128, 128, 0) |
|
(128, 0, 128) |
|
(0, 128, 128) |
|
(128, 128, 128) |
|
(0, 191, 255) |
|
(124, 252, 0) |
|
(64, 64, 64) |
|
(255, 69, 0) |
|
(192, 192, 192) |
|
(255, 250, 250) |
|
(139, 0, 0) |
|
(0, 0, 139) |
|
(255, 140, 0) |
|
(240, 255, 255) |
|
(248, 248, 255) |
|
(255, 255, 240) |
|
(0, 0, 205) |
|
(255, 182, 193) |
|
(245, 255, 250) |
|
(75, 0, 130) |
|
(240, 128, 128) |
|
(255, 192, 203) |
|
(255, 127, 80) |
|
(250, 128, 114) |
|
(255, 250, 240) |
|
(127, 255, 212) |
|
(255, 250, 205) |
|
(255, 215, 0) |
|
(0, 100, 0) |
|
(255, 165, 0) |
|
(240, 248, 255) |
|
(224, 255, 255) |
|
(255, 255, 224) |
|
(139, 0, 139) |
|
(0, 139, 139) |
|
(205, 133, 63) |
|
(70, 130, 180) |
|
(255, 240, 245) |
|
(255, 245, 238) |
|
(0, 250, 154) |
|
(72, 61, 139) |
|
(184, 134, 11) |
|
(255, 160, 122) |
|
(255, 228, 196) |
|
(135, 206, 250) |
|
(250, 250, 210) |
|
(240, 255, 240) |
|
(255, 248, 220) |
|
(255, 218, 185) |
|
(245, 245, 245) |
|
(255, 99, 71) |
|
(112, 128, 144) |
|
(255, 105, 180) |
|
(253, 245, 230) |
|
(255, 235, 205) |
|
(189, 183, 107) |
|
(255, 228, 181) |
|
(0, 206, 209) |
|
(60, 179, 113) |
|
(199, 21, 133) |
|
(238, 130, 238) |
|
(173, 255, 47) |
|
(255, 239, 213) |
|
(143, 188, 143) |
|
(188, 143, 143) |
|
(255, 20, 147) |
|
(139, 69, 19) |
|
(148, 0, 211) |
|
(30, 144, 255) |
|
(119, 136, 153) |
|
(222, 184, 135) |
|
(255, 222, 173) |
|
(250, 240, 230) |
|
(123, 104, 238) |
|
(64, 224, 208) |
|
(135, 206, 235) |
|
(72, 209, 204) |
|
(245, 245, 220) |
|
(255, 228, 225) |
|
(210, 180, 140) |
|
(250, 235, 215) |
|
(216, 191, 216) |
|
(50, 205, 50) |
|
(233, 150, 122) |
|
(176, 196, 222) |
|
(65, 105, 225) |
|
(152, 251, 152) |
|
(220, 20, 60) |
|
(245, 222, 179) |
|
(186, 85, 211) |
|
(230, 230, 250) |
|
(240, 230, 140) |
|
(144, 238, 144) |
|
(175, 238, 238) |
|
(47, 79, 79) |
|
(153, 50, 204) |
|
(46, 139, 87) |
|
(154, 205, 50) |
|
(138, 43, 226) |
|
(219, 112, 147) |
|
(107, 142, 35) |
|
(147, 112, 219) |
|
(244, 164, 96) |
|
(85, 107, 47) |
|
(102, 205, 170) |
|
(106, 90, 205) |
|
(238, 232, 170) |
|
(34, 139, 34) |
|
(25, 25, 112) |
|
(32, 178, 170) |
|
(211, 211, 211) |
|
(218, 112, 214) |
|
(100, 149, 237) |
|
(160, 82, 45) |
|
(178, 34, 34) |
|
(176, 224, 230) |
|
(205, 92, 92) |
|
(105, 105, 105) |
|
(173, 216, 230) |
|
(210, 105, 30) |
|
(165, 42, 42) |
|
(218, 165, 32) |
|
(220, 220, 220) |
|
(221, 160, 221) |
|
(95, 158, 160) |
|
(0, 0, 0) |
|
(88, 196, 221) |
|
(199, 233, 241) |
|
(156, 220, 235) |
|
(88, 196, 221) |
|
(41, 171, 202) |
|
(35, 107, 142) |
|
(34, 34, 34) |
|
(34, 34, 34) |
|
(35, 107, 142) |
|
(139, 69, 19) |
|
(68, 68, 68) |
|
(68, 68, 68) |
|
(240, 172, 95) |
|
(247, 199, 151) |
|
(249, 183, 117) |
|
(240, 172, 95) |
|
(225, 161, 88) |
|
(199, 141, 70) |
|
(136, 136, 136) |
|
(221, 221, 221) |
|
(187, 187, 187) |
|
(115, 99, 87) |
|
(136, 136, 136) |
|
(68, 68, 68) |
|
(34, 34, 34) |
|
(131, 193, 103) |
|
(201, 226, 174) |
|
(166, 207, 140) |
|
(131, 193, 103) |
|
(119, 176, 93) |
|
(105, 156, 82) |
|
(136, 136, 136) |
|
(221, 221, 221) |
|
(187, 187, 187) |
|
(115, 99, 87) |
|
(136, 136, 136) |
|
(68, 68, 68) |
|
(34, 34, 34) |
|
(221, 221, 221) |
|
(221, 221, 221) |
|
(205, 133, 63) |
|
(187, 187, 187) |
|
(187, 187, 187) |
|
(220, 117, 205) |
|
(52, 52, 52) |
|
(82, 88, 147) |
|
(135, 194, 165) |
|
(224, 122, 95) |
|
(236, 231, 226) |
|
(197, 95, 115) |
|
(236, 171, 193) |
|
(236, 146, 171) |
|
(197, 95, 115) |
|
(162, 77, 97) |
|
(148, 66, 79) |
|
(255, 134, 47) |
|
(209, 71, 189) |
|
(0, 0, 255) |
|
(0, 255, 0) |
|
(255, 0, 0) |
|
(154, 114, 172) |
|
(202, 163, 232) |
|
(177, 137, 198) |
|
(154, 114, 172) |
|
(113, 85, 130) |
|
(100, 65, 114) |
|
(252, 98, 85) |
|
(247, 161, 163) |
|
(255, 128, 128) |
|
(252, 98, 85) |
|
(230, 90, 76) |
|
(207, 80, 68) |
|
(92, 208, 179) |
|
(172, 234, 215) |
|
(118, 221, 192) |
|
(92, 208, 179) |
|
(85, 193, 167) |
|
(73, 168, 143) |
|
(255, 255, 255) |
|
(255, 255, 0) |
|
(255, 241, 182) |
|
(255, 234, 148) |
|
(255, 255, 0) |
|
(244, 211, 69) |
|
(232, 193, 28) |
|
(38, 139, 172) |
|
(217, 93, 93) |
|
(93, 170, 104) |
Color Maps#
Color Map for Integer Values#
The color map or palette used to represent integer values is defined from the above color list, by excluding colors of brightness below 0.2 and above 0.8. The brightness is defined as the average of the channel values divided by 255. The resulting list of colors is: (1) red, (2) green, (3) blue, (4) yellow, (5) magenta, (6) cyan, (7) chartreuse, (8) springgreen, (9) olive, (10) purple, (11) teal, (12) gray, (13) deepskyblue, (14) lawngreen, (15) darkgray, (16) orangered, (17) silver, (18) darkorange, (19) mediumblue, (20) indigo, (21) lightcoral, (22) coral, (23) salmon, (24) aquamarine, (25) gold, (26) orange, (27) darkmagenta, (28) darkcyan, (29) peru, (30) steelblue, (31) mediumspringgreen, (32) darkslateblue, (33) darkgoldenrod, (34) lightsalmon, (35) lightskyblue, (36) tomato, (37) slategray, (38) hotpink, (39) darkkhaki, (40) darkturquoise, (41) mediumseagreen, (42) mediumvioletred, (43) violet, (44) greenyellow, (45) darkseagreen, (46) rosybrown, (47) deeppink, (48) saddlebrown, (49) darkviolet, (50) dodgerblue, (51) lightslategray, (52) burlywood, (53) mediumslateblue, (54) turquoise, (55) skyblue, (56) mediumturquoise, (57) tan, (58) limegreen, (59) darksalmon, (60) lightsteelblue, (61) royalblue, (62) palegreen, (63) crimson, (64) mediumorchid, (65) khaki, (66) lightgreen, (67) darkslategray, (68) darkorchid, (69) seagreen, (70) yellowgreen, (71) blueviolet, (72) palevioletred, (73) olivedrab, (74) mediumpurple, (75) sandybrown, (76) darkolivegreen, (77) mediumaquamarine, (78) slateblue, (79) forestgreen, (80) midnightblue, (81) lightseagreen, (82) orchid, (83) cornflowerblue, (84) sienna, (85) firebrick, (86) indianred, (87) dimgray, (88) chocolate, (89) brown, (90) goldenrod, (91) plum and (92) cadetblue.
Color Maps for Real Values#
The color map used to represent real values is smooth and obtained by interpolation between nominal colors. Tinycolormap is used to generate standard color maps, and the default is viridis. The color maps are
Key |
Color bar |
viridis |
|
cividis |
|
magma |
|
inferno |
|
plasma |
|
parula |
|
heat |
|
hot |
|
jet |
|
gray |
|
github |
|
Alternatively, a custom color map can be provided as custom(<color1>,<color2>,...). Neper’s legacy color map (version \(< 4\)) is custom(blue,cyan,yellow,green) and can also be obtained using legacy:
legacy |
|
Finally, it is possible to gradually fade the start of a color map, to make it start with white. This can be done using the fade modifier, following the syntax <colormap>:fade[(threshold)]. The threshold ranges from 0 to 1 and is equal to 0.1 by default. Fading is applied linearly from 0 (full fading) to the threshold (no fading). Examples are shown below:
viridis:fade |
|
viridis:fade(0.2) |
|
Orilib Commands#
The commands of the orilib program (see Orilib Program) are provided below. The angles are in degrees, unless stated otherwise, and the Euler angles follow the Bunge convention.
Command |
Description |
|---|---|
|
preferred crystallographically related orientation (Rodrigues vector) |
|
converts a Rodrigues vector into a rotation matrix |
|
converts a Rodrigues vector into a quaternion |
|
converts a Rodrigues vector into a rotation axis / angle pair |
|
same as ol_R_rtheta, with angles in radians |
|
number of crystallographically related orientations of a crystal symmetry |
|
number of values of an orientation descriptor (given by name) |
|
converts Euler angles from degrees into radians |
|
brings Euler angles into their standard ranges |
|
same as ol_e_e, with angles in radians |
|
preferred crystallographically related orientation (Euler angles) |
|
equivalent Euler angles in [0, 90]³ under crystal and orthotropic sample symmetries (cubic symmetry) |
|
same as ol_e_ecrysym_orthotropic, with angles in radians |
|
same as ol_e_ecrysym, with angles in radians |
|
converts Euler angles into Euler angles (Kocks convention) |
|
same as ol_e_ek, with angles in radians |
|
converts Euler angles into Euler angles (Roe convention) |
|
same as ol_e_er, with angles in radians |
|
converts Euler angles into a rotation matrix |
|
same as ol_e_g, with angles in radians |
|
converts Euler angles into a quaternion |
|
same as ol_e_q, with angles in radians |
|
converts Euler angles from radians into degrees |
|
unit vector of an equal-area projection (polar coordinates) |
|
same as ol_eaproj_vect, with angles in radians |
|
unit vector of an equal-area projection (Cartesian coordinates) |
|
converts Euler angles (Kocks convention) into Euler angles |
|
same as ol_ek_e, with angles in radians |
|
converts Euler angles (Roe convention) into Euler angles |
|
same as ol_er_e, with angles in radians |
|
converts a rotation matrix into a Rodrigues vector |
|
crystallographically related orientation (rotation matrix) of given index |
|
expresses a rotation matrix in a new coordinate system |
|
converts a rotation matrix into Euler angles |
|
same as ol_g_e, with angles in radians |
|
disorientation angle between two orientations (rotation matrices) |
|
disorientation angle between two orientations (rotation matrices), with orthotropic sample symmetry |
|
same as ol_g_g_disori_orthotropic, with angles in radians |
|
same as ol_g_g_disori, with angles in radians |
|
combination of two rotation matrices (current coordinate systems) |
|
same as ol_g_g_g |
|
combination of two rotation matrices (reference coordinate system) |
|
disorientation (rotation matrix) between two orientations (reference coordinate system) |
|
disorientation (rotation matrix) between two orientations (coordinate system of crystal 1) |
|
disorientation (rotation matrix) between two orientations, with orthotropic sample symmetry |
|
same as ol_g_g_gdisori |
|
misorientation (rotation matrix) between two orientations (reference coordinate system) |
|
misorientation (rotation matrix) between two orientations (coordinate system of crystal 1) |
|
misorientation (rotation matrix) between two orientations, with orthotropic sample symmetry |
|
same as ol_g_g_gmisori |
|
misorientation angle between two orientations (rotation matrices) |
|
misorientation angle between two orientations (rotation matrices), with orthotropic sample symmetry |
|
same as ol_g_g_misori_orthotropic, with angles in radians |
|
same as ol_g_g_misori, with angles in radians |
|
preferred crystallographically related orientation (rotation matrix) |
|
converts a rotation matrix into a homochoric vector |
|
inverse of a rotation matrix |
|
same as ol_g_ipf_eaproj, in the standard triangle (crystal symmetry) |
|
same as ol_g_ipf_crysym_eaproj, with angles in radians |
|
same as ol_g_ipf_eaprojxy, in the standard triangle (crystal symmetry) |
|
same as ol_g_ipf_stproj, in the standard triangle (crystal symmetry) |
|
same as ol_g_ipf_crysym_stproj, with angles in radians |
|
same as ol_g_ipf_stprojxy, in the standard triangle (crystal symmetry) |
|
equal-area projection in a inverse pole figure of an orientation (rotation matrix), polar coordinates |
|
same as ol_g_ipf_eaproj, with angles in radians |
|
equal-area projection in a inverse pole figure of an orientation (rotation matrix), Cartesian coordinates |
|
stereographic projection in a inverse pole figure of an orientation (rotation matrix), polar coordinates |
|
same as ol_g_ipf_stproj, with angles in radians |
|
stereographic projection in a inverse pole figure of an orientation (rotation matrix), Cartesian coordinates |
|
logarithm of a rotation matrix |
|
converts a rotation matrix into Miller indices (several solutions, with their qualities) |
|
prints a rotation matrix on a single line |
|
equal-area projection in a pole figure of an orientation (rotation matrix), polar coordinates |
|
same as ol_g_pf_eaproj, with angles in radians |
|
equal-area projection in a pole figure of an orientation (rotation matrix), Cartesian coordinates |
|
stereographic projection in a pole figure of an orientation (rotation matrix), polar coordinates |
|
same as ol_g_pf_stproj, with angles in radians |
|
stereographic projection in a pole figure of an orientation (rotation matrix), Cartesian coordinates |
|
converts a rotation matrix into a quaternion |
|
converts a rotation matrix into a rotation axis |
|
expresses an orientation (rotation matrix) in a new reference coordinate system |
|
symmetrical orientation (rotation matrix) with respect to a sample plane |
|
disorientation (rotation matrix) between an orientation and a sample plane (cubic symmetry) |
|
symmetrical orientations (rotation matrix) for monoclinic sample symmetry |
|
distinct symmetrical orientations (rotation matrix) for orthotropic sample symmetry |
|
the 4 symmetrical orientations (rotation matrix) for orthotropic sample symmetry |
|
converts a rotation matrix into a rotation axis / angle pair |
|
same as ol_g_rtheta, with angles in radians |
|
converts a rotation matrix into a rotation angle |
|
same as ol_g_theta, with angles in radians |
|
rotation of a vector by a rotation matrix |
|
unit vector of a four-index pole (hexagonal) |
|
orientation (rotation matrix) of a given inverse pole figure stereographic projection |
|
orientation (quaternion) of a given inverse pole figure stereographic projection |
|
color of standard triangle weights |
|
converts an orientation label into a rotation matrix |
|
converts an orientation label into a quaternion |
|
rotation matrix of a given logarithm |
|
quaternion of a given logarithm |
|
crystallographically related orientation (Miller indices) of given index (cubic symmetry) |
|
converts Miller indices into a rotation matrix |
|
preferred crystallographically related orientation (Miller indices, cubic symmetry) |
|
converts Miller indices into a quaternion |
|
symmetrical orientation (Miller indices) with respect to a sample plane |
|
symmetrical orientations (Miller indices) for monoclinic sample symmetry |
|
distinct symmetrical orientations (Miller indices) for orthotropic sample symmetry |
|
Euler angles from 3 numbers in [0, 1] (uniform distribution) |
|
same as ol_nb_e, with angles in radians |
|
rotation axis / angle pair with an angle lower than a maximum value from 3 numbers in [0, 1] (orientation spread) |
|
rotation axis / angle pair with an angle lower than a maximum value from 3 numbers in [0, 1] (misorientation distribution) |
|
same as ol_nb_max_rtheta_mis, with angles in radians |
|
same as ol_nb_max_rtheta, with angles in radians |
|
rotation angle lower than a maximum value from a number in [0, 1] (orientation spread) |
|
rotation angle lower than a maximum value from a number in [0, 1] (misorientation distribution) |
|
same as ol_nb_max_theta_mis, with angles in radians |
|
same as ol_nb_max_theta, with angles in radians |
|
rotation axis from 2 numbers in [0, 1] (uniform distribution) |
|
crystallographically related pole of given index (cubic symmetry) |
|
preferred crystallographically related pole |
|
unit vector of a pole |
|
distinct poles of a pole family |
|
converts a quaternion into a Rodrigues vector |
|
amplitudes of an orientation (quaternion) along principal axes |
|
crystallographically related orientation (quaternion) of given index |
|
same as ol_q_crysym, without making the quaternion positive |
|
expresses a quaternion in a new coordinate system |
|
converts a quaternion into an orientation descriptor (given by name) |
|
converts a quaternion into Euler angles |
|
same as ol_q_e, with angles in radians |
|
converts a quaternion into a rotation matrix |
|
converts a quaternion into a rotation matrix, written on a single line |
|
converts a quaternion into a homochoric vector |
|
inverse of a quaternion |
|
same as ol_q_ipf_eaproj, in the standard triangle (crystal symmetry) |
|
same as ol_q_ipf_crysym_eaproj, with angles in radians |
|
same as ol_q_ipf_eaprojxy, in the standard triangle (crystal symmetry) |
|
same as ol_q_ipf_stproj, in the standard triangle (crystal symmetry) |
|
same as ol_q_ipf_crysym_stproj, with angles in radians |
|
same as ol_q_ipf_stprojxy, in the standard triangle (crystal symmetry) |
|
equal-area projection in a inverse pole figure of an orientation (quaternion), polar coordinates |
|
same as ol_q_ipf_eaproj, with angles in radians |
|
equal-area projection in a inverse pole figure of an orientation (quaternion), Cartesian coordinates |
|
stereographic projection in a inverse pole figure of an orientation (quaternion), polar coordinates |
|
same as ol_q_ipf_stproj, with angles in radians |
|
stereographic projection in a inverse pole figure of an orientation (quaternion), Cartesian coordinates |
|
1 if a quaternion is a special orientation, 0 otherwise |
|
1 if a quaternion is the uniform distribution, 0 otherwise |
|
label of a special orientation (quaternion) |
|
logarithm of a quaternion |
|
converts a quaternion into Miller indices (several solutions, with their qualities) |
|
equal-area projection in a pole figure of an orientation (quaternion), polar coordinates |
|
same as ol_q_pf_eaproj, with angles in radians |
|
equal-area projection in a pole figure of an orientation (quaternion), Cartesian coordinates |
|
stereographic projection in a pole figure of an orientation (quaternion), polar coordinates |
|
same as ol_q_pf_stproj, with angles in radians |
|
stereographic projection in a pole figure of an orientation (quaternion), Cartesian coordinates |
|
makes a quaternion positive |
|
disorientation angle between two orientations (quaternions) |
|
faster disorientation angle (radians) between two orientations (quaternions, cubic symmetry) |
|
disorientation angle between two orientations (quaternions), with orthotropic sample symmetry |
|
same as ol_q_q_disori_orthotropic, with angles in radians |
|
same as ol_q_q_disori, with angles in radians |
|
misorientation angle between two orientations (quaternions) |
|
misorientation angle between two orientations (quaternions), with orthotropic sample symmetry |
|
same as ol_q_q_misori_orthotropic, with angles in radians |
|
same as ol_q_q_misori, with angles in radians |
|
combination of two quaternions (current coordinate systems) |
|
same as ol_q_q_q |
|
combination of two quaternions (reference coordinate system) |
|
disorientation (quaternion) between two orientations (reference coordinate system) |
|
disorientation (quaternion) between two orientations (coordinate system of crystal 1) |
|
disorientation (quaternion) between two orientations, with orthotropic sample symmetry |
|
same as ol_q_q_qdisori |
|
disorientation (quaternion) between two orientations, using a previous symmetry operator index |
|
misorientation (quaternion) between two orientations (reference coordinate system) |
|
misorientation (quaternion) between two orientations (coordinate system of crystal 1) |
|
misorientation (quaternion) between two orientations, with orthotropic sample symmetry |
|
same as ol_q_q_qmisori |
|
preferred crystallographically related orientation (quaternion) |
|
preferred symmetrical orientation (quaternion) for orthotropic sample symmetry |
|
converts a quaternion into a rotation axis |
|
expresses an orientation (quaternion) in a new reference coordinate system |
|
symmetrical orientation (quaternion) with respect to a sample plane |
|
symmetrical orientations (quaternion) for monoclinic sample symmetry |
|
distinct symmetrical orientations (quaternion) for orthotropic sample symmetry |
|
the 4 symmetrical orientations (quaternion) for orthotropic sample symmetry |
|
disorientation (quaternion) between an orientation and a sample plane (cubic symmetry) |
|
converts a quaternion into a rotation axis / angle pair |
|
same as ol_q_rtheta, with angles in radians |
|
identifier of a special orientation (quaternion) |
|
converts a quaternion into a rotation angle |
|
same as ol_q_theta, with angles in radians |
|
rotation of a vector by a quaternion |
|
converts a rotation axis / angle pair into a Rodrigues vector |
|
same as ol_rtheta_R, with angles in radians |
|
converts a rotation axis / angle pair into a rotation matrix |
|
same as ol_rtheta_g, with angles in radians |
|
converts a rotation axis / angle pair into a quaternion |
|
same as ol_rtheta_q, with angles in radians |
|
brings the angle of a rotation axis / angle pair into [0, 180] |
|
same as ol_rtheta_rtheta, with angles in radians |
|
filtering of an orientation set (quaternions) |
|
iterative filtering of an orientation set (quaternions) |
|
label of a special orientation (identifier) |
|
quaternion of a special orientation (identifier) |
|
random orientations (Euler angles) |
|
same as ol_srand_e, with angles in radians |
|
unit vector of a stereographic projection (polar coordinates) |
|
same as ol_stproj_vect, with angles in radians |
|
unit vector of a stereographic projection (Cartesian coordinates) |
|
converts an angle from degrees into radians |
|
converts an angle from radians into degrees |
|
vector obtained by a symmetry operator of given index |
|
distinct vectors obtained by all symmetry operators |
|
equal-area projection of a unit vector (polar coordinates) |
|
same as ol_vect_eaproj, with angles in radians |
|
equal-area projection of a unit vector (Cartesian coordinates) |
|
weights of a unit vector with respect to the corners of the standard triangle |
|
symmetrical vector with respect to a sample plane |
|
stereographic projection of a unit vector (polar coordinates) |
|
same as ol_vect_stproj, with angles in radians |
|
stereographic projection of a unit vector (Cartesian coordinates) |
|
rotation (rotation matrix) of minimum angle between two vectors |
|
rotation (quaternion) of minimum angle between two vectors |
|
rotation (axis / angle pair) of minimum angle between two vectors |
|
same as ol_vect_vect_rtheta, with angles in radians |
|
angle between two vectors |
|
same as ol_vect_vect_theta, with angles in radians |