-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathK39Atom.m
40 lines (35 loc) · 1.51 KB
/
K39Atom.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
classdef K39Atom < alkaliAtom
%K39ATOM Sub-class of alkaliAtom containing necessary properties
methods
function self = K39Atom
%K39ATOM Creates an instance of the K39ATOM object with
%properties corresponding to K-39
self.species = 'K39';
I = 3/2;
gI = -0.00014193489;
self.ground = fineStructure(0,0.5,I,gI,230.8598601e6,0);
self.excited1 = fineStructure(1,0.5,I,gI,27.775e6,0);
self.excited2 = fineStructure(1,1.5,I,gI,6.093e6,2.786e6);
self.D1 = opticalTransition(self.ground,self.excited1,770.108385049e-9,2*pi*5.956e6);
self.D2 = opticalTransition(self.ground,self.excited2,766.700921822e-9,2*pi*6.035e6);
end
end
methods(Static)
function f = freq(transition,initState,finalState,B)
%FREQ Computes the absolute frequency of a transition
%
% F = FREQ(TRANSITION,INITSTATE,FINALSTATE) returns
% absolute frequency FREQ given [F,mF] states INITSTATE and
% FINALSTATE for TRANSITION (either 'D1' or 'D2')
%
% F = FREQ(__,B) calculates the absolute
% frequency in magnetic field B
a = K39Atom;
if nargin < 4
f = a.(transition).absoluteFreq(initState,finalState);
else
f = a.(transition).absoluteFreq(initState,finalState,B);
end
end
end
end