Difference between revisions of "Dnp time dep.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(→‎Examples)
Line 38: Line 38:
  
 
==Examples==
 
==Examples==
−
A description of what is done in the example below:
+
Below is the output of examples/dnp_liquids/dnp_liquid_2.m example file.
  
−
    % Comment
+
[[File:dnp_inv_rec.png]]
−
    matlab code
 
−
 
−
    % Comment
 
−
    matlab code
 
  
 
==Notes==
 
==Notes==

Revision as of 16:52, 13 September 2020

Time-domain spin dynamics under microwave irradiation.

Syntax

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

Arguments

   parameters.mw_pwr       -  microwave power, rad/s

   parameters.mw_off       -  microwave frequency offset
                              from free electron,rad/s

   parameters.rho0         -  thermal equilibrium state

   parameters.coil         -  coil state vector or a hori-
                              zontal stack thereof

   parameters.mw_oper      -  microwave irradiation operator

   parameters.ez_oper      -  Lz operator on the electrons

   parameters.dt           -  time step, seconds

   parameters.nsteps       -  number of time steps

   H                       -  Hamiltonian commutation superoperator

   R                       -  thermalised relaxation superoperator 

   K                       -  chemical kinetics superoperator

Outputs

   answer  - a matrix of projections of the trajectory on 
             each of the coils provided at each time step

Examples

Below is the output of examples/dnp_liquids/dnp_liquid_2.m example file.

Dnp inv rec.png

Notes

The relaxation superoperator must be thermalised for this type of calculation.

See also

DNP experiments


Version 2.5, authors: Ilya Kuprov