IRbSSFPSimulator

IRbSSFPSimulator#

class blochsim.simulators.IRbSSFPSimulator[source]#

Bases: Simulator

Inversion-recovery balanced SSFP (IR-TrueFISP) signal, in closed form.

After an alpha/2 preparation the magnetization approaches the bSSFP steady state along one exponential, at a rate mixing R1 and R2 by the flip angle [1]. inv_efficiency scales the magnetization the recovery starts from. The signal is real, one sample per TI.

Parameters:
  • flip (float or array-like) – Flip angle of the balanced train, in degrees.

  • TI (float or array-like) – Time of each readout after the inversion, in ms: TR times the readout index.

Tissue properties:
  • T1, T2 (float or array-like) – Relaxation times, in ms.

  • M0 (float or array-like, default=1.0) – Equilibrium magnetization.

  • B1 (float or array-like, default=1.0) – Transmit field, as a fraction of the nominal flip angle.

  • inv_efficiency (float or array-like, default=1.0) – Fraction of a perfect inversion.

References

Examples

import torch
from blochsim.simulators import IRbSSFPSimulator

sequence = IRbSSFPSimulator(flip=45.0, TI=4.5 * torch.arange(1000))
signal = sequence.simulate(T1=1000.0, T2=(50.0, 100.0))
print(signal.shape)
torch.Size([2, 1000])

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.