MultiGradientEchoSimulator#

class blochsim.simulators.MultiGradientEchoSimulator[source]#

Bases: Simulator

Multi-gradient-echo signal of water and fat, in closed form.

Fat is a multi-peak spectrum [1] at fixed chemical shifts, so per voxel only the fat amount, the transverse decay and the off-resonance remain to be fitted. Water is 1 - fat_fraction of a complex scale and fat fat_fraction of it, rotated by fat_phase. Omitting T2star means no decay; omitting fat_T2star gives fat the water T2star. The signal is complex, one sample per echo time.

Parameters:
  • TE (float or array-like) – Echo times, in ms.

  • field_strength (float or array-like, default=3.0) – Main field, in T; sets the fat peak frequencies.

  • fat_spectrum (str, default="hamilton2011") – Fat spectrum, a key of FAT_SPECTRA.

Tissue properties:
  • T2star (float or array-like, default=None) – Transverse relaxation time of water, in ms; no decay when not given.

  • fat_T2star (float or array-like, default=None) – Transverse relaxation time of fat, in ms; T2star when not given.

  • M0 (float or array-like, default=1.0) – Complex scale of water plus fat.

  • B0 (float or array-like, default=0.0) – Off-resonance, in Hz.

  • fat_fraction (float or array-like, default=0.0) – Fat as a fraction of the signal at zero echo time.

  • fat_phase (float or array-like, default=0.0) – Phase of fat relative to water, in degrees.

References

Examples

from blochsim.simulators import MultiGradientEchoSimulator

sequence = MultiGradientEchoSimulator(TE=(1.2, 2.4, 3.6, 4.8, 6.0, 7.2))
signal = sequence.simulate(fat_fraction=(0.0, 0.2), T2star=30.0, B0=15.0)
print(signal.shape)
torch.Size([2, 6])

Methods

bind

Return a copy with further arguments fixed.

describe

Return the SequenceDescription of a protocol.

evaluate

Return the closed-form signal.

from_description

Return a simulator that plays an existing description.

from_pulseq

Return a simulator over one repetition of a Pulseq sequence.

jacobian

Return the signal and its derivative with respect to tissue properties.

layout

Return the operators of one repetition in playing order.

played

Return the protocol arguments of layout(), arrays as torch tensors.

repetition_s

Return the duration of one repetition in seconds.

simulate

Return the recorded signal.

evaluate()[source]#

Return the closed-form signal.