Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - johannes.mckay

Pages: [1]
1
Code: [Select]
intmat = {
     {-1.1, 0., 0.},
     {0., -1.3, 0.},
     {0., 0., 2.2}
    } ;
intmat // MatrixForm
operatorDint = opI["S1"].intmat.opI["S2"]
ExpressOperator[operatorDint, SphericalTensorOperatorBasis[]]
Fails as the zeros are Real and not integer. A workaround is to use chop but this wasn't too obvious from the error message which is returned on entering the code above.
Although an easier work around is obviously to specify
Code: [Select]
intmat = {
     {-1.1, 0, 0},
     {0, -1.3, 0},
     {0, 0, 2.2}
    } ;
but if I was to multiply this by a real constant then mathematica would make the zero elements real again making chop necessary again.

Hopefully this makes some sense. Cheers,
Johannes

2
Simulations / Cartesian interaction matrix into spherical tensor
« on: July 02, 2012, 09:28:47 AM »
Thanks for any help to this question(s)!

I am having a bit of trouble translating a cartesian interaction matrix into a spherical tensor, I have managed to do this by hand following the guide handed out by Ilya and using the tables of coefficients, but doing it in SpinDynamica leaves me a little bit lost. Are there any functions particularly suited to this operation, I didn't find anything in the usage examples but I might have missed them?

Cheers,
Johannes

Pages: [1]