flow_gen.m

From Spinach Documentation Wiki
Revision as of 18:48, 5 June 2026 by Kuprov (talk | contribs) (Rename Arguments section heading to Parameters)
Jump to: navigation, search

Hydrodynamic flow generator on a mesh. Builds diffusion and flow generator using the mesh parameters in the spin_system object.

Syntax

    F=flow_gen(spin_system,parameters)

Parameters

   spin_system - Spinach system descriptor object 
                 containing mesh subfields produ-
                 ced by COMSOL import functions

   parameters.diff - diffusion coefficient, m^2/s

Outputs

   F - spatial motion generator matrix with the
       dimension equal to the number of Voronoi
       cells of the mesh

See also

Chemical dynamics infrastructure

Version 2.11, authors: Ilya Kuprov