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

sin

sine function

cos

cosine function

tan

tangent function

asin

arc sine function

acos

arc cosine function

atan

arc tangent function

sinh

hyperbolic sine function

cosh

hyperbolic cosine function

tanh

hyperbolic tangent function

asinh

hyperbolic arc sine function

acosh

hyperbolic arc cosine function

atanh

hyperbolic arc tangent function

log2

logarithm to the base 2

log10

logarithm to the base 10

log

logarithm to the base \(e\) (2.71828…)

ln

logarithm to the base \(e\) (2.71828…)

exp

e raised to the power of x

sqrt

square root of a value

sign

sign function: -1 if \(x<0\); 1 if \(x>0\)

rint

round to nearest integer

abs

absolute value

min

min of all arguments

max

max of all arguments

sum

sum of all arguments

avg

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: (<test>)?<value_if_true>:<value_if_false>.

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(<mean>,<sigma>)

normal

lognormal(<mean>,<sigma>)

lognormal

dirac(<mean>)

Dirac

beta(<x>,<y>)

beta function

\(x>0\), \(y>0\)

lorentzian(<mean>,<sigma>)

Lorentzian

studentst(<mean>,<sigma>)

Student’s t

weibull(k,<sigma>)

Weibull

\(k > 0\) represents the shape

breitwigner(<mean>,<sigma>[,<gamma>])

Breit-Wigner

\(<gamma> \geq 0\), default 1

expnormal(<mean>,<sigma>[,<gamma>])

exp-normal

\(<gamma> > 0\), default \(<sigma>\)

moffat(<mean>,<sigma>[,<gamma>])

Moffat

\(<gamma> > 0\), default 1

pearson7(<mean>,<sigma>[,<gamma>])

Pearson type VII

default \(<gamma> = 1.5\)

pseudovoigt(<mean>,<sigma>[,<gamma>])

Pseudo-Voigt

\(<gamma> \in [0,\,1]\), default 0.5

skewnormal(<mean>,<sigma>[,<gamma>])

skewed normal

default \(<gamma> = <sigma>\)

custom(<file_name>)

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

dim

dimension

tess

vernb

number of vertices

tess

edgenb

number of edges

tess

facenb

number of faces

tess

polynb

number of polyhedra

tess

cellnb

number of cells

tess

x

x coordinate

tess

y

y coordinate

tess

z

z coordinate

tess

xmin

minimum x coordinate

tess

ymin

minimum y coordinate

tess

zmin

minimum z coordinate

tess

xmax

maximum x coordinate

tess

ymax

maximum y coordinate

tess

zmax

maximum z coordinate

tess

lengthx

length along x

tess

lengthy

length along y

tess

lengthz

length along z

tess

coo

x, y and z coordinates

tess

area

surface area

tess

vol

volume

tess

size

size (surface area/volume in 2D/3D)

tess

step

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

id

identifier

seed, ver, edge, face, poly, group

x

x coordinate

seed, ver, edge, face, poly

y

y coordinate

seed, ver, edge, face, poly

z

z coordinate

seed, ver, edge, face, poly

coo

x, y and z coordinates

seed, ver, edge, face, poly

xmin

minimum x coordinate

edge, face, poly

ymin

minimum y coordinate

edge, face, poly

zmin

minimum z coordinate

edge, face, poly

xmax

maximum x coordinate

edge, face, poly

ymax

maximum y coordinate

edge, face, poly

zmax

maximum z coordinate

edge, face, poly

w

Laguerre weight (width for a lamellar tessellation)

seed, cell

body[(<expr>)]

body level

ver, edge, face, poly

state

state

ver, edge, face, poly

domtype

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

domface

domain face (-1 if undefined)

face

domedge

domain edge (-1 if undefined)

edge

domver

domain vertex (-1 if undefined)

ver

scale

scale

ver, edge, face, poly, cell [2]

length

length

edge

length(<d_x>,<d_y>,<d_z>)

directional length along \((d_x,d_y,d_z)\) (in 2D, d_z can be omitted)

edge, face, poly

area

surface area

face, poly, group

vol

volume

poly, group

size

size (surface area/volume in 2D/3D)

cell, group

diameq

equivalent diameter [4]

face, poly

avdiameq

average equivalent diameter [4]

poly

radeq

equivalent radius (half of the eq. diameter)

face, poly

avradeq

average equivalent radius (half of the eq. diameter)

poly

sphericity

sphericity [5]

poly

circularity

circularity [6]

face

convexity

convexity [7]

face (only for a 2D tessellation), poly

dihangleav

average dihedral angle

face, poly

dihanglemin

minimum dihedral angle

face, poly

dihanglemax

maximum dihedral angle

face, poly

dihangles

dihedral angles

face, poly

ff

flatness fault (in degrees)

face

theta

disorientation angle (in degrees)

edge (in 2D), face (in 3D)

cyl

cylinder polygonization [20]

edge

vernb

number of vertices

edge, face, poly

vers

vertices

edge, face, poly

edgenb

number of edges

ver, face, poly

edges

edges

ver, face, poly

facenb

number of faces

ver, edge, poly

faces

faces

ver, edge, poly

polynb

number of polyhedra

ver, edge, face

polys

polyhedra

ver, edge, face

nfacenb

number of neighboring faces

face

nfaces

neighboring faces

face

nfacenb_samedomain

number of neighboring faces of the same domain (parent cell of a multiscale tessellation)

face (in 2D)

nfaces_samedomain

neighboring faces of the same domain (parent cell of a multiscale tessellation)

face (in 2D)

npolynb

number of neighboring polyhedra

poly

npolys

neighboring polyhedra

poly

npolys_unsort

neighboring polyhedra, unsorted list

poly

npolynb_samedomain

number of neighboring polyhedra of the same domain (parent cell of a multiscale tessellation)

poly

npolys_samedomain

neighboring polyhedra of the same domain (parent cell of a multiscale tessellation)

poly

vercoos

vertex coordinates

face, poly

faceareas

face surface areas

poly

faceeqs

face equations [10]

poly

nseednb

number of neighboring seeds

poly

nseeds

neighboring seeds [11]

poly

scaleid(<scale_nb>)

identifier of the corresponding cell at scale <scale_nb>

cell

lam

lamella width id [12]

cell

mode

mode [13]

cell

group

group

cell

modenb

number of modes of the parent cells

ver, edge, face (in 3D)

groupnb

