nqr_blochsimulator.classes.sample#
Classes
|
A class to represent a sample for NQR (Nuclear Quadrupole Resonance) Bloch Simulation. |
- class nqr_blochsimulator.classes.sample.Sample(name, density, molar_mass, resonant_frequency, gamma, nuclear_spin, spin_factor, powder_factor, filling_factor, T1, T2, T2_star, atom_density=None, sample_volume=None, sample_length=None, sample_diameter=None)#
A class to represent a sample for NQR (Nuclear Quadrupole Resonance) Bloch Simulation.
- calculate_atoms()#
Calculate the number of atoms in the sample per volume unit. This only works if the sample volume and atom density are provided. Also the sample should be cylindrical.
If atom density and sample volume are provided, use these to calculate the number of atoms. If not, use Avogadro’s number, density, and molar mass to calculate the number of atoms.