Difference between revisions of "Dnp freq scan.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(→‎Notes)
Line 1: Line 1:
−
Microwave frequency scan steady-state DNP experiment.  
+
{{DISPLAYTITLE:function.m}} __NOTOC__
−
 
+
Microwave frequency scan steady-state DNP experiment. Returns the steady-state population of the user-specified states as a function of microwave irradiation frequency.
−
==Description==
 
−
Returns the steady-state population of the user-specified state as a function of microwave frequency.
 
  
 
==Syntax==
 
==Syntax==
  
−
     answer=dnp_freq_scan(spin_system,parameters,H,R,K)
+
     dnp=dnp_freq_scan(spin_system,parameters,H,R,K)
−
 
 
−
This function should normally be called via [[powder.m]] or [[crystal.m]] wrapper.
 
  
 
==Arguments==
 
==Arguments==
  
−
    parameters.mw_pwr     -  microwave power, Hz
+
    parameters.mw_pwr       -  microwave power, rad/s
 +
 +
    parameters.mw_frq      -  row vector of microwave frequ-
 +
                                ency offsets (rad/s) relative
 +
                                to the reference g-factor
 
   
 
   
−
    parameters.mw_frq      -  row vector of microwave frequencies, rad/s
+
    parameters.g_ref        -  reference g-factor around which
 +
                                frequency offsets are specified
 
   
 
   
−
    parameters.rho_eq      -  thermal equilibrium state
+
    parameters.rho0        -  thermal equilibrium state
 
   
 
   
−
    parameters.coil       -  detection state vector or a horizon-
+
    parameters.coil         -  coil state vector or a horizon-
 
                                 tal stack thereof
 
                                 tal stack thereof
 
   
 
   
−
    parameters.mw_oper     -  microwave irradiation operator
+
    parameters.mw_oper     -  microwave irradiation operator
−
 
−
    parameters.ez_oper    -  Lz operator on the electrons
 
 
   
 
   
−
    parameters.method     -  'backslash' to use Matlab's
+
    parameters.ez_oper     -  Lz operator on the electrons
−
                                linear equation solver, 'gmres'
 
−
                                to use ILU preconditioned GMRES
 
 
   
 
   
−
    H                     -   Hamiltonian commutation superoperator
+
    H - Hamiltonian matrix, received from context function
 
   
 
   
−
    R                     -   unthermalised relaxation superoperator  
+
    R - relaxation superoperator, received from context function
 
   
 
   
−
    K                     -   chemical kinetics superoperator
+
    K - kinetics superoperator, received from context function
  
−
==Returns==
+
==Outputs==
  
−
    answer                -   the projection of the equilibrium density matrix
+
    dnp    - an array of the steady state amplitudes of the
−
                                on the user-specified state as a function of the
+
              states specified in parameters.coil as at each
−
                                microwave frequency
+
              of the microwave frequencies supplied
  
 
==Examples==
 
==Examples==
Line 56: Line 53:
  
  
−
''Revision 3284, authors: [[Ilya Kuprov]], [[Walter Kockenberger]], [[Alexander Karabanov]]''
+
''Version 2.5, authors: [[Ilya Kuprov]], [[Walter Kockenberger]], [[Alexander Karabanov]], [[Maria Grazia Concilio]]''

Revision as of 14:10, 20 September 2020

Microwave frequency scan steady-state DNP experiment. Returns the steady-state population of the user-specified states as a function of microwave irradiation frequency.

Syntax

    dnp=dnp_freq_scan(spin_system,parameters,H,R,K)

Arguments

   parameters.mw_pwr       -   microwave power, rad/s

   parameters.mw_frq       -   row vector of microwave frequ-
                               ency offsets (rad/s) relative
                               to the reference g-factor

   parameters.g_ref        -   reference g-factor around which
                               frequency offsets are specified

   parameters.rho0         -   thermal equilibrium state

   parameters.coil         -   coil state vector or a horizon-
                               tal stack thereof

   parameters.mw_oper      -   microwave irradiation operator

   parameters.ez_oper      -   Lz operator on the electrons

   H - Hamiltonian matrix, received from context function

   R - relaxation superoperator, received from context function

   K - kinetics superoperator, received from context function

Outputs

   dnp    -  an array of the steady state amplitudes of the
             states specified in parameters.coil as at each
             of the microwave frequencies supplied

Examples

A simple TOTAPOL based Cross Effect DNP system, set to reproduce Figure 2b from http://dx.doi.org/10.1016/j.jmr.2011.09.047 (examples/dnp_solids/cross_effect_freq_scan_3.m);

Dnp example 3.png

Intensity differences are due to a different relaxation model and minor inconsistencies between the stated geometry and the interaction amplitudes used in the original paper.

Notes

  1. The relaxation superoperator supplied to this function should NOT be thermalized.
  2. Backslash method is recommended for small spin systems and GMRES method for large ones.

See also

dnp_field_scan.m,masdnp.m,solid_effect.m


Version 2.5, authors: Ilya Kuprov, Walter Kockenberger, Alexander Karabanov, Maria Grazia Concilio