Skip to content

Tracking Mxy evolution #494

Open
Open
@gsahonero

Description

Observing how the transverse magnetization evolves throughout a given sequence for sequence design and educational purposes could be useful. The conceptual code would be something like:
results = simulate(phantom, seq, sys, sim_params = Dict{String, Any}("return_type"=>"full", "sim_method" => Bloch(save_state_at = t))
Where t references time points where we want to know the values of Mxy, and results is a tuple. The first element of results has an array of states of size (length(t), n_spins) and the second has the (Nx, Ny) matrix that return_type=>"mat" returns.

Moreover, we could write a function that allows the evolution to be visualized as with the motion phantom, i.e.,
plot_state_evolution(Xt)
Where Xt = results[1] and the resulting plot shows the transverse magnetization per spin and includes a slider+play button for observing the evolution according to the time points declared in t.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions