Interesting Examples of Computational Physics
  • Welcome to the blog of Computational Physics at the IFM!
  • Dynamical Systems
    • The simple pendulum
    • The spherical pendulum
  • The wave equation
    • The simple discretization
    • Boundary conditions
    • Interfaces between mediums
    • Knots on ropes
    • 2D wave equation
  • Time dependent Schrödinger equation
    • The Crank-Nicolson method
    • Free wave packet
    • Quantum Tunneling
    • Harmonic Oscillator
    • Forced Harmonic Oscillator
    • 2D Harmonic Oscillator
    • Wave-particle duality
Powered by GitBook
On this page
  1. Time dependent Schrödinger equation

Forced Harmonic Oscillator

PreviousHarmonic OscillatorNext2D Harmonic Oscillator

Last updated 9 months ago

Numerical Domain
xmin = -3
xmax =  3
Nx = 3000
CFL = 0.125
Nt = 960000


Initial Conditions (ground state of the potential)
omega = 12.5d0*pi
psi = (omega/pi)**0.25 *exp(-0.5*omega*x**2)

Potential
V(t) = 0.5d0 * (omega*x)**2 + 0.2*omega**2*sin(omega*t)*x