Difference between revisions of "Grad pulse.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(→‎Notes)
(Sync syntax/arguments/outputs with current Spinach source)
Line 1: Line 1:
−
{{DISPLAYTITLE:grad_pulse.m}}
+
{{DISPLAYTITLE:grad_pulse.m}} __NOTOC__
 +
 
 
Emulates the effect of a gradient pulse on the sample average density matrix using Edwards formalism. It is assumed that the effect of diffusion is negligible, that the gradient is linear, and that it is antisymmetric about the middle of the sample.
 
Emulates the effect of a gradient pulse on the sample average density matrix using Edwards formalism. It is assumed that the effect of diffusion is negligible, that the gradient is linear, and that it is antisymmetric about the middle of the sample.
  
 
==Syntax==
 
==Syntax==
  
−
    rho=grad_pulse(spin_system,rho,g_amp,s_len,g_dur,s_fac)
+
rho=grad_pulse(spin_system,L,rho,g_amp,s_len,g_dur,s_fac)
  
 
==Arguments==
 
==Arguments==
  
−
        rho  - spin system state vector
+
rho  - spin system state vector
 
   
 
   
 
           L  - system Liouvillian
 
           L  - system Liouvillian
Line 23: Line 24:
 
==Outputs==
 
==Outputs==
  
−
      rho - spin system state vector, integrated over
+
rho - spin system state vector, integrated over
 
             the spatial coordinate
 
             the spatial coordinate
 +
 +
Note: the function integrates over sample coordinates - subsequent gra-
 +
      dient pulses would not refocus the magnetization that it has de-
 +
      focused. To simulate a gradient sandwich, use grad_sandw.m func-
 +
      tion. More information on the subject is available in Luke's pa-
 +
      per (http://dx.doi.org/10.1016/j.jmr.2014.01.011).
 +
 +
Note: this function is OK for standalone crusher gradients; for more
 +
      sophisticated gradient work, use the imaging context.
 +
 +
ledwards@cbs.mpg.de
 +
ilya.kuprov@weizmann.ac.il
  
 
==Examples==
 
==Examples==
 +
 
See examples/fundamentals/gradient_test_1.m file for an example of using this function.
 
See examples/fundamentals/gradient_test_1.m file for an example of using this function.
  
 
==Notes==
 
==Notes==
 +
 
# '''WARNING''' This function integrates over the spatial coordinate after the gradient pulse is completed - subsequent gradient pulses would not refocus the magnetisation that this function removed because it is removed mathematically. If your experiment has multiple gradient pulses, you must model the spatially distributed spin dynamics explicitly using [[imaging.m]] context.  
 
# '''WARNING''' This function integrates over the spatial coordinate after the gradient pulse is completed - subsequent gradient pulses would not refocus the magnetisation that this function removed because it is removed mathematically. If your experiment has multiple gradient pulses, you must model the spatially distributed spin dynamics explicitly using [[imaging.m]] context.  
 
# More information on the subject is available in Luke's paper (http://dx.doi.org/10.1016/j.jmr.2014.01.011).
 
# More information on the subject is available in Luke's paper (http://dx.doi.org/10.1016/j.jmr.2014.01.011).
  
 
==See also==
 
==See also==
 +
 
[[grad_sandw.m]], [[imaging.m]]
 
[[grad_sandw.m]], [[imaging.m]]
  
  
 
''Version 2.2, authors: [[Luke Edwards]], [[Ilya Kuprov]]''
 
''Version 2.2, authors: [[Luke Edwards]], [[Ilya Kuprov]]''

Revision as of 14:03, 5 April 2026


Emulates the effect of a gradient pulse on the sample average density matrix using Edwards formalism. It is assumed that the effect of diffusion is negligible, that the gradient is linear, and that it is antisymmetric about the middle of the sample.

Syntax

rho=grad_pulse(spin_system,L,rho,g_amp,s_len,g_dur,s_fac)

Arguments

rho - spin system state vector

          L   - system Liouvillian

      g_amp   - gradient amplitude, Gauss/cm

      s_len   - sample length, cm

      g_dur   - gradient pulse duration, seconds

      s_fac   - gradient shape factor, use 1 for
                square gradient pulses

Outputs

rho - spin system state vector, integrated over

           the spatial coordinate
Note: the function integrates over sample coordinates - subsequent gra-
      dient pulses would not refocus the magnetization that it has de-
      focused. To simulate a gradient sandwich, use grad_sandw.m func-
      tion. More information on the subject is available in Luke's pa-
      per (http://dx.doi.org/10.1016/j.jmr.2014.01.011).
Note: this function is OK for standalone crusher gradients; for more
      sophisticated gradient work, use the imaging context.
ledwards@cbs.mpg.de
ilya.kuprov@weizmann.ac.il

Examples

See examples/fundamentals/gradient_test_1.m file for an example of using this function.

Notes

  1. WARNING This function integrates over the spatial coordinate after the gradient pulse is completed - subsequent gradient pulses would not refocus the magnetisation that this function removed because it is removed mathematically. If your experiment has multiple gradient pulses, you must model the spatially distributed spin dynamics explicitly using imaging.m context.
  2. More information on the subject is available in Luke's paper (http://dx.doi.org/10.1016/j.jmr.2014.01.011).

See also

grad_sandw.m, imaging.m


Version 2.2, authors: Luke Edwards, Ilya Kuprov