Author: bugman
Date: Sun Nov  2 22:14:41 2014
New Revision: 26412

URL: http://svn.gna.org/viewcvs/relax?rev=26412&view=rev
Log:
Implemented the compile_1st_matrix_free_rotor() function.

This is for the lib.frame_order.free_rotor module.  The function will calculate 
the 1st degree
in-frame frame order matrix for the free rotor model.

Modified:
    branches/frame_order_cleanup/lib/frame_order/free_rotor.py

Modified: branches/frame_order_cleanup/lib/frame_order/free_rotor.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/frame_order_cleanup/lib/frame_order/free_rotor.py?rev=26412&r1=26411&r2=26412&view=diff
==============================================================================
--- branches/frame_order_cleanup/lib/frame_order/free_rotor.py  (original)
+++ branches/frame_order_cleanup/lib/frame_order/free_rotor.py  Sun Nov  2 
22:14:41 2014
@@ -24,6 +24,25 @@
 
 # relax module imports.
 from lib.frame_order.matrix_ops import rotate_daeg
+
+
+def compile_1st_matrix_free_rotor(matrix, R_eigen):
+    """Generate the 1st degree Frame Order matrix for the free rotor model.
+
+    @param matrix:      The Frame Order matrix, 1st degree to be populated.
+    @type matrix:       numpy 3D, rank-2 array
+    @param R_eigen:     The eigenframe rotation matrix.
+    @type R_eigen:      numpy 3D, rank-2 array
+    """
+
+    # Zeros.
+    matrix[:] = 0.0
+
+    # The single value.
+    matrix[2, 2] = 1.0
+
+    # Rotate and return the frame order matrix.
+    return rotate_daeg(matrix, R_eigen)
 
 
 def compile_2nd_matrix_free_rotor(matrix, Rx2_eigen):


_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-commits mailing list
[email protected]

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

Reply via email to