Class Simulation
From PyPulsar
Purpose
A class to handle the commands and parameters related to a single pulsar simulation
functions
Class constructor
- Simulation - Class constructor: sets some of the simulation parameters.
General
- reset_pulsar - Deallocate arrays in the Pulsar module (initialisation)
- set_field - Change the spectrometer field
- set_protonfrequency - Change the proton frequency and calculate the corresponding spectrometer field
- set_spinningspeed - Change the spinning speed
- set_spinningangle - Change the spinning angle
- set_nsb - Change the number of calculated spinning sidebands
- set_npts - Change the number of points
- set_sw - Change the spectral width
- set_accuracy - Change the average powder accuracy
- set_qfactor - Quality factor of the coil
Spectra
- reset_spectra - Deallocate all spectra array (initialisation)
- clearspectrum - Reset the current spectrum memory buffer
- store_spectrum - Add a spectrum to the spectra array
- write_spectra - Save the spectra array on disk file
Nuclei
- reset_nucleus - Deallocate arrays for the observed and coupled nucleus
- add_nucleus - Add a nucleus to the current simulation
- set_channel - Define the spectrometer channels
- select_observed - Select the observed nucleus (replace the old select_nucleus command)
- select_coupled - Select the nuclei dipolarly (or J) coupled to the observed nuclei.
- get_numberofnuclei - Get the number of nuclei
Pulse sequence
- reset_pulse - Deallocate pulse arrays (initialisation)
- set_idealpulse - Set pulse as ideal (dirac)
- set_pulse - Add and set parameters for a rf pulse in a pulse sequence
- set_delay - Add and set parameter for a delay in a pulse sequence
- set_rfstep - Change the pulse integration step
- set_detect - Select the detected transitions
- set_pathway - Select coherence transfer pathway
- set_rcph - Set the receiver phase
Calculation
- execute_pulsar - Run the simulation using the Fortran Pulsar module