number of groups of the parent cells

ver, edge, face (in 3D)

per

periodic (1 if periodic, 0 otherwise)

ver, edge, face (in 3D)

fiber(...)

1 if in orientation fiber and 0 otherwise, see Orientation Fibers

poly

<orientation_descriptor>

orientation, see Rotation and Orientation Descriptors

face (in 2D), poly (in 3D)

step

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 to 0 if the cell is at the domain boundary, i.e. if it shares at least one face with it (edge in 2D), and is equal to 1 or higher otherwise. This is determined as follows: if a cell is surrounded by cells with body values equal to or higher than n, its body value is equal to n + 1. Therefore, body tends 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, z0 and z1). For example, body(z0||z1) considers only the z0 and z1 domain faces as the boundary, and the more exotic body(x1&&y0||z1) considers only the intersection between the x1 and y0 domain faces, and the z1 domain 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

dim

dimension

tesr

voxnbx

number of voxels in direction x

tesr

voxnby

number of voxels in direction y

tesr

voxnbz

number of voxels in direction z

tesr

voxnb

number of voxels in total

tesr

originx

origin x coordinate

tesr

originy

origin y coordinate

tesr

originz

origin z coordinate

tesr

voxsizex

voxel size in direction x

tesr

voxsizey

voxel size in direction y

tesr

voxsizez

voxel size in direction z

tesr

rastersizex

raster size in direction x

tesr

rastersizey

raster size in direction y

tesr

rastersizez

raster size in direction z

tesr

rastersize

raster size (surface area/volume in 2D/3D)

tesr

area

surface area

tesr

vol

volume

tesr

size

size (surface area/volume in 2D/3D)

tesr

x

x coordinate

tesr

y

y coordinate

tesr

z

z coordinate

tesr

xmin

minimum x coordinate

tesr

ymin

minimum y coordinate

tesr

zmin

minimum z coordinate

tesr

xmax

maximum x coordinate

tesr

ymax

maximum y coordinate

tesr

zmax

maximum z coordinate

tesr

coo

x, y and z coordinates

tesr

step

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

id

identifier

seed, cell, group, voxel

cell

cell

voxel

oridef

orientation is defined

voxel

w

Laguerre weight

seed

step

simulation step

tesr

Geometry#

Key

Descriptor

Applies to

x

x coordinate

seed, cell, voxel

y

y coordinate

seed, cell, voxel

z

z coordinate

seed, cell, voxel

coo

x, y and z coordinates

seed, cell, voxel

vx

x coordinate (in voxel)

voxel

vy

y coordinate (in voxel)

voxel

vz

z coordinate (in voxel)

voxel

vcoo

x, y and z coordinates (in voxel)

voxel

vxmin

minimum x coordinate (in voxel)

cell

vymin

minimum y coordinate (in voxel)

cell

vzmin

minimum z coordinate (in voxel)

cell

vxmax

maximum x coordinate (in voxel)

cell

vymax

maximum y coordinate (in voxel)

cell

vzmax

maximum z coordinate (in voxel)

cell

domvxmin

domain minimum x coordinate (in voxel), always 1

domain

domvymin

domain minimum y coordinate (in voxel), always 1

domain

domvzmin

domain minimum z coordinate (in voxel), always 1

domain

domvxmax

domain maximum x coordinate (in voxel)

domain

domvymax

domain maximum y coordinate (in voxel)

domain

domvzmax

domain maximum z coordinate (in voxel)

domain

area

surface area

cell, group (in 2D)

vol

volume

cell, group (in 3D)

size

size (surface area/volume in 2D/3D)

cell, group

voxnb

number of voxels

cell

areafrac

surface area fraction

group (in 2D)

volfrac

volume fraction

group (in 3D)

sizefrac

size fraction (surface area/volume fraction in 2D/3D)

group

diameq

equivalent diameter [4]

cell

radeq

equivalent radius

cell

anisofact

anisotropy factor

cell

convexity

convexity [7]

cell

Orientation#

Key

Descriptor

Applies to

<orientation_descriptor>

orientation, see Rotation and Orientation Descriptors

voxel, cell

gos

grain orientation spread [8]

cell

oridisanisoangles

orientation distribution anisotropy / principal angles [14]

cell

oridisanisoaxes[_<csys>]

orientation distribution anisotropy / principal axes [14]

cell

oridisanisofact

orientation distribution anisotropy factor [14]

cell

oridisanisodeltas

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

iter

iteration number

varupdateqty

number of updated variables

seedupdateqty

number of updated seeds

seedupdatelist

list of updated seeds

cellupdateqty

number of updated cells

cellupdatelist

list of updated cells

var

time for variable update

seed

time for seed update

cell_init

time for cell update initialization

cell_kdtree

time for cell update kdtree computation

cell_shift

time for cell update shift computation

cell_neigh

time for cell update neighbor computation

cell_cell

time for cell update cell computation

cell_other

time for cell update others

cell_total

total time for cell update

val

time for (objective function) value update

val_init

time for (objective function) value update / initialization

val_penalty

time for (objective function) value update / penalty computation

val_val

time for (objective function) value update / value computation

val_val_cellval

time for (objective function) value update / value computation / cell values

val_val_comp

time for (objective function) value update / value computation / computation

val_comp

time for (objective function) value update / computation

total

total time

cumtotal

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

iter

iteration number

n/a

id

identifier

seed

x

x coordinate

seed

y

y coordinate

seed

z

z coordinate

seed

w

Laguerre weight

seed

error

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

iter

iteration number

val

value

valmin

minimal value

val0

value, without smoothing

valmin0

minimal value, without smoothing

val(<i>)

i th subvalue

val0(<i>)

i th subvalue, without smoothing

eps

error on the objective function (see -morphooptistop)

reps

relative error on the objective function (see -morphooptistop)

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

iter

iteration number

x

x coordinate

tarpdf

target PDF

tarcdf

target CDF

curpdf

current PDF

curcdf

current CDF

tarpdf0

target PDF, not smoothed

tarcdf0

target CDF, not smoothed

curpdf0

current PDF, not smoothed

curcdf0

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

iter

iteration number

id

cell identifier

x

x coordinate

y

y coordinate

z

z coordinate

dist

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

iter

iteration number

n/a

id

identifier

seed

rodrigues

Rodrigues vector

seed

euler-bunge

Euler angles (Bunge convention)

seed

euler-kocks

Euler angles (Kocks convention)

