WLJS LogoWLJS Notebook

SchrodingerPDEComponent

SchrodingerPDEComponent[vars, pars] yields a Schrödinger PDE term with model variables vars and model parameters pars.

Examples

Schrödinger equation component:

SchrodingerPDEComponent[{ψ[x, t], t}, {x}]

Time-independent Schrödinger equation:

SchrodingerPDEComponent[{ψ, x}, <|"Mass" -> 1, "PlanckConstant" -> 1|>]

In NDSolve:

NDSolve[{SchrodingerPDEComponent[{u[x, t], t}, {x}] == 0,
  u[x, 0] == Exp[-x^2]}, u, {x, -5, 5}, {t, 0, 1}]

Please visit the official Wolfram Language Reference for more details.

On this page