|
Orientation combination of material symmetry and specific rotation.
Public Member Functions | |||||||
def | __copy__ (self) | ||||||
def | __init__ (self, quaternion=Quaternion.fromIdentity(), Rodrigues=None, angleAxis=None, matrix=None, Eulers=None, random=False, symmetry=None) | ||||||
def | __repr__ (self) | ||||||
def | asAngleAxis (self, degrees=False) | ||||||
def | asEulers (self, notation='bunge', degrees=False, standardRange=False) | ||||||
def | asMatrix (self) | ||||||
def | asQuaternion (self) | ||||||
def | asRodrigues (self) | ||||||
def | equivalentOrientations (self, who=[]) | ||||||
def | equivalentQuaternions (self, who=[]) | ||||||
def | inFZ (self) | ||||||
Check whether given Rodrigues vector falls into fundamental zone of own symmetry. More... | |||||||
def | reduced (self) | ||||||
Transform orientation to fall into fundamental zone according to symmetry. More... | |||||||
MATERIAL SPECIFIC ROUTINES | |||||||
Disorientation between myself and given other orientation. Rotation axis falls into SST if SST == True. (Currently requires same symmetry for both orientations. Look into A. Heinz and P. Neumann 1991 for cases with differing sym.)
| |||||||
def | disorientation (self, other, SST=True) | ||||||
def | inversePole (self, axis, proper=False, SST=True) | ||||||
axis rotated according to orientation (using crystal symmetry to ensure location falls into SST) More... | |||||||
def | IPFcolor (self, axis, proper=False) | ||||||
color of inverse pole figure for given axis More... | |||||||
def | average (cls, orientations, multiplicity=[]) | ||||||
Return the average orientation. More... | |||||||
PLOTTING, PRINTING | |||||||
down y, -x up -y, x right x,y left -x,-y 3D x,y,z | |||||||
def | project (self, x, y, z) | ||||||
def | plotLine (self, ax, start, delta, color='k', lw=1, ls='solid', markerSize=None) | ||||||
Plot one line using given projection. More... | |||||||
def | plotUnit (self, ax, xlabel, ylabel, zlabel, x=0, y=0, z=0, s=1) | ||||||
Coordinate see plotLine. More... | |||||||
def | plot (self, poles=None, unitCell=True, cos=True, annotate=False, plot2D=None, scale=2, fileName=None) | ||||||
Plot rotated unit-cell in 3D, and possibly the pole-figure and specific poles. More... | |||||||
def | toScreen (self, equivalent=True) | ||||||
print Euler angles and HKL /UVW More... | |||||||
MISC | |||||||
Related
| |||||||
def | related (self, relationModel, direction, targetSymmetry=None) | ||||||
Properties | |
angleAxis = property(asAngleAxis) | |
eulers = property(asEulers) | |
infz = property(inFZ) | |
matrix = property(asMatrix) | |
rodrigues = property(asRodrigues) | |
def ebsd_Orientation.Orientation.__init__ | ( | self, | |
quaternion = Quaternion.fromIdentity() , |
|||
Rodrigues = None , |
|||
angleAxis = None , |
|||
matrix = None , |
|||
Eulers = None , |
|||
random = False , |
|||
symmetry = None |
|||
) |
def ebsd_Orientation.Orientation.__copy__ | ( | self | ) |
def ebsd_Orientation.Orientation.__repr__ | ( | self | ) |
def ebsd_Orientation.Orientation.asAngleAxis | ( | self, | |
degrees = False |
|||
) |
def ebsd_Orientation.Orientation.asEulers | ( | self, | |
notation = 'bunge' , |
|||
degrees = False , |
|||
standardRange = False |
|||
) |
def ebsd_Orientation.Orientation.asMatrix | ( | self | ) |
def ebsd_Orientation.Orientation.asQuaternion | ( | self | ) |
def ebsd_Orientation.Orientation.asRodrigues | ( | self | ) |
def ebsd_Orientation.Orientation.average | ( | cls, | |
orientations, | |||
multiplicity = [] |
|||
) |
Return the average orientation.
ref F. Landis Markley, Yang Cheng, John Lucas Crassidis, and Yaakov Oshman, Averaging Quaternions, Journal of Guidance, Control, and Dynamics, Vol. 30, No. 4 (2007), pp. 1193-1197. doi 10.2514/1.28949
cls | class method (void) |
orientations | list of orientations |
multiplicity | – |
def ebsd_Orientation.Orientation.disorientation | ( | self, | |
other, | |||
SST = True |
|||
) |
def ebsd_Orientation.Orientation.equivalentOrientations | ( | self, | |
who = [] |
|||
) |
def ebsd_Orientation.Orientation.equivalentQuaternions | ( | self, | |
who = [] |
|||
) |
def ebsd_Orientation.Orientation.inFZ | ( | self | ) |
Check whether given Rodrigues vector falls into fundamental zone of own symmetry.
def ebsd_Orientation.Orientation.inversePole | ( | self, | |
axis, | |||
proper = False , |
|||
SST = True |
|||
) |
axis rotated according to orientation (using crystal symmetry to ensure location falls into SST)
axis | vector in crystal orientation, e.g. [100] |
proper | considers only vectors with z >= 0, hence uses two neighboring SSTs to determine if in SST. i.e. allows more positive results, rgb-value does not depend on this |
SST | iterate through all equivalent and find the one in the SST |
def ebsd_Orientation.Orientation.IPFcolor | ( | self, | |
axis, | |||
proper = False |
|||
) |
color of inverse pole figure for given axis
axis | axis of pole figure (ND=001) |
proper | considers only vectors with z >= 0, hence uses two neighboring SSTs to determine if in SST. i.e. allows more positive results, rgb-value does not depend on this |
def ebsd_Orientation.Orientation.plot | ( | self, | |
poles = None , |
|||
unitCell = True , |
|||
cos = True , |
|||
annotate = False , |
|||
plot2D = None , |
|||
scale = 2 , |
|||
fileName = None |
|||
) |
Plot rotated unit-cell in 3D, and possibly the pole-figure and specific poles.
Projection onto 2D: cooradinate systems are given as xDirection-yDirection (z follows)
poles | if given (e.g. [1,0,0]), plot pole-figure and the corresponding poles |
unitCell | plot unit cell |
cos | plot coordinate system |
annotate | annotate poles in pole figure (requires poles given) |
plot2D | do a normal projection onto 2D plane: [down-right, up-left, None] |
scale | scale of pole-figure dome over crystal |
fileName | fileName for image output (if given, image not shown) |
def ebsd_Orientation.Orientation.plotLine | ( | self, | |
ax, | |||
start, | |||
delta, | |||
color = 'k' , |
|||
lw = 1 , |
|||
ls = 'solid' , |
|||
markerSize = None |
|||
) |
Plot one line using given projection.
ax | axis to plot into |
start | start coordinate |
delta | delta cooradinate (end-start) |
color | color |
lw | line width |
ls | line style "solid",'dashed' |
markerSize | size of marker (only used for non-lines: delta>0) |
def ebsd_Orientation.Orientation.plotUnit | ( | self, | |
ax, | |||
xlabel, | |||
ylabel, | |||
zlabel, | |||
x = 0 , |
|||
y = 0 , |
|||
z = 0 , |
|||
s = 1 |
|||
) |
Coordinate see plotLine.
ax | axis to used for plotting |
xlabel | x-label |
ylabel | y-label |
zlabel | z-label |
x | x-coordinate of origin |
y | y-coordinate of origin |
z | z-coordinate of origin |
s | scale |
def ebsd_Orientation.Orientation.project | ( | self, | |
x, | |||
y, | |||
z | |||
) |
def ebsd_Orientation.Orientation.reduced | ( | self | ) |
Transform orientation to fall into fundamental zone according to symmetry.
def ebsd_Orientation.Orientation.related | ( | self, | |
relationModel, | |||
direction, | |||
targetSymmetry = None |
|||
) |
def ebsd_Orientation.Orientation.toScreen | ( | self, | |
equivalent = True |
|||
) |
print Euler angles and HKL /UVW
equivalent | print also equivalent orientations |