seed

euler-roe

Euler angles (Roe convention)

seed

rotmat

rotation matrix

seed

axis-angle

rotation axis / angle pair

seed

quaternion

quaternion

seed

Objective Function Value Keys#

The available keys for option -orioptilogval are provided below.

Key

Descriptor

iter

iteration number

val

value

valmin

minimal value

Mesh Keys#

Available keys for a mesh itself are provided below. “co” stands for “cohesive”.

Key

Descriptor

Apply to

eltnb

element number

{0-3}D,co mesh

nodenb

node number

{0-3}D mesh

elsetnb

elset number

{0-3}D,co mesh

partnb

partition number

highest-dimension mesh

x

x coordinate

{0-3}D mesh

y

y coordinate

{0-3}D mesh

z

z coordinate

{0-3}D mesh

coo

x, y and z coordinates

{0-3}D mesh

length

length

1D mesh

area

surface area

2D mesh

vol

volume

3D mesh

size

size (length/area/volume in 1D/2D/3D)

{1-3}D mesh

step

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

id

identifier

node, {0-3}D,co elt, {0-3}D,co elset

x

x coordinate

node, {0-3}D,co elt, {0-3}D elset

y

y coordinate

node, {0-3}D,co elt, {0-3}D elset

z

z coordinate

node, {0-3}D,co elt, {0-3}D elset

coo

x, y and z coordinates

node, {0-3}D,co elt, 3D elset

dim

lowest parent elt dimension

node

elset0d

0D elset

0D elt

elset1d

1D elset

1D elt

elset2d

2D elset

2D elt

elset3d

3D elset

3D elt

elsetco

cohesive elset

co elt

part

partition

{1-3}D elt, node

group

group

{0-3}D elt, {0-3}D elset

scaleid(<scale_nb>)

identifier of the corresponding tess cell at scale <scale_nb>

2D elset, 3D elset

scale

scale

{0-2}D elset [3]

cyl

cylinder polygonization [20]

1D elt, 1D elset

vol

volume

3D elt, 3D elset

vol_orispace

volume, orientation-space-wise [21]

3D elt

area

surface area

2D elt

diameq

equivalent diameter

{2,3}D elt, {2,3}D elset

radeq

equivalent radius

{2,3}D elt, {2,3}D elset

anisofact

anisotropy factor

{2,3}D elset

length

average edge length

{0-3}D elt, 1D elset

lengths

edge lengths

2D elt, 3D elt

elsetvol

elset volume

3D elt

elsetarea

elset area

2D elt

elsetlength

elset length

1D elt

rr

radius ratio

3D elt

rrav

average radius ratio

3D elset

rrmin

min radius ratio

3D elset

rrmax

max radius ratio

3D elset

Osize

Osize

3D elset

eltnb

number of elements

{0-3}D,co elset

elts

elements

{0-3}D,co elset

nodenb

number of nodes

{0-3}D,co elset

nodes

nodes

{0-3}D,co elset

body

body level

{0-3}D elt, {0-3}D elset

elsetbody

body level, relative to the elset boundary

{2,3}D elt

domtype

type of domain [16]

{0-2}D elt, {0-2}D elset

2dmeshp

closest point of the 2D mesh

node, 3D elt

2dmeshd

distance to 2dmeshp

node, 3D elt

2dmeshv

vector to 2dmeshp

node, 3D elt

2dmeshn

outgoing normal vector at 2dmeshp

node, 3D elt

per

periodic (1 if periodic, 0 otherwise)

{0,1}D elt, 2D elt (in 3D), {0,1}D elset, 2D elset (in 3D)

col_rodrigues

color in Rodrigues vector convention [17]

node

col_stdtriangle

color in IPF convention, cubic symmetry [18]

node

col_stdtriangle_hexagonal

color in IPF convention, hexagonal symmetry [18]

node

fiber(...) [22]

1 if in orientation fiber and 0 otherwise

3D elt, 3D elset

theta

disorientation angle (in degrees)

1D elt and elset (in 2D), 2D elt and elset (in 3D)

gos

grain orientation spread [8]

3D elset

anisogos

grain orientation spread estimated from the ODF [8]

3D elset

<orientation_descriptor>

orientation, see Rotation and Orientation Descriptors

2D elt (in 2D), 2D elset (in 2D), 3D elt (in 3D), 3D elset (in 3D), node [19]

step

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

id

identifier

point

x

x coordinate

point

y

y coordinate

point

z

z coordinate

point

cell

cell

point

tessellation

elt

containing element

point

mesh

elset

containing elset

point

mesh

2dmeshp

coordinates of the closest point of the 2D mesh

point

3D mesh

2dmeshd

distance to 2dmeshp

point

3D mesh

2dmeshv

vector to 2dmeshp

point

3D mesh

2dmeshn

outgoing normal vector of the 2D mesh at 2dmeshp

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

disp

displacement (computed from positions)

node

Available results / keys for elements are the following:

Key

Descriptor

Apply to

<res>_eq

equivalent value of <res> [9]

elt, elset, mesh

Available results / keys for element sets are the following:

Key

Descriptor

Apply to

ori

average orientation

elset, mesh

gos

grain orientation spread [8]

elset

anisogos

grain orientation spread computed from oridisanisoangles

elset

oridisanisoangles

orientation distribution principal angles

elset, mesh

oridisanisoaxes

orientation distribution principal axes

elset, mesh

oridisanisofact

orientation distribution factor

elset, mesh

odf(<var>=<value>,...)

ODF defined at elements of orientation space (see also below)

tess, tesr, mesh, cell, elt, elset

odfn(<var>=<value>,...)

ODF defined at nodes of orientation space (see also below)

tess, tesr, mesh

odfindex(<var>=<value>,...)

“Texture index” of the ODF

tess, tesr, mesh, cell

odfnindex(<var>=<value>,...)

“Texture index” of the (nodal) ODF

tess, tesr, mesh, cell

orifield(var=<var>,...)

<var> field defined at elements of orientation space (see below)

mesh

orifieldn(var=<var>,...)

<var> field defined at nodes of orientation space (see below)

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, either elsets or elts for a mesh (default elsets);

  • 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 be 0 (for no clustering) or 1 (for clustering); the default is 0 for cells or elsets and 1 for voxels or elements;

  • cutoff: the cut-off factor used to compute the ODF, which can be all (for no cut-off) or any positive real value (default 5).

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

