Difference between revisions of "Solid effect.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Returns)
(Update function See also links and function index membership)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Large-scale solid effect DNP experiment simulation.  
+
{{DISPLAYTITLE:solid_effect.m}} __NOTOC__
 +
Solid effect DNP experiment, computed using the large-scale formalism described in (http://dx.doi.org/10.1039/C2CP23233B). The system is restricted to one electron and one nucleus type, but the number of nuclei may be very large.
  
 
==Syntax==
 
==Syntax==
Line 5: Line 6:
 
     answer=solid_effect(spin_system,parameters)
 
     answer=solid_effect(spin_system,parameters)
  
This function generates its own Liouvillian and should be called directly, without a wrapper.
+
==Parameters==
 
 
==Description==
 
Computes either the time dependence of the longitudinal magnetization in the system or its asymptotic amplitude. The simulation is performed as described in http://dx.doi.org/10.1039/C2CP23233B - this function is optimised for large-scale simulations, but the system must have exactly one electron.
 
 
 
==Arguments==
 
 
    
 
    
    parameters.mw_power    - microwave power in rad/s
+
          parameters.mw_pwr  - microwave power in rad/s
 +
 +
          parameters.theory  - level of theory. Set to 'exact' for
 +
                                the electron rotating frame calcula-
 +
                                tion or to any of the following six
 +
                                options for the average Hamiltonian
 +
                                theory calculation on top of the el-
 +
                                ectron + nuclear rotating frame:
 +
                                'ah_first_order', 'ah_second_order',
 +
                                'ah_third_order', 'kb_first_order',
 +
                                'kb_second_order', 'kb_third_order'.
 +
                                See [[average.m]] function for the mea-
 +
                                ning of these options.
 
   
 
   
    parameters.theory      - level of theory. Set to 'exact' for the electron rotating frame calculation
+
      parameters.nuclear_frq   - nuclear Zeeman frequency in rad/s
                              or to any of the following six options for the average Hamiltonian theory
 
                              calculation on top of the electron + nuclear rotating frame: 'ah_first_order',
 
                              'ah_second_order', 'ah_third_order', 'kb_first_order','kb_second_order',
 
                              'kb_third_order'. See the description of [[average.m]] function and the paper
 
                              cited above for the meaning of these options.
 
    
 
    parameters.nuclear_frq - nuclear Zeeman frequency in rad/s. This function only supports one nuclear type.
 
 
   
 
   
    parameters.calc_type  - set to 'time_dependence' to get the time dependence of the longitudinal magneti-
+
        parameters.calc_type  - set to 'time_dependence' to get the  
                              sation and to 'steady_state' to get the asymptotic longitudinal magnetisation.
+
                                time dependence of the longitudinal
 +
                                magnetization and to 'steady_state'
 +
                                to get the asymptotic longitudinal
 +
                                magnetization.
 
   
 
   
    parameters.time_step  - if 'time_dependence' is set in the calc_type parameter, sets the time step, seconds.
+
        parameters.time_step  - if 'time_dependence' is set in the
 +
                                calc_type parameter, sets the time
 +
                                step, seconds.
 
   
 
   
    parameters.n_steps     - if 'time_dependence' is set in the calc_type parameter, sets the number of time steps.
+
          parameters.n_steps   - if 'time_dependence' is set in the
 +
                                calc_type parameter, sets the num-
 +
                                ber of time steps.
 +
 
 +
==Outputs==
  
==Returns==
+
      answer  -  with the 'time_dependence' calculation type, the  
With the 'time_dependence' calculation type, the function returns the observables detected using the coil states specified at each point in time. With the 'steady_state' option specified, the function returns the steady state values detected using the coil states specified.
+
                function returns the observables detected using  
 +
                the coil states specified at each point in time;
 +
                with the 'steady_state' option specified, the  
 +
                function returns the steady state values detec-
 +
                ted using the coil states specified.
  
 
==Examples==
 
==Examples==
Line 37: Line 51:
  
 
[[File:dnp_example_4.png]]
 
[[File:dnp_example_4.png]]
 +
 +
==Notes==
 +
# This function generates its own Liouvillian and should be called directly, without a context wrapper.
 +
 +
==See also==
 +
[[average.m]], [[beamdnp.m]], [[dnp_field_scan.m]], [[dnp_freq_scan.m]], [[dnp_time_dep.m]], [[masdnp.m]], [[noveldnp.m]], [[noveldnp_steady.m]], [[topdnp.m]], [[xixdnp.m]], [[xixdnp_steady.m]], [[Built-in_experiments]]
 +
 +
''Version 2.5, authors: [[Ilya Kuprov]], [[Walter Kockenberger]], [[Alexander Karabanov]]''

Latest revision as of 19:41, 6 June 2026

Solid effect DNP experiment, computed using the large-scale formalism described in (http://dx.doi.org/10.1039/C2CP23233B). The system is restricted to one electron and one nucleus type, but the number of nuclei may be very large.

Syntax

    answer=solid_effect(spin_system,parameters)

Parameters

          parameters.mw_pwr   - microwave power in rad/s

          parameters.theory   - level of theory. Set to 'exact' for 
                                the electron rotating frame calcula-
                                tion or to any of the following six 
                                options for the average Hamiltonian
                                theory calculation on top of the el-
                                ectron + nuclear rotating frame:
                                'ah_first_order', 'ah_second_order',
                                'ah_third_order', 'kb_first_order',
                                'kb_second_order', 'kb_third_order'.
                                See average.m function for the mea-
                                ning of these options.

     parameters.nuclear_frq   - nuclear Zeeman frequency in rad/s

       parameters.calc_type   - set to 'time_dependence' to get the 
                                time dependence of the longitudinal
                                magnetization and to 'steady_state'
                                to get the asymptotic longitudinal
                                magnetization.

       parameters.time_step   - if 'time_dependence' is set in the
                                calc_type parameter, sets the time
                                step, seconds.

         parameters.n_steps   - if 'time_dependence' is set in the
                                calc_type parameter, sets the num-
                                ber of time steps.

Outputs

     answer  -  with the 'time_dependence' calculation type, the 
                function returns the observables detected using 
                the coil states specified at each point in time;
                with the 'steady_state' option specified, the 
                function returns the steady state values detec-
                ted using the coil states specified.

Examples

The following figure is returned by examples/dnp_solids/solid_effect_timedep_1.m function:

Dnp example 4.png

Notes

  1. This function generates its own Liouvillian and should be called directly, without a context wrapper.

See also

average.m, beamdnp.m, dnp_field_scan.m, dnp_freq_scan.m, dnp_time_dep.m, masdnp.m, noveldnp.m, noveldnp_steady.m, topdnp.m, xixdnp.m, xixdnp_steady.m, Built-in_experiments

Version 2.5, authors: Ilya Kuprov, Walter Kockenberger, Alexander Karabanov