Differences
This shows you the differences between two versions of the page.
documentation:tutorials:nio_ligand_field:fy_rixs_nixs_include [2016/10/09 15:35] – created Maurits W. Haverkort | documentation:tutorials:nio_ligand_field:fy_rixs_nixs_include [2016/10/10 09:41] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{indexmenu_n> | ||
+ | ====== FY RIXS nIXS include ====== | ||
+ | ### | ||
+ | In order to shorten the examples, make them better readable and focus more on the new part introduced in the calculation we split the input file into several parts which are saved as separate files. The input file attached here defines all operators and calculates the ground-state. The tutorials use these to calculate spectra. | ||
+ | ### | ||
+ | |||
+ | <code Quanty Include.Quanty> | ||
+ | -- The example on Fluorescence yield, RIXS and non-resonant IXS all need a very similar | ||
+ | -- starting point. We need to define the Ground-state and some operators on this state. | ||
+ | -- We need to define Hamiltonians with either a 2p or 3s core hole and interactions between | ||
+ | -- these. | ||
+ | |||
+ | -- Here we create a file that is included in tutorials later | ||
+ | |||
+ | Verbosity(0) | ||
+ | |||
+ | NF=28 | ||
+ | NB=0 | ||
+ | IndexDn_2p={ 0, 2, 4} | ||
+ | IndexUp_2p={ 1, 3, 5} | ||
+ | IndexDn_3s={ 6} | ||
+ | IndexUp_3s={ 7} | ||
+ | IndexDn_3d={ 8, | ||
+ | IndexUp_3d={ 9, | ||
+ | IndexDn_Ld={18, | ||
+ | IndexUp_Ld={19, | ||
+ | |||
+ | -- angular momentum operators on the d-shell | ||
+ | |||
+ | OppSx_3d | ||
+ | OppSy_3d | ||
+ | OppSz_3d | ||
+ | OppSsqr_3d =NewOperator(" | ||
+ | OppSplus_3d=NewOperator(" | ||
+ | OppSmin_3d =NewOperator(" | ||
+ | |||
+ | OppLx_3d | ||
+ | OppLy_3d | ||
+ | OppLz_3d | ||
+ | OppLsqr_3d =NewOperator(" | ||
+ | OppLplus_3d=NewOperator(" | ||
+ | OppLmin_3d =NewOperator(" | ||
+ | |||
+ | OppJx_3d | ||
+ | OppJy_3d | ||
+ | OppJz_3d | ||
+ | OppJsqr_3d =NewOperator(" | ||
+ | OppJplus_3d=NewOperator(" | ||
+ | OppJmin_3d =NewOperator(" | ||
+ | |||
+ | Oppldots_3d=NewOperator(" | ||
+ | |||
+ | -- Angular momentum operators on the Ligand shell | ||
+ | |||
+ | OppSx_Ld | ||
+ | OppSy_Ld | ||
+ | OppSz_Ld | ||
+ | OppSsqr_Ld =NewOperator(" | ||
+ | OppSplus_Ld=NewOperator(" | ||
+ | OppSmin_Ld =NewOperator(" | ||
+ | |||
+ | OppLx_Ld | ||
+ | OppLy_Ld | ||
+ | OppLz_Ld | ||
+ | OppLsqr_Ld =NewOperator(" | ||
+ | OppLplus_Ld=NewOperator(" | ||
+ | OppLmin_Ld =NewOperator(" | ||
+ | |||
+ | OppJx_Ld | ||
+ | OppJy_Ld | ||
+ | OppJz_Ld | ||
+ | OppJsqr_Ld =NewOperator(" | ||
+ | OppJplus_Ld=NewOperator(" | ||
+ | OppJmin_Ld =NewOperator(" | ||
+ | |||
+ | -- total angular momentum | ||
+ | OppSx = OppSx_3d + OppSx_Ld | ||
+ | OppSy = OppSy_3d + OppSy_Ld | ||
+ | OppSz = OppSz_3d + OppSz_Ld | ||
+ | OppSsqr = OppSx * OppSx + OppSy * OppSy + OppSz * OppSz | ||
+ | OppLx = OppLx_3d + OppLx_Ld | ||
+ | OppLy = OppLy_3d + OppLy_Ld | ||
+ | OppLz = OppLz_3d + OppLz_Ld | ||
+ | OppLsqr = OppLx * OppLx + OppLy * OppLy + OppLz * OppLz | ||
+ | OppJx = OppJx_3d + OppJx_Ld | ||
+ | OppJy = OppJy_3d + OppJy_Ld | ||
+ | OppJz = OppJz_3d + OppJz_Ld | ||
+ | OppJsqr = OppJx * OppJx + OppJy * OppJy + OppJz * OppJz | ||
+ | |||
+ | -- define the coulomb operator | ||
+ | -- we here define the part depending on F0 seperately from the part depending on F2 | ||
+ | -- when summing we can put in the numerical values of the slater integrals | ||
+ | |||
+ | OppF0_3d =NewOperator(" | ||
+ | OppF2_3d =NewOperator(" | ||
+ | OppF4_3d =NewOperator(" | ||
+ | |||
+ | -- define onsite energies - crystal field | ||
+ | -- Akm = {{k1, | ||
+ | |||
+ | Akm = PotentialExpandedOnClm(" | ||
+ | OpptenDq_3d = NewOperator(" | ||
+ | OpptenDq_Ld = NewOperator(" | ||
+ | |||
+ | Akm = PotentialExpandedOnClm(" | ||
+ | OppNeg_3d = NewOperator(" | ||
+ | OppNeg_Ld = NewOperator(" | ||
+ | Akm = PotentialExpandedOnClm(" | ||
+ | OppNt2g_3d = NewOperator(" | ||
+ | OppNt2g_Ld = NewOperator(" | ||
+ | |||
+ | OppNUp_2p = NewOperator(" | ||
+ | OppNDn_2p = NewOperator(" | ||
+ | OppN_2p = OppNUp_2p + OppNDn_2p | ||
+ | OppNUp_3s = NewOperator(" | ||
+ | OppNDn_3s = NewOperator(" | ||
+ | OppN_3s = OppNUp_3s + OppNDn_3s | ||
+ | OppNUp_3d = NewOperator(" | ||
+ | OppNDn_3d = NewOperator(" | ||
+ | OppN_3d = OppNUp_3d + OppNDn_3d | ||
+ | OppNUp_Ld = NewOperator(" | ||
+ | OppNDn_Ld = NewOperator(" | ||
+ | OppN_Ld = OppNUp_Ld + OppNDn_Ld | ||
+ | |||
+ | -- define L-d interaction | ||
+ | |||
+ | Akm = PotentialExpandedOnClm(" | ||
+ | OppVeg | ||
+ | Akm = PotentialExpandedOnClm(" | ||
+ | OppVt2g = NewOperator(" | ||
+ | |||
+ | -- core valence interaction 2p to 3d | ||
+ | |||
+ | Oppcldots= NewOperator(" | ||
+ | OppUpdF0 = NewOperator(" | ||
+ | OppUpdF2 = NewOperator(" | ||
+ | OppUpdG1 = NewOperator(" | ||
+ | OppUpdG3 = NewOperator(" | ||
+ | |||
+ | -- core valence interaction 3s to 3d | ||
+ | |||
+ | OppUsdF0 = NewOperator(" | ||
+ | OppUsdG2 = NewOperator(" | ||
+ | |||
+ | -- next we define the dipole operator. The dipole operator is given as epsilon.r | ||
+ | -- with epsilon the polarization vector of the light and r the unit position vector | ||
+ | -- We can expand the position vector on (renormalized) spherical harmonics and use | ||
+ | -- the crystal-field operator to create the dipole operator. | ||
+ | |||
+ | -- we both define the dipole operator between the 2p and 3d shell as well as the dipole | ||
+ | -- operator between the 3s and 2p shell | ||
+ | |||
+ | -- x polarized light is defined as x = Cos[phi]Sin[theta] = sqrt(1/2) ( C_1^{(-1)} - C_1^{(1)}) | ||
+ | Akm = {{1, | ||
+ | T2p3dx = NewOperator(" | ||
+ | T3s2px = NewOperator(" | ||
+ | -- y polarized light is defined as y = Sin[phi]Sin[theta] = sqrt(1/2) I ( C_1^{(-1)} + C_1^{(1)}) | ||
+ | Akm = {{1, | ||
+ | T2p3dy = NewOperator(" | ||
+ | T3s2py = NewOperator(" | ||
+ | -- z polarized light is defined as z = Cos[theta] = C_1^{(0)} | ||
+ | Akm = {{1,0,1}} | ||
+ | T2p3dz = NewOperator(" | ||
+ | T3s2pz = NewOperator(" | ||
+ | |||
+ | -- besides linear polarized light one can define circular polarized light as the sum of | ||
+ | -- x and y polarizations with complex prefactors | ||
+ | T2p3dr = sqrt(1/ | ||
+ | T2p3dl =-sqrt(1/ | ||
+ | |||
+ | -- we can remove zero's from the dipole operator by chopping it. | ||
+ | T2p3dr.Chop() | ||
+ | T2p3dl.Chop() | ||
+ | |||
+ | -- the 3d to 2p dipole transition is the conjugate transpose of the 2p to 3d dipole transition | ||
+ | T3d2px = ConjugateTranspose(T2p3dx) | ||
+ | T3d2py = ConjugateTranspose(T2p3dy) | ||
+ | T3d2pz = ConjugateTranspose(T2p3dz) | ||
+ | T3d2pl = ConjugateTranspose(T2p3dl) | ||
+ | T3d2pr = ConjugateTranspose(T2p3dr) | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Table of contents ===== | ||
+ | {{indexmenu> |