v2fplanck.m
Translates a stationary 3D velocity field and diffusion-tensor field into a Fokker-Planck evolution generator; see IK's review (http://dx.doi.org/10.1016/j.jmr.2016.07.005) for the construction of the generator, and this function builds the M matrix in Equation 7.
Syntax
F=v2fplanck(spin_system,parameters)
Parameters
parameters.u - X components of the velocity vectors
for each voxel in the sample, m/s
parameters.v - Y components of the velocity vectors
for each voxel in the sample, m/s
parameters.w - Z components of the velocity vectors
for each voxel in the sample, m/s
parameters.diff - diffusion coefficient or 3x3 tensor, m^2/s
for situations when this parameter is the
same in every voxel
parameters.dxx - Cartesian components of the diffusion
parameters.dxy tensor for each voxel of the sample
...
parameters.dzz
parameters.dims - dimensions of the 3D box, meters
parameters.npts - number of points in each dimension
of the 3D box
parameters.deriv - {'fourier'} uses Fourier diffe-
rentiation matrices; {'period',n}
requests n-point central finite-
difference matrices with periodic
boundary conditions
Outputs
F - spatial dynamics generator
Examples
See examples/imaging and examples/nmr_diffusion directories in the example set.
Notes
The direct product order is Z(x)Y(x)X(x)Spin, this corresponds to a column-wise vectorization of a 3D array with dimensions ordered as [X Y Z].
Polyadic objects are returned, use polyadic/inflate.m to get the corresponding sparse matrix.
See also
imaging.m, hydrodynamics.m, fourdif.m, fdmat.m, polyadic.m, polyadic/inflate.m, g2fplanck.m, mri_2d_plot.m, ngridpts.m, phantoms.m, Imaging_module
Version 2.1, authors: Ilya Kuprov, Ahmed Allami