SPGRSimulator#
- class blochsim.simulators.SPGRSimulator[source]#
Bases:
SimulatorSpoiled gradient echo (SPGR, FLASH) steady state, in closed form.
Spoiling leaves no transverse magnetization to carry over, so the steady state is the Ernst expression [1],
M0 (1 - E1) sin(a) / (1 - E1 cos(a)) exp(-TE / T2*)withE1 = exp(-TR / T1), times the phaseexp(i 2 pi (chemshift - B0) TE)accrued to the echo. The signal is one complex sample; fitting T1 to several flip angles is DESPOT1 [2].- Parameters:
- Tissue properties:
T1, T2star (float or array-like) – Longitudinal relaxation time and effective transverse relaxation time, in ms.
M0 (float or array-like, default=1.0) – Equilibrium magnetization.
B0 (float or array-like, default=0.0) – Off-resonance, in Hz.
chemshift (float or array-like, default=0.0) – Chemical shift, in Hz.
References
Examples
from blochsim.simulators import SPGRSimulator sequence = SPGRSimulator(flip=13.0, TR=10.0, TE=5.0) signal = sequence.simulate(T1=1000.0, T2star=30.0)
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.