Quantum Mechanics in 3D with the PDE Toolbox

Computes eigenstates of the Schrodinger equation in three dimensions for various geometries and potential functions.
21 Downloads
Updated 17 Apr 2025

View License

This educational Live Script explores three-dimensional stationary state solutions to the Schrodinger equation with the Partial Differential Equation Toolbox, extending the one-dimensional, two-dimensional, and three-dimensional examples in Ref[1-6]. The script illustrates Toolbox support for the creation and meshing of complex three-dimensional geometries. The numerical results for the 3-D harmonic oscillator and Coulomb potentials (both possibly anisotropic) are compared to analytic results. The case of an isotropic spherical harmonic oscillator confined between two spherical shells is solved by finding the solutions to the radial equation numerically and the energy spectrum compared to the full 3-D calculation as a further check.
This script may interest students and instructors in physics and related fields. 'Try this' suggestions, 'Challenges,' hyperlinks, and references are included for further exploration.

Cite As

Duncan Carlsmith (2025). Quantum Mechanics in 3D with the PDE Toolbox (https://www.mathworks.com/matlabcentral/fileexchange/180818-quantum-mechanics-in-3d-with-the-pde-toolbox), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2024b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

QuantumMechanicsIn3DWithThePDEToolbox folder

Version Published Release Notes
1.0.1

Minor fixes.

1.0.0