deepmr.bloch.FlowWash#
- class deepmr.bloch.FlowWash(device, time, v, voxelsize, slice_direction=None, **kwargs)[source]#
Simulate EPG states replacement due to flow.
- device (str): str
Computational device (e.g.,
cpuorcuda:n, withn=0,1,2...).- timetorch.Tensor)
Time step in
[ms].- vtorch.Tensor
Spin velocity of shape
(3,)in[cm / s]. If scalar, assume same direction as unbalanced gradient.- voxelsizefloat, optional
Voxel thickness along unbalanced direction in
[mm].- slice_directionstr | torch.Tensor
Slice orientation (
"x","y","z"orversor).
Methods
__init__(device, time, v, voxelsize[, ...])apply(states)Apply spin replacement.