Liquid.m

From Spinach Documentation Wiki
Jump to: navigation, search

Liquid-phase interface to pulse sequences. Generates a Liouvillian superoperator and passes it on to the pulse sequence function, which should be supplied as a handle.

This interface handles RDC mode -- if parameters.rdc switch is set, it would use the order matrix supplied by the user to compute the residual anisotropies of all interactions. Syntax:

   fid=liquid(spin_system,pulse_sequence,parameters,assumptions)

Arguments:

   pulse_sequence  -  pulse sequence function handle. See the
                      experiments directory for the list of
                      pulse sequences that ship with Spinach.

   parameters      -  a structure containing sequence-specific
                      parameters. See the pulse sequence header
                      for the list of parameters each sequence
                      requires. The parameters that this inter-
                      face itself requires are:
                     
                      parameters.spins - a cell array giving the
                      spins that the pulse sequence works on, in
                      the order of channels, e.g. {'1H','13C'}
                      parameters.offset - a cell array giving
                      transmitter offsets on each of the spins
                      listed in parameters.spins array.
                      parameters.rdc - a logical switch control-
                      ling the inclusion of residual dipolar co-
                      uplings into the calculation.
   assumptions     -  context-specific assumptions ('nmr', 'epr',
                      'labframe', etc.) - see the pulse sequence
                      header for information on this setting.

This function returns whatever it is that the pulse sequence returns.