label or name

name (see Ideal Orientations)

1

rodrigues

Rodrigues vector

3

euler-bunge

Euler angles (Bunge convention)

3

euler-kocks

Euler angles (Kocks convention)

3

euler-roe

Euler angles (Roe convention)

3

rotmat

rotation matrix

9

axis-angle

rotation axis / angle pair

4

quaternion

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:

../_images/directionconvention.png

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\):

../_images/orientationconvention.png

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

Cube

\((0\,0\,1)[1\,0\,0]\)

Goss

\((0\,1\,1)[1\,0\,0]\)

U

\((1\,0\,1)[\overline{1}\,0\,1]\)

45NDCube

\((0\,0\,1)[1\,\overline{1}\,0]\)

S1

\((1\,2\,3)[6\,3\,\overline{4}]\)

S2

\((\overline{1}\,2\,3)[6\,\overline{3}\,4]\)

S3

\((1\,\overline{2}\,3)[6\,\overline{3}\,\overline{4}]\)

S4

\((\overline{1}\,\overline{2}\,3)[6\,3\,4]\)

Brass1

\((1\,1\,0)[1\,\overline{1}\,2]\)

Brass2

\((\overline{1}\,1\,0)[1\,1\,\overline{2}]\)

Copper1

\((1\,1\,2)[1\,1\,\overline{1}]\)

Copper2

