Home > Applications > SpinW > m_files > @sw > twinq.m

iFit/twinq

PURPOSE ^

calculates equivalent Q point in twins

SYNOPSIS ^

function [Qtwin, rotQout] = twinq(obj, Q0)

DESCRIPTION ^

 calculates equivalent Q point in twins

 [Qtwin, rotQ] = TWINQ(obj, {Q0})

 Qtwin are the Q values in the twin coordinate systems, in r.l.u.
 rotQ are the rotation matrices, that transforms Q points (in r.l.u.
 units) from the original crystal to the selected twin r.l.u. coordinate
 system.

 Input:

 Q0        Q values in the original crystal in r.l.u. Dimensions are
           [3 nQ]. Optional.

 Output:

 Qtwin     Q values in the twin oordinate system in a cell element for
           each twin.
 rotQ      Rotation matrices, dimensions are [3 3 nTwin].

 Example:

 ...
 Q1 = [1 0 0; 1 1 0];
 Q2 = cryst.twinq(Q1');

 This example Calculates the [1 0 0] and [1 1 0] Bragg reflections
 equivalent position in the twins.

 See also SW, SW.ADDTWIN.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 26-Nov-2018 15:08:42 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1