Code Particle in An Infinite Potential Well'
Code Particle in An Infinite Potential Well'
well.
// Constants
m = 9.1e-31; // mass of electron
hplanck = 6.63e-34; // value of Planck's constant
hbar = hplanck / (2 * %pi); // value of hbar
hbarsqbytwo_m_term = (hbar ^ 2) / (2 * m); // value of hbar square by 2*m
eV = 1.6e-19; // value of electron volt in SI units
MeV = (1e+6) * eV; // Mega electron volt
Angst = 1e-10; // Value of one angstrom
x_min = 0;
x_max = 1 * Angst;
disp('The box size is (in meters):');
disp(x_max);
// Normalization check
Normalization = sum((u(:, 1) .* conj(u(:, 1))));
disp('The Eigen (eV) values obtained from finite difference method are:');
disp(eigval_numeric(1:5));
disp('The Eigen (eV) obtained from Analytic Formula are:');
disp(eigval_th_eV(1:5));
Dr. Chetan Chavan, Assistant Professor, Dept. of Physics, Kottureshwara College, Kottur
Figure 5.1: 1D Box potential
Dr. Chetan Chavan, Assistant Professor, Dept. of Physics, Kottureshwara College, Kottur
Figure 5.2: 1D Box potential
Dr. Chetan Chavan, Assistant Professor, Dept. of Physics, Kottureshwara College, Kottur
Figure 5.3: 1D Box potential
Dr. Chetan Chavan, Assistant Professor, Dept. of Physics, Kottureshwara College, Kottur