\((\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

fcc_psc_alpha

\(\alpha\), partial \((1\,1\,0)\|\hbox{Z}\) fiber (\(\pm45°\) about Goss)

fcc_psc_alpha2

\(\alpha\), partial \((1\,1\,0)\|\hbox{Z}\) fiber (\(\pm45°\) about U)

fcc_psc_alpha_full

\(\alpha\), full \((1\,1\,0)\|\hbox{Z}\) fiber

fcc_psc_beta

\(\beta\) partial fiber

fcc_psc_beta_bent

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 be theta or thetam and <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

triclinic (Laue group \(\overline{1}\))

1

cubic

cubic (Laue group \(m\overline{3}m\))

24

hexagonal

hexagonal (Laue group \(6/mmm\))

12

-1

Laue group \(\overline{1}\)

1

2/m

Laue group \(2/m\)

2

mmm

Laue group \(mmm\)

4

4/m

Laue group \(4/m\)

4

4/mmm

Laue group \(4/mmm\)

8

-3

Laue group \(\overline{3}\)

3

-3m

Laue group \(\overline{3}m\)

6

6/m

Laue group \(6/m\)

6

6/mmm

Laue group \(6/mmm\)

12

m-3

Laue group \(m\overline{3}\)

12

m-3m

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

black

(0, 0, 0)

red

(255, 0, 0)

green

(0, 255, 0)

blue

(0, 0, 255)

yellow

(255, 255, 0)

magenta

(255, 0, 255)

cyan

(0, 255, 255)

white

(255, 255, 255)

maroon

(128, 0, 0)

navy

(0, 0, 128)

chartreuse

(127, 255, 0)

springgreen

(0, 255, 127)

olive

(128, 128, 0)

purple

(128, 0, 128)

teal

(0, 128, 128)

gray

(128, 128, 128)

deepskyblue

(0, 191, 255)

lawngreen

(124, 252, 0)

darkgray

(64, 64, 64)

orangered

(255, 69, 0)

silver

(192, 192, 192)

snow

(255, 250, 250)

darkred

(139, 0, 0)

darkblue

(0, 0, 139)

darkorange

(255, 140, 0)

azure

(240, 255, 255)

ghostwhite

(248, 248, 255)

ivory

(255, 255, 240)

mediumblue

(0, 0, 205)

lightpink

(255, 182, 193)

mintcream

(245, 255, 250)

indigo

(75, 0, 130)

lightcoral

(240, 128, 128)

pink

(255, 192, 203)

coral

(255, 127, 80)

salmon

(250, 128, 114)

floralwhite

(255, 250, 240)

aquamarine

(127, 255, 212)

lemonchiffon

(255, 250, 205)

gold

(255, 215, 0)

darkgreen

(0, 100, 0)

orange

(255, 165, 0)

aliceblue

(240, 248, 255)

lightcyan

(224, 255, 255)

lightyellow

(255, 255, 224)

darkmagenta

(139, 0, 139)

darkcyan

(0, 139, 139)

peru

(205, 133, 63)

steelblue

(70, 130, 180)

lavenderblush

(255, 240, 245)

seashell

(255, 245, 238)

mediumspringgreen

(0, 250, 154)

darkslateblue

(72, 61, 139)

darkgoldenrod

(184, 134, 11)

lightsalmon

(255, 160, 122)

bisque

(255, 228, 196)

lightskyblue

(135, 206, 250)

lightgoldenrodyellow

(250, 250, 210)

honeydew

(240, 255, 240)

cornsilk

(255, 248, 220)

peachpuff

(255, 218, 185)

whitesmoke

(245, 245, 245)

tomato

(255, 99, 71)

slategray

(112, 128, 144)

hotpink

(255, 105, 180)

oldlace

(253, 245, 230)

blanchedalmond

(255, 235, 205)

darkkhaki

(189, 183, 107)

moccasin

(255, 228, 181)

darkturquoise

(0, 206, 209)

mediumseagreen

(60, 179, 113)

mediumvioletred

(199, 21, 133)

violet

(238, 130, 238)

greenyellow

(173, 255, 47)

papayawhip

(255, 239, 213)

darkseagreen

(143, 188, 143)

rosybrown

(188, 143, 143)

deeppink

(255, 20, 147)

saddlebrown

(139, 69, 19)

darkviolet

(148, 0, 211)

dodgerblue

(30, 144, 255)

lightslategray

(119, 136, 153)

burlywood

(222, 184, 135)

navajowhite

(255, 222, 173)

linen

(250, 240, 230)

mediumslateblue

(123, 104, 238)

turquoise

(64, 224, 208)

skyblue

(135, 206, 235)

mediumturquoise

(72, 209, 204)

beige

(245, 245, 220)

mistyrose

(255, 228, 225)

tan

(210, 180, 140)

antiquewhite

(250, 235, 215)

thistle

(216, 191, 216)

limegreen

(50, 205, 50)

darksalmon

(233, 150, 122)

lightsteelblue

(176, 196, 222)

royalblue

(65, 105, 225)

palegreen

(152, 251, 152)

crimson

(220, 20, 60)

wheat

(245, 222, 179)

mediumorchid

(186, 85, 211)

lavender

(230, 230, 250)

khaki

(240, 230, 140)

lightgreen

(144, 238, 144)

paleturquoise

(175, 238, 238)

darkslategray

(47, 79, 79)

darkorchid

(153, 50, 204)

seagreen

(46, 139, 87)

yellowgreen

(154, 205, 50)

blueviolet

(138, 43, 226)

palevioletred

(219, 112, 147)

olivedrab

(107, 142, 35)

mediumpurple

(147, 112, 219)

sandybrown

(244, 164, 96)

darkolivegreen

(85, 107, 47)

mediumaquamarine

(102, 205, 170)

slateblue

(106, 90, 205)

palegoldenrod

(238, 232, 170)

forestgreen

(34, 139, 34)

midnightblue

(25, 25, 112)

lightseagreen

(32, 178, 170)

lightgray

(211, 211, 211)

orchid

(218, 112, 214)

cornflowerblue

(100, 149, 237)

sienna

(160, 82, 45)

firebrick

(178, 34, 34)

powderblue

(176, 224, 230)

indianred

(205, 92, 92)

dimgray

(105, 105, 105)

lightblue

(173, 216, 230)

chocolate

(210, 105, 30)

brown

(165, 42, 42)

goldenrod

(218, 165, 32)

gainsboro

(220, 220, 220)

plum

(221, 160, 221)

cadetblue

(95, 158, 160)

manimblack

(0, 0, 0)

manimblue

(88, 196, 221)

manimblue_a

(199, 233, 241)

manimblue_b

(156, 220, 235)

manimblue_c

(88, 196, 221)

manimblue_d

(41, 171, 202)

manimblue_e

(35, 107, 142)

manimdarker_gray

(34, 34, 34)

manimdarker_grey

(34, 34, 34)

manimdark_blue

(35, 107, 142)

manimdark_brown

(139, 69, 19)

manimdark_gray

(68, 68, 68)

manimdark_grey

(68, 68, 68)

manimgold

(240, 172, 95)

manimgold_a

(247, 199, 151)

manimgold_b

(249, 183, 117)

manimgold_c

(240, 172, 95)

manimgold_d

(225, 161, 88)

manimgold_e

(199, 141, 70)

manimgray

(136, 136, 136)

manimgray_a

(221, 221, 221)

manimgray_b

(187, 187, 187)

manimgray_brown

(115, 99, 87)

manimgray_c

(136, 136, 136)

manimgray_d

(68, 68, 68)

manimgray_e

(34, 34, 34)

manimgreen

(131, 193, 103)

manimgreen_a

(201, 226, 174)

manimgreen_b

(166, 207, 140)

manimgreen_c

(131, 193, 103)

manimgreen_d

(119, 176, 93)

manimgreen_e

(105, 156, 82)

manimgrey

(136, 136, 136)

manimgrey_a

(221, 221, 221)

manimgrey_b

(187, 187, 187)

manimgrey_brown

(115, 99, 87)

manimgrey_c

(136, 136, 136)

manimgrey_d

(68, 68, 68)

manimgrey_e

(34, 34, 34)

manimlighter_gray

(221, 221, 221)

manimlighter_grey

(221, 221, 221)

manimlight_brown

(205, 133, 63)

manimlight_gray

(187, 187, 187)

manimlight_grey

(187, 187, 187)

manimlight_pink

(220, 117, 205)

manimlogo_black

(52, 52, 52)

manimlogo_blue

(82, 88, 147)

manimlogo_green

(135, 194, 165)

manimlogo_red

(224, 122, 95)

manimlogo_white

(236, 231, 226)

manimmaroon

(197, 95, 115)

manimmaroon_a

(236, 171, 193)

manimmaroon_b

(236, 146, 171)

manimmaroon_c

(197, 95, 115)

manimmaroon_d

(162, 77, 97)

manimmaroon_e

(148, 66, 79)

manimorange

(255, 134, 47)

manimpink

(209, 71, 189)

manimpure_blue

(0, 0, 255)

manimpure_green

(0, 255, 0)

manimpure_red

(255, 0, 0)

manimpurple

(154, 114, 172)

manimpurple_a

(202, 163, 232)

manimpurple_b

(177, 137, 198)

manimpurple_c

(154, 114, 172)

manimpurple_d

(113, 85, 130)

manimpurple_e

(100, 65, 114)

manimred

(252, 98, 85)

manimred_a

(247, 161, 163)

manimred_b

(255, 128, 128)

manimred_c

(252, 98, 85)

manimred_d

(230, 90, 76)

manimred_e

(207, 80, 68)

manimteal

(92, 208, 179)

manimteal_a

(172, 234, 215)

manimteal_b

(118, 221, 192)

manimteal_c

(92, 208, 179)

manimteal_d

(85, 193, 167)

manimteal_e

(73, 168, 143)

manimwhite

(255, 255, 255)

manimyellow

(255, 255, 0)

manimyellow_a

(255, 241, 182)

manimyellow_b

(255, 234, 148)

manimyellow_c

(255, 255, 0)

manimyellow_d

(244, 211, 69)

manimyellow_e

(232, 193, 28)

hl1

(38, 139, 172)

hl2

(217, 93, 93)

hl3

(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

../_images/viridis.png

cividis

../_images/cividis.png

magma

../_images/magma.png

inferno

../_images/inferno.png

plasma

../_images/plasma.png

parula

../_images/parula.png

heat

../_images/heat.png

hot

../_images/hot.png

jet

../_images/jet.png

gray

../_images/gray.png

github

../_images/github.png

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

../_images/legacy.png

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

../_images/viridis-fade.png

viridis:fade(0.2)

../_images/viridis-fade0p2.png

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

ol_R_Rcrysym

preferred crystallographically related orientation (Rodrigues vector)

ol_R_g

converts a Rodrigues vector into a rotation matrix

ol_R_q

converts a Rodrigues vector into a quaternion

ol_R_rtheta

converts a Rodrigues vector into a rotation axis / angle pair

ol_R_rtheta_rad

same as ol_R_rtheta, with angles in radians

ol_crysym_qty

number of crystallographically related orientations of a crystal symmetry

ol_des_size

number of values of an orientation descriptor (given by name)

ol_e_deg2rad

converts Euler angles from degrees into radians

ol_e_e

brings Euler angles into their standard ranges

ol_e_e_rad

same as ol_e_e, with angles in radians

ol_e_ecrysym

preferred crystallographically related orientation (Euler angles)

ol_e_ecrysym_orthotropic

equivalent Euler angles in [0, 90]³ under crystal and orthotropic sample symmetries (cubic symmetry)

ol_e_ecrysym_orthotropic_rad

same as ol_e_ecrysym_orthotropic, with angles in radians

ol_e_ecrysym_rad

same as ol_e_ecrysym, with angles in radians

ol_e_ek

converts Euler angles into Euler angles (Kocks convention)

ol_e_ek_rad

same as ol_e_ek, with angles in radians

ol_e_er

converts Euler angles into Euler angles (Roe convention)

ol_e_er_rad

same as ol_e_er, with angles in radians

ol_e_g

converts Euler angles into a rotation matrix

ol_e_g_rad

same as ol_e_g, with angles in radians

ol_e_q

converts Euler angles into a quaternion

ol_e_q_rad

same as ol_e_q, with angles in radians

ol_e_rad2deg

converts Euler angles from radians into degrees

ol_eaproj_vect

unit vector of an equal-area projection (polar coordinates)

ol_eaproj_vect_rad

same as ol_eaproj_vect, with angles in radians

ol_eaprojxy_vect

unit vector of an equal-area projection (Cartesian coordinates)

ol_ek_e

converts Euler angles (Kocks convention) into Euler angles

ol_ek_e_rad

same as ol_ek_e, with angles in radians

ol_er_e

converts Euler angles (Roe convention) into Euler angles

ol_er_e_rad

same as ol_er_e, with angles in radians

ol_g_R

converts a rotation matrix into a Rodrigues vector

ol_g_crysym

crystallographically related orientation (rotation matrix) of given index

ol_g_csys

expresses a rotation matrix in a new coordinate system

ol_g_e

converts a rotation matrix into Euler angles

ol_g_e_rad

same as ol_g_e, with angles in radians

ol_g_g_disori

disorientation angle between two orientations (rotation matrices)

ol_g_g_disori_orthotropic

disorientation angle between two orientations (rotation matrices), with orthotropic sample symmetry

ol_g_g_disori_orthotropic_rad

same as ol_g_g_disori_orthotropic, with angles in radians

ol_g_g_disori_rad

same as ol_g_g_disori, with angles in radians

ol_g_g_g

combination of two rotation matrices (current coordinate systems)

ol_g_g_g_cur

same as ol_g_g_g

ol_g_g_g_ref

combination of two rotation matrices (reference coordinate system)

ol_g_g_gdisori

disorientation (rotation matrix) between two orientations (reference coordinate system)

ol_g_g_gdisori_cur

disorientation (rotation matrix) between two orientations (coordinate system of crystal 1)

ol_g_g_gdisori_orthotropic

disorientation (rotation matrix) between two orientations, with orthotropic sample symmetry

ol_g_g_gdisori_ref

same as ol_g_g_gdisori

ol_g_g_gmisori

misorientation (rotation matrix) between two orientations (reference coordinate system)

ol_g_g_gmisori_cur

misorientation (rotation matrix) between two orientations (coordinate system of crystal 1)

ol_g_g_gmisori_orthotropic

misorientation (rotation matrix) between two orientations, with orthotropic sample symmetry

ol_g_g_gmisori_ref

same as ol_g_g_gmisori

ol_g_g_misori

misorientation angle between two orientations (rotation matrices)

ol_g_g_misori_orthotropic

misorientation angle between two orientations (rotation matrices), with orthotropic sample symmetry

ol_g_g_misori_orthotropic_rad

same as ol_g_g_misori_orthotropic, with angles in radians

ol_g_g_misori_rad

same as ol_g_g_misori, with angles in radians

ol_g_gcrysym

preferred crystallographically related orientation (rotation matrix)

ol_g_homochoric

converts a rotation matrix into a homochoric vector

ol_g_inverse

inverse of a rotation matrix

ol_g_ipf_crysym_eaproj

same as ol_g_ipf_eaproj, in the standard triangle (crystal symmetry)

ol_g_ipf_crysym_eaproj_rad

same as ol_g_ipf_crysym_eaproj, with angles in radians

ol_g_ipf_crysym_eaprojxy

same as ol_g_ipf_eaprojxy, in the standard triangle (crystal symmetry)

ol_g_ipf_crysym_stproj

same as ol_g_ipf_stproj, in the standard triangle (crystal symmetry)

ol_g_ipf_crysym_stproj_rad

same as ol_g_ipf_crysym_stproj, with angles in radians

ol_g_ipf_crysym_stprojxy

same as ol_g_ipf_stprojxy, in the standard triangle (crystal symmetry)

ol_g_ipf_eaproj

equal-area projection in a inverse pole figure of an orientation (rotation matrix), polar coordinates

ol_g_ipf_eaproj_rad

same as ol_g_ipf_eaproj, with angles in radians

ol_g_ipf_eaprojxy

equal-area projection in a inverse pole figure of an orientation (rotation matrix), Cartesian coordinates

ol_g_ipf_stproj

stereographic projection in a inverse pole figure of an orientation (rotation matrix), polar coordinates

ol_g_ipf_stproj_rad

same as ol_g_ipf_stproj, with angles in radians

ol_g_ipf_stprojxy

stereographic projection in a inverse pole figure of an orientation (rotation matrix), Cartesian coordinates

ol_g_lng

logarithm of a rotation matrix

ol_g_m

converts a rotation matrix into Miller indices (several solutions, with their qualities)

ol_g_oneline

prints a rotation matrix on a single line

ol_g_pf_eaproj

equal-area projection in a pole figure of an orientation (rotation matrix), polar coordinates

ol_g_pf_eaproj_rad

same as ol_g_pf_eaproj, with angles in radians

ol_g_pf_eaprojxy

equal-area projection in a pole figure of an orientation (rotation matrix), Cartesian coordinates

ol_g_pf_stproj

stereographic projection in a pole figure of an orientation (rotation matrix), polar coordinates

ol_g_pf_stproj_rad

same as ol_g_pf_stproj, with angles in radians

ol_g_pf_stprojxy

stereographic projection in a pole figure of an orientation (rotation matrix), Cartesian coordinates

ol_g_q

converts a rotation matrix into a quaternion

ol_g_r

converts a rotation matrix into a rotation axis

ol_g_refcsys

expresses an orientation (rotation matrix) in a new reference coordinate system

ol_g_refsym

symmetrical orientation (rotation matrix) with respect to a sample plane

ol_g_refsym_g

disorientation (rotation matrix) between an orientation and a sample plane (cubic symmetry)

ol_g_refsym_monoclinic

symmetrical orientations (rotation matrix) for monoclinic sample symmetry

ol_g_refsym_orthotropic

distinct symmetrical orientations (rotation matrix) for orthotropic sample symmetry

ol_g_refsym_orthotropic_all

the 4 symmetrical orientations (rotation matrix) for orthotropic sample symmetry

ol_g_rtheta

converts a rotation matrix into a rotation axis / angle pair

ol_g_rtheta_rad

same as ol_g_rtheta, with angles in radians

ol_g_theta

converts a rotation matrix into a rotation angle

ol_g_theta_rad

same as ol_g_theta, with angles in radians

ol_g_vect_vect

rotation of a vector by a rotation matrix

ol_hpole_vect

unit vector of a four-index pole (hexagonal)

ol_ipf_g_stprojxy

orientation (rotation matrix) of a given inverse pole figure stereographic projection

ol_ipf_q_stprojxy

orientation (quaternion) of a given inverse pole figure stereographic projection

ol_ipfweight_rgb

color of standard triangle weights

ol_label_g

converts an orientation label into a rotation matrix

ol_label_q

converts an orientation label into a quaternion

ol_lng_g

rotation matrix of a given logarithm

ol_lnq_q

quaternion of a given logarithm

ol_m_crysym

crystallographically related orientation (Miller indices) of given index (cubic symmetry)

ol_m_g

converts Miller indices into a rotation matrix

ol_m_mcrysym

preferred crystallographically related orientation (Miller indices, cubic symmetry)

ol_m_q

converts Miller indices into a quaternion

ol_m_refsym

symmetrical orientation (Miller indices) with respect to a sample plane

ol_m_refsym_monoclinic

symmetrical orientations (Miller indices) for monoclinic sample symmetry

ol_m_refsym_orthotropic

distinct symmetrical orientations (Miller indices) for orthotropic sample symmetry

ol_nb_e

Euler angles from 3 numbers in [0, 1] (uniform distribution)

ol_nb_e_rad

same as ol_nb_e, with angles in radians

ol_nb_max_rtheta

rotation axis / angle pair with an angle lower than a maximum value from 3 numbers in [0, 1] (orientation spread)

ol_nb_max_rtheta_mis

rotation axis / angle pair with an angle lower than a maximum value from 3 numbers in [0, 1] (misorientation distribution)

ol_nb_max_rtheta_mis_rad

same as ol_nb_max_rtheta_mis, with angles in radians

ol_nb_max_rtheta_rad

same as ol_nb_max_rtheta, with angles in radians

ol_nb_max_theta

rotation angle lower than a maximum value from a number in [0, 1] (orientation spread)

ol_nb_max_theta_mis

rotation angle lower than a maximum value from a number in [0, 1] (misorientation distribution)

ol_nb_max_theta_mis_rad

same as ol_nb_max_theta_mis, with angles in radians

ol_nb_max_theta_rad

same as ol_nb_max_theta, with angles in radians

ol_nb_r

rotation axis from 2 numbers in [0, 1] (uniform distribution)

ol_pole_crysym

crystallographically related pole of given index (cubic symmetry)

ol_pole_polecrysym

preferred crystallographically related pole

ol_pole_vect

unit vector of a pole

ol_polef_polecrysym

distinct poles of a pole family

ol_q_R

converts a quaternion into a Rodrigues vector

ol_q_aniso_theta

amplitudes of an orientation (quaternion) along principal axes

ol_q_crysym

crystallographically related orientation (quaternion) of given index

ol_q_crysym_nopos

same as ol_q_crysym, without making the quaternion positive

ol_q_csys

expresses a quaternion in a new coordinate system

ol_q_des

converts a quaternion into an orientation descriptor (given by name)

ol_q_e

converts a quaternion into Euler angles

ol_q_e_rad

same as ol_q_e, with angles in radians

ol_q_g

converts a quaternion into a rotation matrix

ol_q_gv

converts a quaternion into a rotation matrix, written on a single line

ol_q_homochoric

converts a quaternion into a homochoric vector

ol_q_inverse

inverse of a quaternion

ol_q_ipf_crysym_eaproj

same as ol_q_ipf_eaproj, in the standard triangle (crystal symmetry)

ol_q_ipf_crysym_eaproj_rad

same as ol_q_ipf_crysym_eaproj, with angles in radians

ol_q_ipf_crysym_eaprojxy

same as ol_q_ipf_eaprojxy, in the standard triangle (crystal symmetry)

ol_q_ipf_crysym_stproj

same as ol_q_ipf_stproj, in the standard triangle (crystal symmetry)

ol_q_ipf_crysym_stproj_rad

same as ol_q_ipf_crysym_stproj, with angles in radians

ol_q_ipf_crysym_stprojxy

same as ol_q_ipf_stprojxy, in the standard triangle (crystal symmetry)

ol_q_ipf_eaproj

equal-area projection in a inverse pole figure of an orientation (quaternion), polar coordinates

ol_q_ipf_eaproj_rad

same as ol_q_ipf_eaproj, with angles in radians

ol_q_ipf_eaprojxy

equal-area projection in a inverse pole figure of an orientation (quaternion), Cartesian coordinates

ol_q_ipf_stproj

stereographic projection in a inverse pole figure of an orientation (quaternion), polar coordinates

ol_q_ipf_stproj_rad

same as ol_q_ipf_stproj, with angles in radians

ol_q_ipf_stprojxy

stereographic projection in a inverse pole figure of an orientation (quaternion), Cartesian coordinates

ol_q_isspecial

1 if a quaternion is a special orientation, 0 otherwise

ol_q_isuniform

1 if a quaternion is the uniform distribution, 0 otherwise

ol_q_label

label of a special orientation (quaternion)

ol_q_lnq

logarithm of a quaternion

ol_q_m

converts a quaternion into Miller indices (several solutions, with their qualities)

ol_q_pf_eaproj

equal-area projection in a pole figure of an orientation (quaternion), polar coordinates

ol_q_pf_eaproj_rad

same as ol_q_pf_eaproj, with angles in radians

ol_q_pf_eaprojxy

equal-area projection in a pole figure of an orientation (quaternion), Cartesian coordinates

ol_q_pf_stproj

stereographic projection in a pole figure of an orientation (quaternion), polar coordinates

ol_q_pf_stproj_rad

same as ol_q_pf_stproj, with angles in radians

ol_q_pf_stprojxy

stereographic projection in a pole figure of an orientation (quaternion), Cartesian coordinates

ol_q_q

makes a quaternion positive

ol_q_q_disori

disorientation angle between two orientations (quaternions)

ol_q_q_disori_fr_rad

faster disorientation angle (radians) between two orientations (quaternions, cubic symmetry)

ol_q_q_disori_orthotropic

disorientation angle between two orientations (quaternions), with orthotropic sample symmetry

ol_q_q_disori_orthotropic_rad

same as ol_q_q_disori_orthotropic, with angles in radians

ol_q_q_disori_rad

same as ol_q_q_disori, with angles in radians

ol_q_q_misori

misorientation angle between two orientations (quaternions)

ol_q_q_misori_orthotropic

misorientation angle between two orientations (quaternions), with orthotropic sample symmetry

ol_q_q_misori_orthotropic_rad

same as ol_q_q_misori_orthotropic, with angles in radians

ol_q_q_misori_rad

same as ol_q_q_misori, with angles in radians

ol_q_q_q

combination of two quaternions (current coordinate systems)

ol_q_q_q_cur

same as ol_q_q_q

ol_q_q_q_ref

combination of two quaternions (reference coordinate system)

ol_q_q_qdisori

disorientation (quaternion) between two orientations (reference coordinate system)

ol_q_q_qdisori_cur

disorientation (quaternion) between two orientations (coordinate system of crystal 1)

ol_q_q_qdisori_orthotropic

disorientation (quaternion) between two orientations, with orthotropic sample symmetry

ol_q_q_qdisori_ref

same as ol_q_q_qdisori

ol_q_q_qdisori_update

disorientation (quaternion) between two orientations, using a previous symmetry operator index

ol_q_q_qmisori

misorientation (quaternion) between two orientations (reference coordinate system)

ol_q_q_qmisori_cur

misorientation (quaternion) between two orientations (coordinate system of crystal 1)

ol_q_q_qmisori_orthotropic

misorientation (quaternion) between two orientations, with orthotropic sample symmetry

ol_q_q_qmisori_ref

same as ol_q_q_qmisori

ol_q_qcrysym

preferred crystallographically related orientation (quaternion)

ol_q_qrefsym_orthotropic

preferred symmetrical orientation (quaternion) for orthotropic sample symmetry

ol_q_r

converts a quaternion into a rotation axis

ol_q_refcsys

expresses an orientation (quaternion) in a new reference coordinate system

ol_q_refsym

symmetrical orientation (quaternion) with respect to a sample plane

ol_q_refsym_monoclinic

symmetrical orientations (quaternion) for monoclinic sample symmetry

ol_q_refsym_orthotropic

distinct symmetrical orientations (quaternion) for orthotropic sample symmetry

ol_q_refsym_orthotropic_all

the 4 symmetrical orientations (quaternion) for orthotropic sample symmetry

ol_q_refsym_q

disorientation (quaternion) between an orientation and a sample plane (cubic symmetry)

ol_q_rtheta

converts a quaternion into a rotation axis / angle pair

ol_q_rtheta_rad

same as ol_q_rtheta, with angles in radians

ol_q_specialid

identifier of a special orientation (quaternion)

ol_q_theta

converts a quaternion into a rotation angle

ol_q_theta_rad

same as ol_q_theta, with angles in radians

ol_q_vect_vect

rotation of a vector by a quaternion

ol_rtheta_R

converts a rotation axis / angle pair into a Rodrigues vector

ol_rtheta_R_rad

same as ol_rtheta_R, with angles in radians

ol_rtheta_g

converts a rotation axis / angle pair into a rotation matrix

ol_rtheta_g_rad

same as ol_rtheta_g, with angles in radians

ol_rtheta_q

converts a rotation axis / angle pair into a quaternion

ol_rtheta_q_rad

same as ol_rtheta_q, with angles in radians

ol_rtheta_rtheta

brings the angle of a rotation axis / angle pair into [0, 180]

ol_rtheta_rtheta_rad

same as ol_rtheta_rtheta, with angles in radians

ol_set_filter

filtering of an orientation set (quaternions)

ol_set_filter_iter

iterative filtering of an orientation set (quaternions)

ol_specialid_label

label of a special orientation (identifier)

ol_specialid_q

quaternion of a special orientation (identifier)

ol_srand_e

random orientations (Euler angles)

ol_srand_e_rad

same as ol_srand_e, with angles in radians

ol_stproj_vect

unit vector of a stereographic projection (polar coordinates)

ol_stproj_vect_rad

same as ol_stproj_vect, with angles in radians

ol_stprojxy_vect

unit vector of a stereographic projection (Cartesian coordinates)

ol_theta_deg2rad

converts an angle from degrees into radians

ol_theta_rad2deg

converts an angle from radians into degrees

ol_vect_crysym

vector obtained by a symmetry operator of given index

ol_vect_crysym_all

distinct vectors obtained by all symmetry operators

ol_vect_eaproj

equal-area projection of a unit vector (polar coordinates)

ol_vect_eaproj_rad

same as ol_vect_eaproj, with angles in radians

ol_vect_eaprojxy

equal-area projection of a unit vector (Cartesian coordinates)

ol_vect_ipfweight

weights of a unit vector with respect to the corners of the standard triangle

ol_vect_refsym

symmetrical vector with respect to a sample plane

ol_vect_stproj

stereographic projection of a unit vector (polar coordinates)

ol_vect_stproj_rad

same as ol_vect_stproj, with angles in radians

ol_vect_stprojxy

stereographic projection of a unit vector (Cartesian coordinates)

ol_vect_vect_g

rotation (rotation matrix) of minimum angle between two vectors

ol_vect_vect_q

rotation (quaternion) of minimum angle between two vectors

ol_vect_vect_rtheta

rotation (axis / angle pair) of minimum angle between two vectors

ol_vect_vect_rtheta_rad

same as ol_vect_vect_rtheta, with angles in radians

ol_vect_vect_theta

angle between two vectors

ol_vect_vect_theta_rad

same as ol_vect_vect_theta, with angles in radians