Difference between revisions of "Dnp freq scan.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Created page with "Microwave frequency scan DNP experiment. Returns the equilibrium magnetization of all spins as a function of microwave irradiation frequency. Syntax: answer=dnp_fre...")
 
Line 1: Line 1:
−
Microwave frequency scan DNP experiment. Returns the equilibrium
+
Microwave frequency scan steady-state DNP experiment.  
−
magnetization of all spins as a function of microwave irradiation
 
−
frequency. Syntax:
 
  
−
          answer=dnp_freq_scan(spin_system,parameters,H,R,K)
+
==Description==
 +
Returns the steady-state population of the user-specified state as a function of microwave frequency.
  
−
where H is the Hamiltonian commutation superoperator, R is the
+
==Syntax==
−
relaxation superoperator and K is the chemical kinetics super-
 
−
operator. The following parameters are required:
 
  
−
      parameters.mw_power    -  microwave power, rad/s
+
    answer=dnp_freq_scan(spin_system,parameters,H,R,K)
  
−
      parameters.mw_freqs    -  row vector of microwave
+
This function should normally be called via [[powder.m]] or [[crystal.m]] wrapper.
−
                                  frequencies, rad/s
 
  
−
      parameters.rho_eq      -  thermal equilibrium state
+
==Arguments==
  
−
      parameters.coil         -  coil state vector or a horizon-
+
    parameters.mw_pwr      -  microwave power, Hz
−
                                  tal stack thereof
+
 +
    parameters.mw_frq      -  row vector of microwave frequencies, rad/s
 +
 +
    parameters.rho_eq      -  thermal equilibrium state
 +
 +
    parameters.coil       -  detection state vector or a horizon-
 +
                                tal stack thereof
 +
 +
    parameters.mw_oper    -  microwave irradiation operator
 +
 +
    parameters.ez_oper    -  Lz operator on the electrons
 +
 +
    parameters.method      -  'backslash' to use Matlab's
 +
                                linear equation solver, 'gmres'
 +
                                to use ILU preconditioned GMRES
 +
 +
    H                      -  Hamiltonian commutation superoperator
 +
 +
    R                      -  unthermalised relaxation superoperator
 +
 +
    K                      -  chemical kinetics superoperator
  
−
      parameters.mw_oper      -  microwave irradiation operator
+
==Returns==
  
−
      parameters.ez_oper     -  Lz operator on the electrons
+
     answer                -  the projection of the equilibrium density matrix
 +
                                on the user-specified state as a function of the
 +
                                microwave frequency
  
−
      parameters.rlx          -  unthermalized relaxation super-
+
==Examples==
−
                                  operator
+
 
 +
 
 +
==Notes==
 +
# The relaxation superoperator supplied to this function should NOT be thermalized.
 +
# Backslash method is recommended for small spin systems and GMRES method for large ones.
 +
# This function can be made to run on GPUs. If you would like that functionality added, send an email to [[Ilya Kuprov]].
 +
 
 +
==See also==
 +
[[dnp_field_scan.m]],[[masdnp.m]],[[solid_effect.m]]
 +
 
 +
 
 +
''Revision 3284, authors: [[Ilya Kuprov]]''

Revision as of 14:56, 15 August 2016

Microwave frequency scan steady-state DNP experiment.

Description

Returns the steady-state population of the user-specified state as a function of microwave frequency.

Syntax

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

This function should normally be called via powder.m or crystal.m wrapper.

Arguments

    parameters.mw_pwr      -   microwave power, Hz

    parameters.mw_frq      -   row vector of microwave frequencies, rad/s

    parameters.rho_eq      -   thermal equilibrium state

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

    parameters.mw_oper     -   microwave irradiation operator

    parameters.ez_oper     -   Lz operator on the electrons

    parameters.method      -   'backslash' to use Matlab's
                               linear equation solver, 'gmres'
                               to use ILU preconditioned GMRES

    H                      -   Hamiltonian commutation superoperator

    R                      -   unthermalised relaxation superoperator 

    K                      -   chemical kinetics superoperator

Returns

    answer                 -   the projection of the equilibrium density matrix 
                               on the user-specified state as a function of the
                               microwave frequency

Examples

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.
  3. This function can be made to run on GPUs. If you would like that functionality added, send an email to Ilya Kuprov.

See also

dnp_field_scan.m,masdnp.m,solid_effect.m


Revision 3284, authors: Ilya Kuprov