You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
2.4 KiB

  1. clear;
  2. % Elementary constants
  3. c = 299792458; %Speed of light [m/s]
  4. h = 6.626070040e-34; %Planck constant [J/Hz]
  5. hbar = h/2/pi;
  6. u0 = 4*pi*1e-7; %Vacuum permeability [N/A^2]
  7. e0 = 1/u0/(c^2); %Vacuum permittivity [A^2*s^4/kg/m^3]
  8. qe = 1.6021766208e-19; %Elementary charge [C]
  9. G = 6.67408e-11; %Gravitational constant [m^3/kg/s^2]
  10. kB = 1.38064852e-23; %Boltzmann constant [J/K]
  11. me = 9.10938356e-31; %Electron rest mass [kg]
  12. mp = 1.672621898e-27; %Proton mass [kg]
  13. uB = qe*hbar /2/me; %Bohr magneton [J/T]
  14. uN = qe*hbar /2/mp; %Nuclear magnton [J/T]
  15. alpha = u0*qe^2*c/(2*h); %Fine structure constant
  16. u = 1.660539040e-27; %Atomic mass unit [kg]
  17. a0 = 4*pi*e0*hbar^2/me/qe^2; %Bohr radius [m]
  18. Ry = 13.605693009; %Rydberg energy [eV]
  19. %Dysprosium properties
  20. mDy = 164*u; %Dysprosium mass [kg]
  21. abuDy164 = 0.2826; %Dy164 abundance
  22. Polar1064 = 193*4*pi*e0*a0^3; %Dynamical polarizability of Dy for 1064 and 532 [A^2s^4/kg]
  23. Polar532 = 350*4*pi*e0*a0^3;
  24. %Laser properties
  25. lambda = 532e-9; %Laser wavelength [m]
  26. k = 2*pi/lambda; %Wave number of laser [m^-1]
  27. P0 = 10; %Power [W]
  28. %Coordinate rotation y-axis for E1
  29. theta= 4/180*pi; %Half angle between the beams
  30. x = linspace(-3000,3000,1501)*1e-6; %Definition of coordinate System
  31. y = 0;
  32. z = linspace(-300,300,1501)*1e-6;
  33. [X,Z]=meshgrid(x,z);
  34. xt= X.*cos(theta)+Z.*sin(theta);
  35. yt = y;
  36. zt= -X.*sin(theta)+Z.*cos(theta);
  37. %Gaussian beam propagating in xt direction
  38. w0 = 90e-6; %Beam waist at x=xt=0 (center of the trap)
  39. xr = pi*w0.^2/lambda; %Rayleigh length i xt-direction
  40. wxt = w0.*sqrt(1+(xt./xr).^2); %Radius to 1/e
  41. P = P0/2;
  42. E0 = sqrt(2*P./(pi*wxt.^2*c*e0)); %Electric field at time 0 , x=-f origin
  43. E1 = E0*w0./wxt.*exp(-(zt.^2+yt.^2)./wxt.^2).*exp(-1i*k.*xt); %Electric field 1
  44. %Coordinate rotation y-axis for E2
  45. theta= -theta; %Half angle between the beams
  46. xt= X.*cos(theta)+Z.*sin(theta);
  47. yt = y;
  48. zt= -X.*sin(theta)+Z.*cos(theta);
  49. E2 = E0*w0./wxt.*exp(-(zt.^2+yt.^2)./wxt.^2).*exp(-1i*k.*xt); %Electric field 1
  50. %Interference of the two beams
  51. Itot = abs(E1+E2).^2 ; %Intensity of the interference pattern
  52. figure
  53. imagesc(x,z,Itot)
  54. set(gca,'YDir','normal')