Infinite Square Well with an Oscillating Wall (Klein-Gordon Equation)

1 reply · 2K views · last reply
Foracle
Messages
29
Reaction score
8
TL;DR
Numerical solution of the wavefunction blows up when the frequency of oscillation of the wall is high. What does this mean?
I am trying to numerically solve (with Mathematica) a relativistic version of infinite square well with an oscillating wall using Klein-Gordon equation. Firstly, I transform my spatial coordinate ## x \to y = \frac{x}{L[t]} ## to make the wall look static (this transformation is used a lot in solving non-static boundary condition in the non-relativistic case), which brings Klein-Gordon equation to :
Input :
Mathematica input showing ydum = x / L2[t], and expr2 defined as (1/c^2) D[psi[ydum, t], {t, 2}] - D[psi[ydum, t], {x, 2}] + (m^2 c^2 / h^2) psi[ydum, t], with substitutions and Expand applied.

Output :
Equation: a transformed Klein-Gordon equation written as a sum of terms, with c^2 m^2 psi[y,t]/h^2, psi^(0,2)[y,t]/c^2, 2y L'[t]^2 psi^(1,0)[y,t]/(c^2 L[t]^3), y L''[t] psi^(1,0)[y,t]/(c^2 L[t]), and further terms in psi^(1,1) and psi^(2,0).

All constants have been set to 1
Four Mathematica-style constant assignments on separate lines: m = 1; c = 1; h = 1; a = 1;

I tried to solve this system where ##L(t)=2+sin(1000 t)## using NDSolve :
Mathematica code defining L[t] = 2 + Sin[1000 t] and calling NDSolve on a PDE in psi[y, t] with Dirichlet boundary conditions, a square-root initial condition, and y from 0 to 1 and t from 0 to 20.

Then I plot my result as a function of ##(y,t)## :
3D surface plot of a wavefunction over y from 0 to 1 and t from 0 to 0.0010, with the vertical axis ranging 0 to 40; the surface stays flat near zero for small y but becomes large, jagged and spiky for y above about 0.5.

The wavefunction ##\psi## blows up. This doesn't happen when I tune the frequency down to 1, ##L(t)=2+sin(t)##
3D surface plot of a wavefunction psi against time t (0 to 6) and spatial coordinate y (0 to -1), showing a mesh surface that develops a sharp, spiky spike near t of about 4 to 5 and a deep dip near t of about 3.

My question is why does ##\psi## blow up when the frequency of the oscillation is high and what does it mean? Does it have anything to do with particle production? Or did I just mess up my code?
 
Attachments
  • Mathematica code: L = 2 + Sin[1000 t]; sol = NDSolve[{expr1 == 0, DirichletCondition[psi[y, t] == 0, y > 1], psi[1, t] == 0, psi[0, t] == 0, psi[y, 0] == sqrt(...) Sin[pi y], ...}, psi, {y, 0, 1}, {t, 0, 20}].
    1644917332177.png
    7.1 KB · Views: 200
Last edited:
I have located my error. It was the fact that when I set ##\omega## to 1000, the velocity of the wall, ##\dot{L} = \omega cos(\omega t) \ge 1##, which is not allowed in the units that I am working with ##(c=1)##.
The solution to this is just to set ##L(t) = \frac{1}{\omega} (2+sin(\omega t))##, and this disastrous result doesn't happen anymore.