Recent Posts

Pages: 1 [2] 3 4 ... 10
11
Simulations / Re: Euler angles in orientation.m
« Last post by kuprov on September 27, 2016, 10:42:32 AM »
OK, tracked it down to a stray rotation sign convention. The patch is below -- unzip and put into the corresponding kernel directories, overwirting the pre-existing files. Rotations are now all syncronised to Brink and Satchler - Equation 2.13 and the preceding paragraph. Note that "rotation around Y" means that Z axis is tilting towards X, hence the the different sign pattern in the middle rotation matrix in euler2dcm(). The attached test file is now passed successfully, as well as all the other tests that we typically run for release.
12
Simulations / Re: Euler angles in orientation.m
« Last post by kuprov on September 25, 2016, 09:47:38 AM »
Investigating...

The most likely answer is that the lectures are wrong -- rotations in Spinach kernel are extensively tested against a dozen different calculation types.
13
Simulations / Euler angles in orientation.m
« Last post by johncprice on September 25, 2016, 01:24:12 AM »
I have a question about Euler angles in Spinach.

I created a set of spin coordinates, rotated them using Euler angles (alpha,beta,gamma), and then created the full dipole Hamiltonian using

spin_system=assume(spin_system,'nmr');
[H,Q]=hamiltonian(spin_system,'comm');
H1=H+orientation(Q,[0,0,0]);

Now I do the same thing another way, by creating a spin system using the un-rotated coordinates and passing the Euler angles to orientation.m as follows:

spin_system=assume(spin_system,'nmr');
[H,Q]=hamiltonian(spin_system,'comm');
H2=H+orientation(Q,[gamma,-beta,alpha]);

It works! The two Hamiltonians are the same to high precision for various values of the angles.

But the call to orientation(Q,[gamma,-beta,alpha]) suggests to me that I am using the wrong Euler angle convention.  I am using the one given in Kuprov's lecture sd_m2_lecture_03.pdf which corresponds to gamma rotation about z, beta rotation about y, alpha rotation about z. Is a different one being used?
14
Bug reports / Bug - Transformation Amplitude Table (SDv.15.1b7).
« Last post by sje1g13 on September 14, 2016, 10:35:32 AM »
Hi,

I believe that there is a possible clash between SVv2.15.1b7 and the latest version of Mathematica (11.0.0.0) when using Transformation Amplitude Table.

A Mathematica/SpinDynamica notebook has been attached. The notebook is commented and should explain the problem sufficiently.

Regards,
Stuart.
15
Excellent, Malcolm!

Thanks so much,
Andy
16
Hi Andy,
 while introducing SD v2.14.3, which is compatible with Mathematica 11, I also located and fixed this problem.
all the best
malcolm
17
Bug reports / Re: Mathematica 11
« Last post by MalcolmHLevitt on August 16, 2016, 05:07:46 PM »
The latest release 2.14.3 is now compatible with Mathematica 11.

However, the SpinDynamica symbol Duration conflicts with the newly introduced Mathematica 11 symbol of the same name, and has been replaced by EventDuration.
18
SpinDynamica 2.14.3 has been released.

This version is compatible with Mathematica 11.

Note that the SpinDynamica symbol Duration clashes with the Mathematica 11 symbol of the same name and has been superseded by EventDuration

Download here: https://www.dropbox.com/sh/3ib0qrpl6mxguhu/AAAUs8MyIPdu1kxmorDgM7Apa?dl=0
19
Bug reports / Mathematica 11
« Last post by MalcolmHLevitt on August 15, 2016, 04:14:49 PM »
The latest release of SpinDynamica (2.14.2) does not yet run under the newly-released Mathematica 11. This is because Wolfram have introduced a new built-in symbol Duration which conflicts with its prior definition under SpinDynamica. A Mathematica11 workaround will be released shortly.

Malcolm
20
Examples / 2D spectroscopy
« Last post by MalcolmHLevitt on July 28, 2016, 02:05:40 PM »
Although SpinDynamica does not yet contain a fully general routine for 2D spectral simulation, the attached notebook allows the calculation of 2D spectra in some useful special cases. Code of this kind will be included in SpinDynamica itself, in future releases.

As usual the graphics have been stripped out but will be regenerated upon running the notebook.
Pages: 1 [2] 3 4 ... 10