Difference between revisions of "Basis.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Sync syntax/arguments/outputs with current Spinach source)
(Restore pre-bulk-edit wiki content)
Line 1: Line 1:
 
{{DISPLAYTITLE:basis.m}} __NOTOC__
 
{{DISPLAYTITLE:basis.m}} __NOTOC__
−
 
+
Basis set control. This is the second mandatory function (after [[create.m]]) that must be called in every calculation to build the [[spin_system]] data structure.  
−
Basis set control. This is the second mandatory function (after [[create.m]]) that must be called in every calculation to build the [[spin_system]] data structure.
 
  
 
==Syntax==
 
==Syntax==
  
−
[[spin_system]]=basis([[spin_system]],[[bas]])
+
    [[spin_system]]=basis([[spin_system]],[[bas]])
  
 
==Arguments==
 
==Arguments==
  
−
spin_system  - primary Spinach data structure, the output
+
    spin_system  - primary Spinach data structure, the output
 
                     of [[create.m]] function
 
                     of [[create.m]] function
 
   
 
   
Line 17: Line 16:
 
==Outputs==
 
==Outputs==
  
−
spin_system  - primary Spinach data structure, updated with
+
    spin_system  - primary Spinach data structure, updated with
 
                     the basis set and related information
 
                     the basis set and related information
−
 
−
Note: it is important to understand the factors that influence basis set
 
−
      selection in spin dynamics simulations - see our paper
 
−
 
−
                http://link.aip.org/link/doi/10.1063/1.3624564
 
−
 
−
      for further information on this subject.
 
−
 
−
ilya.kuprov@weizmann.ac.il
 
  
 
==Examples==
 
==Examples==
−
 
 
A simple example of a spin system and basis set specification is given below. There are hundreds of further examples in the example set.
 
A simple example of a spin system and basis set specification is given below. There are hundreds of further examples in the example set.
  
Line 51: Line 40:
  
 
==Notes==
 
==Notes==
−
 
 
It is important to understand the factors that influence basis set selection in spin dynamics simulations - see our paper (http://link.aip.org/link/doi/10.1063/1.3624564) for further information on this subject.
 
It is important to understand the factors that influence basis set selection in spin dynamics simulations - see our paper (http://link.aip.org/link/doi/10.1063/1.3624564) for further information on this subject.
  
 
==See also==
 
==See also==
−
 
 
[[create.m]], [[assume.m]], [[operator.m]], [[state.m]], [[hamiltonian.m]], [[evolution.m]]
 
[[create.m]], [[assume.m]], [[operator.m]], [[state.m]], [[hamiltonian.m]], [[evolution.m]]
  
  
 
''Version 2.4, authors: [[Ilya Kuprov]]''
 
''Version 2.4, authors: [[Ilya Kuprov]]''

Revision as of 14:47, 5 April 2026

Basis set control. This is the second mandatory function (after create.m) that must be called in every calculation to build the spin_system data structure.

Syntax

    spin_system=basis(spin_system,bas)

Arguments

    spin_system   - primary Spinach data structure, the output
                    of create.m function

    bas           - basis set specification structure described
                    in detail in the online manual

Outputs

    spin_system   - primary Spinach data structure, updated with
                    the basis set and related information

Examples

A simple example of a spin system and basis set specification is given below. There are hundreds of further examples in the example set.

    % Set the spin system
    sys.isotopes={'1H','1H'};
    inter.zeeman.scalar={0.0 0.0};
    inter.coordinates={[0.00 0.00 0.00];
                       [0.00 0.00 2.00]};
    
    % Magnet field
    sys.magnet=14.1;
    
    % Basis set
    bas.formalism='sphten-liouv';
    bas.approximation='none';
    
    % Spinach housekeeping
    spin_system=create(sys,inter);
    spin_system=basis(spin_system,bas);

Notes

It is important to understand the factors that influence basis set selection in spin dynamics simulations - see our paper (http://link.aip.org/link/doi/10.1063/1.3624564) for further information on this subject.

See also

create.m, assume.m, operator.m, state.m, hamiltonian.m, evolution.m


Version 2.4, authors: Ilya Kuprov