module myna.application.exaca.subgrain
function rotate_grains
rotate_grains(
dfMerged,
gids,
misorientation,
update_ids,
ref_or,
ref_id,
ref_cols_ids
)
Given a pandas DataFrame with Euler angles phi1, Phi, and phi2, rotate each grain voxel by the specified misorientation rate
Args:
dfMerged: (pandas DataFrame) DataFrame containing at least,X (m),Y (m),Z (m),phi1,Phi, andphi2gids: (list of int) list of grain IDs contained withindfMergedto which to apply the misorientationsmisorientation: (float) misorientation rate (angle/meter) in the same angular units asphi1, with standard for ExaCA being degreesupdate_ids: (bool) whether to update the IDs of each voxel to match to closest ID to their new orientationref_or: (numpy array) (N, 3) array ofphi1,Phi,phi2of the reference orientations, with default ExaCA being N=10000ref_id: (numpy array) (N, 1) array ofReference IDof the reference orientations, with default ExaCA being N=10000ref_cols_ids: (list of ints) array of column indices forphi1,Phi, andphi2indfMerged
This file was automatically generated via lazydocs.