spin-scenario repository

Spin-Scenario 1.1

a flexible, unified scripting environment for realistic MR simulations

the basics:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
 -- scenario A: spin system generation.
B0{"500 MHz"}
local acrylic =spin_system{
        spin = "1H 1H 1H",
      zeeman = "2 scalar 88.42 Hz 3 scalar 214.9 Hz",
   jcoupling = "1 2 scalar 10.4 Hz 1 3 scalar 1.2 Hz 2 3 scalar 17.4 Hz"}
-- scenario B: pulse sequence assembly.
local rf45 =hardRF{beta =45}
local adc =acq{np =1024, sw =500}

local fid =seq{rf45, adc}
-- scenario C: experimental study.
result =run{exp =fid, spinsys =acrylic}

fid_raw fid_spec

Note

The code above and more examples can be found in the examples directory.

Acknowledgments

Spin-Scenario was supported by National Natural Science Foundation of China 11505281, 11675254.