Difference between revisions of "React gen.m"

From Spinach Documentation Wiki
Jump to: navigation, search
m (Rename Arguments section heading to Parameters)
(Update function See also links and function index membership)
 
Line 32: Line 32:
  
 
==See also==
 
==See also==
−
[[Chemical kinetics parameters]]
+
[[equilibrate.m]], [[flow_gen.m]], [[kinetics.m]], [[magpump.m]], [[Chemical kinetics parameters]], [[Kernel_utilities]]
−
 
 
−
[[Kernel_utilities#Chemical_dynamics_infrastructure|Chemical dynamics infrastructure]]
 
  
 
''Version 2.8, authors: [[Ilya Kuprov]]''
 
''Version 2.8, authors: [[Ilya Kuprov]]''

Latest revision as of 19:40, 6 June 2026

Chemical reaction generator builder described in Section 5.3 of The Book.

Syntax

    G=react_gen(spin_system,reaction)

Parameters

   reaction.reactants - a vector of integers specifying
                        which parts declared in the in-
                        put (chem.parts) are reactants

   reaction.products  - a vector of integers specifying
                        which parts declared in the in-
                        put (chem.parts) are products

   reaction.matching  - a matrix with two columns, spe-
                        cifying which spin in the reac-
                        tants list (left column) becom-
                        es which spin in the product 
                        list (right column)

Outputs

   G - a matrix mapping each state of the
       reactant state space into its desti-
       nation in the product state space

Notes

This is an early implementation; indexing may be slow.

See also

equilibrate.m, flow_gen.m, kinetics.m, magpump.m, Chemical kinetics parameters, Kernel_utilities

Version 2.8, authors: Ilya Kuprov