HSFPSimulator#
- class blochsim.simulators.HSFPSimulator[source]#
Bases:
SimulatorHybrid-state free precession (HSFP) of a balanced train, in closed form.
For a balanced train with a slowly varying flip angle, the magnetization stays on the spin-locked axis and only its length evolves, relaxing at
sin^2(a) / T2 + cos^2(a) / T1and driven bycos(a) / T1[1]. The train is repeated, each pass starting from the end of the previous one timesbeta. The signal is the magnetization along the spin-locked axis at each pulse, the transverse magnetization at the echo for a balanced train.- Parameters:
- Tissue properties:
T1, T2 (float or array-like) – Relaxation times, in ms.
M0 (float or array-like, default=1.0) – Equilibrium magnetization.
References
Examples
import torch from blochsim.simulators import HSFPSimulator train = 60.0 * torch.sin(torch.linspace(0.0, torch.pi, 400)) ** 2 sequence = HSFPSimulator(flip=train, TR=4.5) signal = sequence.simulate(T1=1000.0, T2=(50.0, 100.0)) print(signal.shape)
torch.Size([2, 400])
Methods
bindReturn a copy with further arguments fixed.
describeReturn the
SequenceDescriptionof a protocol.Return the closed-form signal.
from_descriptionReturn a simulator that plays an existing description.
from_pulseqReturn a simulator over one repetition of a Pulseq sequence.
jacobianReturn the signal and its derivative with respect to tissue properties.
layoutReturn the operators of one repetition in playing order.
playedReturn the protocol arguments of
layout(), arrays as torch tensors.repetition_sReturn the duration of one repetition in seconds.
simulateReturn the recorded signal.