Skip to content

JannisKoerner/third-order-WKB-marching-method

Repository files navigation

Table of Contents

  1. About
  2. Getting Started
  3. Usage
  4. Help
  5. License

About

This is a MATLAB tool for solving numerically the highly oscillatory 1D Schrödinger equation

Here, a(x) is a real valued coefficient function bounded away from zero and epsi is the rescaled Planck constant 0 < epsi << 1.

The whole program directly corresponds to the article: A. Arnold, J. Körner: "WKB-based third order method for the highly oscillatory 1D stationary Schrödinger equation" [(https://doi.org/10.1007/s10444-025-10234-y)].

The main program is "third_order_WKB_marching_method.m".

Getting Started

Prerequisites

To run the program the following requirements are needed:

  • MATLAB

Installation

Just clone the repository

git clone https://github.com/JannisKoerner/third-order-WKB-marching-method.git

or download it manually.

Make sure the folder is added to the MATLAB search path.

Usage

For a quick start you can just run the example file "Test_third_order_WKB_marching_method_Airy.m". A plot of the numerical solution is created together with the corresponding reference solution, as well as a plot of the relative error over the specified spatial interval:

Notice that although the true solution becomes increasingly oscillatory, the error of the numerical solution does not increase, even though a constant grid size is used.

Help

There are short documentations available, just type the following commands into your MATLAB console:

   doc third_order_WKB_marching_method

License

This work is licensed under a Creative Commons Attribution 4.0 International License.

CC BY 4.0

About

A MATLAB routine to compute a third order (w.r.t. the step size) numerical solution of the 1D stationary Schrödinger equation in the highly oscillatory regime.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages