Difference between revisions of "Simple flow.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Sync syntax/arguments/outputs with current Spinach source)
(Update function See also links and function index membership)
 
(3 intermediate revisions by the same user not shown)
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==
+
==Parameters==
  
−
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==
−
 
+
[[meshflow.m]], [[fpl2phan.m]], [[fpl2rho.m]], [[Built-in_experiments]]
−
[[Built-in_experiments#Spatially_encoded_NMR|Spatially encoded NMR]]
 
−
 
 
  
 
''Version 2.8, authors: [[Ilya Kuprov]]''
 
''Version 2.8, authors: [[Ilya Kuprov]]''

Latest revision as of 19:41, 6 June 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)

Parameters

   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

meshflow.m, fpl2phan.m, fpl2rho.m, Built-in_experiments

Version 2.8, authors: Ilya Kuprov