Dear forum,
We are in interested performing some crystal field calculations for RIXS and for this we would like to be able to independently generate the crystal field Hamiltonian and and apply basis transforms before passing it into our separate EDRIXS code. Would someone be able to point me towards the underlying code in mantid that generates the crystal field Hamiltonian (I’m presuming/hoping that it is open source). i.e. where can I see what exactly is happening when I call the code below:
from CrystalField import CrystalField
cf = CrystalField(‘Yb’, ‘C1’,
B20 =-0.257755, B21 =-1.02396, B22 =1.86686,
B40 =-0.0115496, B41 =0.00609532, B42 =0.035768, B43 =-0.0865939, B44 =0.0463316,
B60 =3.2935e-006, B61 =-0.00100726, B62 =0.000250686, B63 =-0.00230406,
B64 =0.000218702, B65 =0.0026247, B66 =0.000606366)
h = cf.getHamiltonian()
I appreciate that I could hack something together by saving and loading the matrix, but I would prefer to properly see which steps are happening in the underlying code.
Thanks in advance,
Mark