Difference between revisions of "Simple flow.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:simple_flow.m}} __NOTOC__
 
{{DISPLAYTITLE:simple_flow.m}} __NOTOC__
−
 
 
Simple forward evolution experiment for the microfluidics module; trajectory is returned. This sequence must be called from the [[meshflow.m]] [[Kernel_contexts|context]], which would provide H, R, K, G, and F. Because gradients are not being used in this experiment, the G input is ignored.
 
Simple forward evolution experiment for the microfluidics module; trajectory is returned. This sequence must be called from the [[meshflow.m]] [[Kernel_contexts|context]], which would provide H, R, K, G, and F. Because gradients are not being used in this experiment, the G input is ignored.
  
 
==Syntax==
 
==Syntax==
  
−
traj=simple_flow(spin_system,parameters,H,R,K,~,F)
+
    traj=simple_flow(spin_system,parameters,H,R,K,~,F)
  
 
==Arguments==
 
==Arguments==
  
−
parameters.npoints  - number of points in  
+
    parameters.npoints  - number of points in  
 
                           the trajectory
 
                           the trajectory
 
   
 
   
Line 19: Line 18:
 
==Outputs==
 
==Outputs==
  
−
traj - trajectory in the Fokker-Planck space
+
    traj - trajectory in the Fokker-Planck space
−
 
 
−
Notes: to convert Fokker-Planck space trajectory into R3
 
−
        or Liouville space, use fpl2phan and fpl2rho func-
 
−
        tions.
 
−
 
 
−
ilya.kuprov@weizmann.ac.il
 
  
 
==Examples==
 
==Examples==
−
 
 
Below is a frame from the video produced by examples/microfluidics/plain_flow.m example file, illustrating parabolic flow on a non-uniform mesh representing a microfluidic chip.
 
Below is a frame from the video produced by examples/microfluidics/plain_flow.m example file, illustrating parabolic flow on a non-uniform mesh representing a microfluidic chip.
  
Line 34: Line 26:
  
 
==Notes==
 
==Notes==
−
 
 
To convert Fokker-Planck space trajectory into R3 or Liouville space, use [[fpl2phan.m]] and [[fpl2rho.m]] functions.
 
To convert Fokker-Planck space trajectory into R3 or Liouville space, use [[fpl2phan.m]] and [[fpl2rho.m]] functions.
  
 
==See also==
 
==See also==
−
 
 
[[Built-in_experiments#Spatially_encoded_NMR|Spatially encoded NMR]]
 
[[Built-in_experiments#Spatially_encoded_NMR|Spatially encoded NMR]]
  
  
 
''Version 2.8, authors: [[Ilya Kuprov]]''
 
''Version 2.8, authors: [[Ilya Kuprov]]''

Revision as of 15:50, 5 April 2026

Simple forward evolution experiment for the microfluidics module; trajectory is returned. This sequence must be called from the meshflow.m context, which would provide H, R, K, G, and F. Because gradients are not being used in this experiment, the G input is ignored.

Syntax

    traj=simple_flow(spin_system,parameters,H,R,K,~,F)

Arguments

   parameters.npoints   - number of points in 
                          the trajectory

   parameters.rho0      - initial state in Fokker-
                          Planck space

   parameters.dt        - trajectory time step

Outputs

   traj - trajectory in the Fokker-Planck space

Examples

Below is a frame from the video produced by examples/microfluidics/plain_flow.m example file, illustrating parabolic flow on a non-uniform mesh representing a microfluidic chip.

Plain flow paraqchip.png

Notes

To convert Fokker-Planck space trajectory into R3 or Liouville space, use fpl2phan.m and fpl2rho.m functions.

See also

Spatially encoded NMR


Version 2.8, authors: Ilya Kuprov