mirror of
https://github.com/nqrduck/nqr-blochsimulator.git
synced 2024-09-28 08:00:35 +00:00
Fixed some unit issues.
This commit is contained in:
parent
2345cf6fe4
commit
61b1072c61
2 changed files with 6 additions and 6 deletions
|
@ -39,9 +39,9 @@ class Sample:
|
|||
molar_mass : float
|
||||
The molar mass of the sample (g/mol or kg/mol).
|
||||
resonant_frequency : float
|
||||
The resonant frequency of the sample.
|
||||
The resonant frequency of the sample in Hz.
|
||||
gamma : float
|
||||
The gamma value of the sample.
|
||||
The gamma value of the sample in Hz/T.
|
||||
nuclear_spin : float
|
||||
The nuclear spin quantum number of the sample.
|
||||
spin_factor : float
|
||||
|
@ -51,11 +51,11 @@ class Sample:
|
|||
filling_factor : float
|
||||
The filling factor of the sample.
|
||||
T1 : float
|
||||
The spin-lattice relaxation time of the sample.
|
||||
The spin-lattice relaxation time of the sample in seconds.
|
||||
T2 : float
|
||||
The spin-spin relaxation time of the sample.
|
||||
The spin-spin relaxation time of the sample in seconds.
|
||||
T2_star : float
|
||||
The effective spin-spin relaxation time of the sample.
|
||||
The effective spin-spin relaxation time of the sample in seconds.
|
||||
atom_density : float, optional
|
||||
The atom density of the sample (atoms per cm^3). By default None.
|
||||
sample_volume : float, optional
|
||||
|
|
|
@ -90,7 +90,7 @@ class Simulation:
|
|||
B1 = (
|
||||
self.calc_B1() * 1e3
|
||||
) # I think this is multiplied by 1e3 because everything is in mT
|
||||
B1 = 17.3 # Something might be wrong with the calculation of the B1 field. This has to be checked.
|
||||
# B1 = 17.3 # Something might be wrong with the calculation of the B1 field. This has to be checked.
|
||||
self.sample.gamma = self.sample.gamma * 1e-6 # We need our gamma in MHz / T
|
||||
self.sample.T1 = self.sample.T1 * 1e3 # We need our T1 in ms
|
||||
self.sample.T2 = self.sample.T2 * 1e3 # We need our T2 in ms
|
||||
|
|
Loading…
Reference in a new issue