DoubleAngleSimulator#

class blochsim.simulators.DoubleAngleSimulator[source]#

Bases: Simulator

Double-angle B1 mapping, in closed form.

A single excitation at each nominal flip angle, read at full relaxation. A voxel turns through the nominal angle times B1, so the signal is M0 sin(B1 flip), one real sample per angle. Two angles in the ratio of two give B1 in closed form; any set of angles can be fitted.

Parameters:

flip (float or array-like) – Nominal flip angles, in degrees; the trailing axis of the signal.

Tissue properties:
  • B1 (float or array-like) – Transmit field, as a fraction of the nominal flip angle.

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

Examples

from blochsim.simulators import DoubleAngleSimulator

sequence = DoubleAngleSimulator(flip=(60.0, 120.0))
signal = sequence.simulate(B1=(0.8, 1.0, 1.2))
print(signal.shape)
torch.Size([3, 2])

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.