Sample#

Summary#

Use the nucleus type, experimental temperature, relaxation time and spin density to determine the sample for simulation. The gyromagnetic ratio and angular momentum are determined based on pre-defined dictionary.

Example Usage#

Create a electron spin sample

esr_sample = Sample(
    nucleus='electron',
    temperature=4.2,
    T1=1e-3,
    T2=250e-9,
    spin_density=2.41e-2)

Print out the summery of the sample:

print(esr_sample)

sample module#

Create sample objects for MRFM simulation.

class mrfmsim_marohn.component.sample.Sample(spin_type, T1, T2, temperature, spin_density, Gamma=None, J=None)[source]#

Bases: mrfmsim.component.ComponentBase

Sample object for MRFM simulation.

The Sample carries the properties of the nuclear or electron spins in the sample. The default spin type includes the properties of ‘electron’, ‘1H’, ‘2H’, ‘19F’, ‘71Ga’. For spin that is not included simply provide a name for spin, gamma, and j. :cvar float hbar: reduced Plank constant, unit [aN nm s] :cvar float kB: Boltzmann constant [aN nm k:math:’^{-1}’]

hbar = 1.054571628e-07#
kB = 13806.504#