Skip to content

module myna.application.exaca.id


function rotation_matrix_to_euler

rotation_matrix_to_euler(R, frame='passive')

Convert rotation matrices to the corresponding set of Euler angles in the Bunge ZXZ passive reference frame

Adapted from D. Depriester, 2018. https://doi.org/10.13140/RG.2.2.34498.48321/5

Args:

  • R: [M,M] rotation matrix or [N,M,M] array of N rotation matrices
  • frame: reference frame for the given rotation matrix, options are "passive" (matrix for sample frame rotating to crystal frame) or "active" (matrix for crystal frame rotating to sample frame)

function load_grain_ids

load_grain_ids(fileName)

function grain_id_to_reference_id

grain_id_to_reference_id(grain_ids, num_ref_ids)

Converts ExaCA grain IDs to the reference orientation ID

Args:

  • grain_ids: list-like of grain ids
  • num_ref_ids: number of reference orientations (e.g., rows in reference file)

function convert_id_to_rotation

convert_id_to_rotation(
    vtk_reader,
    ref_id_file,
    misorientation=0.0,
    update_ids=False
)

This file was automatically generated via lazydocs.