<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/194039</link>
    <title>MATLAB Central Newsreader - MATLAB modeling of finite quantum model</title>
    <description>Feed for thread: MATLAB modeling of finite quantum model</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sat, 16 Aug 2008 03:22:02 -0400</pubDate>
      <title>MATLAB modeling of finite quantum model</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/194039#510862</link>
      <author>Nikolaus Jewell</author>
      <description>I am currently programming a model of a finite quantum well and have run &lt;br&gt;
into a couple of problems. After applying boundary conditions, I get two &lt;br&gt;
equations: &lt;br&gt;
&lt;br&gt;
tan(theta) = sqrt(theta_knot^2/theta^2 - 1)&lt;br&gt;
cot(theta) = -sqrt(theta_knot^2/theta^2 -1)&lt;br&gt;
&lt;br&gt;
The parameters theta and theta_knot have the width of well, barrier potential, &lt;br&gt;
and mass of the electron embedded in them. &lt;br&gt;
&lt;br&gt;
I tried solving this in two ways:&lt;br&gt;
&lt;br&gt;
1) I arranged loops to solve using the &quot;solve&quot; command for transcendental&lt;br&gt;
equation but the cotangent argument was causing a problem.&lt;br&gt;
&lt;br&gt;
2) My other attempt consisted of incrementing theta between odd intervals of &lt;br&gt;
pi for tangent and even intervals of pi for cotangent until upon substitution &lt;br&gt;
into the above equations they did equal within 0.00000001. This approach is &lt;br&gt;
currently giving me some problems. Am on I doing this correctly or is there a &lt;br&gt;
better way. A friend suggested using Newton-Raphson method but I am &lt;br&gt;
unsure how to apply this because as far as I am aware that method is for &lt;br&gt;
finding zeroes and I am interested in the intersections of these equations so &lt;br&gt;
that I can derive the possible energy levels. Thanks in advance.&lt;br&gt;
&lt;br&gt;
Nik</description>
    </item>
    <item>
      <pubDate>Sat, 16 Aug 2008 19:07:02 -0400</pubDate>
      <title>Re: MATLAB modeling of finite quantum model</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/194039#510912</link>
      <author>Roger Stafford</author>
      <description>&quot;Nikolaus Jewell&quot; &amp;lt;nik.jewell@gmail.com&amp;gt; wrote in message &amp;lt;g85h4q$1bs&lt;br&gt;
$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; ......&lt;br&gt;
&amp;gt; tan(theta) = sqrt(theta_knot^2/theta^2 - 1)&lt;br&gt;
&amp;gt; cot(theta) = -sqrt(theta_knot^2/theta^2 -1)&lt;br&gt;
&amp;gt; .......&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;If you are looking for real solutions and if 'sqrt' is considered non-negative, &lt;br&gt;
there are no solutions to your two equations!  You have only to multiply the &lt;br&gt;
left and right sides of the equations and get the impossible equality&lt;br&gt;
&lt;br&gt;
&amp;nbsp;1 = -(sqrt(theta_knot^2/theta^2 - 1))^2&lt;br&gt;
&lt;br&gt;
to see that.&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;If you permit one of the above square roots to be negative, you have&lt;br&gt;
&lt;br&gt;
&amp;nbsp;1 = theta_knot^2/theta^2 - 1,&lt;br&gt;
&lt;br&gt;
which leads to&lt;br&gt;
&lt;br&gt;
&amp;nbsp;tan(theta) = + or - sqrt(1) = +1 or -1.&lt;br&gt;
&lt;br&gt;
Hence theta = pi/4, 3*pi/4, 5*pi/4, or 7*pi/4.  Also&lt;br&gt;
&lt;br&gt;
&amp;nbsp;theta_knot = + or - theta*sqrt(2)&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;I would suggest you look more carefully into whatever analysis went into &lt;br&gt;
these original two equations of yours and see if some unwarranted &lt;br&gt;
assumptions were made.&lt;br&gt;
&lt;br&gt;
Roger Stafford</description>
    </item>
    <item>
      <pubDate>Sat, 16 Aug 2008 19:43:02 -0400</pubDate>
      <title>Re: MATLAB modeling of finite quantum model</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/194039#510916</link>
      <author>Per Sundqvist</author>
      <description>&quot;Nikolaus Jewell&quot; &amp;lt;nik.jewell@gmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;g85h4q$1bs$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I am currently programming a model of a finite quantum&lt;br&gt;
well and have run &lt;br&gt;
&amp;gt; into a couple of problems. After applying boundary&lt;br&gt;
conditions, I get two &lt;br&gt;
&amp;gt; equations: &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; tan(theta) = sqrt(theta_knot^2/theta^2 - 1)&lt;br&gt;
&amp;gt; cot(theta) = -sqrt(theta_knot^2/theta^2 -1)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The parameters theta and theta_knot have the width of&lt;br&gt;
well, barrier potential, &lt;br&gt;
&amp;gt; and mass of the electron embedded in them. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I tried solving this in two ways:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 1) I arranged loops to solve using the &quot;solve&quot; command for&lt;br&gt;
transcendental&lt;br&gt;
&amp;gt; equation but the cotangent argument was causing a problem.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 2) My other attempt consisted of incrementing theta&lt;br&gt;
between odd intervals of &lt;br&gt;
&amp;gt; pi for tangent and even intervals of pi for cotangent&lt;br&gt;
until upon substitution &lt;br&gt;
&amp;gt; into the above equations they did equal within 0.00000001.&lt;br&gt;
This approach is &lt;br&gt;
&amp;gt; currently giving me some problems. Am on I doing this&lt;br&gt;
correctly or is there a &lt;br&gt;
&amp;gt; better way. A friend suggested using Newton-Raphson method&lt;br&gt;
but I am &lt;br&gt;
&amp;gt; unsure how to apply this because as far as I am aware that&lt;br&gt;
method is for &lt;br&gt;
&amp;gt; finding zeroes and I am interested in the intersections of&lt;br&gt;
these equations so &lt;br&gt;
&amp;gt; that I can derive the possible energy levels. Thanks in&lt;br&gt;
advance.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Nik&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
Hi, It does not seem likely that you get only trigonometric&lt;br&gt;
functions, because the wave functions in the barrier must&lt;br&gt;
decay, something like exp(-kappa*x)&lt;br&gt;
,kappa=sqrt(2*m*(V-E)/hbar^2) and in the well&lt;br&gt;
exp(i*k*x),exp(-i*k*x), etc. Fitting Psi and derivatives at&lt;br&gt;
x=0 and L gives you a linear problem with 4 unknown&lt;br&gt;
coefficcients. Taking the determinant=0 you get a&lt;br&gt;
oscillating expression weighted with cosh and sinh&lt;br&gt;
contributions as I remember (simplify by using simple if you&lt;br&gt;
have symbolic toolbox). &lt;br&gt;
&lt;br&gt;
You should NOT try to arrange things like: cos+k^2sin=0 into&lt;br&gt;
tan(x(E))=-1/k^2 because tan is much more difficult to solve&lt;br&gt;
than the original: &lt;br&gt;
f(E)=cos+k^2sin=0 (now more complicated in the finite wall&lt;br&gt;
problem). Just use plot(Evec,fvec) to see graphically where&lt;br&gt;
your zeros are and you get the eigenvalues there.&lt;br&gt;
&lt;br&gt;
Good luck,&lt;br&gt;
Per</description>
    </item>
  </channel>
</rss>

