You are on page 1of 4

In[1]:= (*Calculating the energy and the Eigenfunction*);

In[3]:= (*defining the variable, Units are SI*);

In[1]:= mw = 0.067 * 9.1 * 10 ^ - 31;(*mass of the electron in GaAs well*);

In[2]:= mb = 0.092 * 9.1 * 10 ^ - 31;(*mass of the electron in GaAlAs barrier*);

In[3]:= hbar = 1.0545 * 10 ^ - 34;(*reduced planks constant*);

In[4]:= Lz = 5 * 10 ^ - 9;(*Length of the one side of the well*);

In[11]:= V0 = 0.235; (*Barrier potential in eV*);

In[34]:= e = 1.6 * 10 ^ - 19;(*eV to J;

In[12]:= E1∞ = hbar ^ 2 * 1  2 * mw * e * Pi  Lz ^ 2;


(*First level energy value of infinite well potential in eV unit*);

In[38]:= (*ε=xE1∞;*)(*energy in dimesninless unit*);

In[16]:= ν = V0  E1∞;(*Potential in dimensionless unit*);

In[6]:= (*Recalling the formula for the syysmtric soltion, as it gives the lowest energy,
SO the formula can be adopted to calculate the energy and eigenfuction*);

In[6]:= (*checking the possible energy value from the graph*);

Printed by Wolfram Mathematica Student Edition


2 7.2.3(i).nb

In[40]:= PlotTanPi  2 * Sqrt[ε], Sqrtmw  mb * Sqrt[(ν - ε) / ε], {ε, 0, ν }


(*blue line for left function and golden line for right function,
all are in dimensionless unit*)

Out[40]= 2

0.2 0.4 0.6 0.8

-2

-4

In[24]:= (*Precise value of the intersection*);

In[41]:= FindRootTanPi  2 * Sqrt[ε] - Sqrtmw  mb * Sqrt[(ν - ε) / ε] ⩵ 0, {ε, 0.21}


Out[41]= {4.4444 x → 0.328326}

In[29]:= (*energu value*);

In[29]:= 0.3283258483406747 * E1∞(*First level energyy value in eV*)


Out[29]= 0.073874

0.3283258483406747 * E1∞ * e(*(*First level energyy value in J*)*)


Out[31]= 1.18198 × 10-20

Printed by Wolfram Mathematica Student Edition


7.2.3(i).nb 3

In[64]:= PlotCotPi  2 * Sqrt[ε], - Sqrtmw  mb * Sqrt[(ν - ε) / ε], {ε, 0, ν }


4

Out[64]= 0.2 0.4 0.6 0.8 1.0

-2

-4

In[66]:= FindRootCotPi  2 * Sqrt[ε] + Sqrtmw  mb * Sqrt[(ν - ε) / ε] ⩵ 0, {ε, 1}


Out[66]= 4.4444 x → 1.04285 - 5.28715 × 10-16 ⅈ

In[33]:= k = Sqrt2 * mw  hbar ^ 2 * 1.181984521282497 * 10 ^ - 20(*unit per meter*)


Out[33]= 3.60025 × 108

In[35]:= k ' = Sqrt2 * mw  hbar ^ 2 * V0 * e - 1.181984521282497 * 10 ^ - 20(*unit per meter*)
Out[35]= 5.31703 × 108

In[36]:= cL = Cosk * Lz  2  Exp- k ' * Lz  2


Out[36]= 2.34841

In[37]:= (*lets find the Coeefcient B by normalizing the WF in different regime*)

In[60]:= IntegrateCos[Pi * Sqrt[0.07387] * z] ^ 2, {z, - 0.5, 0.5} +


2 * IntegrateExp- 2 * Pi * Sqrt[ν - 0.07387403258015605] * z, {z, 0.5, Infinity}
Out[60]= 0.956049

1  Sqrt[0.9560494216639461](*Value of Coeefecient B*)


Out[61]= 1.02273

(*F and G values and for syyemtric solution F=G*)

In[72]:= G = 1.0227272518951505 * cL
Out[72]= 2.40178

In[69]:= 0.07387403258015605 + 2.0678 * 10 ^ - 3(*energy 1*)


Out[69]= 0.0759418

In[70]:= 0.07387403258015605 - 2.0678 * 10 ^ - 3(*energy 2*)


Out[70]= 0.0718062

Printed by Wolfram Mathematica Student Edition


4 7.2.3(i).nb

In[71]:= (* creating a hamiltonian for meassuring the energy difference*)

hamiltonian = - hbar ^ 2  2 * mb * Integrate[G * Exp[- k ' * z] * D[D[G * Exp[k ' * z], z], z],
{z, 2.5 * 10 ^ - 9, width + 2.5 * 10 ^ - 9}](*calculating the hamiltonian*)
Out[76]= - 1.08303 × 10-19 0. + width

In[109]:= Plot0.07594183258015605 * e -
G ^ 2 * Exp- 2 * k ' * width + 2.5 * 10 ^ - 9 * hamiltonian + V0 * e, {width, 0, 1 * 10 ^ - 09}

6. × 10-21

4. × 10-21

Out[109]= 2. × 10-21

2. × 10-10 4. × 10-10 6. × 10-10 8. × 10-10 1. × 10-9

-2. × 10-21

In[110]:= FindRoot0.07594183258015605 * e -
G ^ 2 * Exp- 2 * k ' * width + 2.5 * 10 ^ - 9 * hamiltonian + V0 * e ⩵ 0, {width, 2 * 10 ^ - 10}
Out[110]= width → 2.1014 × 10-10 

In[112]:= Plot0.07180623258015606 * e -
G ^ 2 * Exp- 2 * k ' * width + 2.5 * 10 ^ - 9 * hamiltonian + V0 * e, {width, 0, 1 * 10 ^ - 09}

6. × 10-21

4. × 10-21

2. × 10-21
Out[112]=

2. × 10-10 4. × 10-10 6. × 10-10 8. × 10-10 1. × 10-9

-2. × 10-21

-4. × 10-21

In[113]:= FindRoot0.07594183258015605 * e -
G ^ 2 * Exp- 2 * k ' * width + 2.5 * 10 ^ - 9 * hamiltonian + V0 * e ⩵ 0, {width, 2 * 10 ^ - 9}
Out[113]= width → 1.46324 × 10-9 

(*Lower barrier can be discarded as for that the WF can


interfere much* SO THE WIDTH SHOULD BE 2.1013965269079832`10^-10 M

Printed by Wolfram Mathematica Student Edition

You might also like