Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
documentation:language_reference:functions:createfluorescenceyield [2016/10/09 22:03] – created Maurits W. Haverkort | documentation:language_reference:functions:createfluorescenceyield [2018/05/12 22:50] (current) – Maurits W. Haverkort | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== CreateFluorescenceYield ====== | ||
+ | ### | ||
+ | // | ||
+ | \begin{equation} | ||
+ | \langle \psi | O_2^{\dagger} \frac{1}{(\omega - \mathrm{i} \Gamma/2 + E_0 - O_1^{\dagger})} O_3^{\dagger} O_3\frac{1}{(\omega + \mathrm{i} \Gamma/2 + E_0 - O_1)} O_2 | \psi \rangle, | ||
+ | \end{equation} | ||
+ | with $E_0 = \langle \psi | O_1 | \psi \rangle$. The spectrum is returned as a spectrum object. Please note that fluorescence yield is the expectation value of an Hermitian operator. The returned spectrum is thus completely real. Possible options are: | ||
+ | ### | ||
+ | |||
+ | ===== Input ===== | ||
+ | |||
+ | * $O_1$ : Operator | ||
+ | * $O_2$ : Operator | ||
+ | * $O_3$ : Operator | ||
+ | * $psi$ : Wavefunction | ||
+ | * Possible options are | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | |||
+ | |||
+ | ===== Output ===== | ||
+ | |||
+ | * //G// : Spectra object | ||
+ | |||
+ | ===== Example ===== | ||
+ | |||
+ | ### | ||
+ | description text | ||
+ | ### | ||
+ | |||
+ | ==== Input ==== | ||
+ | <code Quanty CreateFluorescenceYield.Quanty> | ||
+ | dofile(" | ||
+ | -- define an Hamiltonian (in this case a magnetic field of 6 tesla in the z direction) | ||
+ | H = 6 * EnergyUnits.Tesla.value * (2*OppSz + OppLz) | ||
+ | -- define a transition operator (in this case a pulsed magnetic field of 20 tesla in the x direction) | ||
+ | T1 = 20 * EnergyUnits.Tesla.value * (2*OppSx + OppLx) | ||
+ | -- define a ground-state (in this case a p electron with spin and angular momentum down) | ||
+ | psigrd = psim1dn | ||
+ | -- define a feritale operator to be able to calculate FY | ||
+ | T2 = (2*OppSy + OppLy) | ||
+ | |||
+ | -- calculate < psigrd | T1^dag 1/ | ||
+ | -- with E0 = <psigrd | H | psigrd > | ||
+ | spec = CreateFluorescenceYield(H, | ||
+ | |||
+ | -- the real and imaginary=0 part on a fixed energy grid | ||
+ | print(spec) | ||
+ | </ | ||
+ | |||
+ | ==== Result ==== | ||
+ | <file Quanty_Output CreateFluorescenceYield.out> | ||
+ | Start of LanczosTriDiagonalizeKrylovRR | ||
+ | #Spectra: 1 | ||
+ | Emin______Emax | ||
+ | EminPole__EmaxPole | ||
+ | dE________Gamma | ||
+ | Energy | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | ===== Table of contents ===== | ||
+ | {{indexmenu> |