Download GAMMA Users Guide
Transcript
GAMMA NMR Examples NMR Simulations One Pulse - General 68 5.6 cout << “\n\tTo set OMEGA : sf “ << sys.Omega(isoset); cout << “\n\tTo set spectral width: sw “ << 2*NyqF; cout << “\n\tTo set offset (no zf): ref “ << t2pts/2 << “ “ << offset; cout << “\n\tTo set axis in Hertz : ax 2” << “\n\n”; break; case 3: NMRi(filename,data); // Output FID in NMRi format break; case 4: MATLAB(filename,”spectrum”,data); // Output FID in MatLab format cout << “\n\t\tMATLAB Spectrum is Internally Named: spectrum”; break; cout << “\n”; } } 5.6.3 Discussion Read in Parameters: Following the output of the program description, an arbitrary spin system is read in from an external file specified. Afterwards the number of points in the FID is interactively set. Because it is useful to examine the weak coupling case, the user is then allowed to specify weak or strong coupling. Determine the Isotope Detected: A check is made to see if the input spin system is homonuclear or heteronuclear. If heteronuclear, the user must choose the isotope type to be detected. Set Up Spectral Parameters: Here, all chemical shifts (for spins of the isotope type being detected) may be altered so as to be referenced to an optimal rotating frame. Following this, a Nyquist frequency is chosen and both the dwell time and spectral width set. Set Variables: A 1D data block is declared to hold the simulated FID. A general operator is declared and set to the equilibrium density matrix. Another general operator is declared and set to be either the strong or weak coupling isotropic Hamiltonian. Finally, a general operator is declared and set to hold the detection operator. Pulse Sequence: The pulse sequence is very short; a two step sequence is performed with two program lines. The first step makes use of the function Iypuls which takes σ0, the equilibrium density matrix and applies a 90 pulse along the y-axis to it. The resulting density matrix is set equal to sigma. The next function, FID, propagates sigma with the Hamiltonian H while filling up the data block. The detector, the number of points, and the dwell time are also parameters used as arguments for this function. Spectral Output Format & File Selection: The user is prompted to specify an output type. Currently four formats are allowed. Tilo Levante, Scott Smith May 22, 1998