Skip to content

gratach/quantsimulant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quantsimulant

This is a web application for simulating the one-dimensional schrödinger equation in a custom time-dependent potential. The simulation is done by solving the time-dependent schrödinger equation using the runge-kutta method. The simulation is done in the browser using WebAssembly.

The website is hosted on quantsimulant.de. A technical description of the simulation can be found in my bachelor thesis (German).

Usage

The application shows the wave function of a one-dimensional particle as a blue line. The potential is shown as a black line. The potential can be changed by drawing a new potential with the mouse. The simulation can be started and stopped by pressing the space bar. The wave function can be rotated and tilted in the complex plane by using the wasd keys. The j and k keys can be used to navigate forward and backward in time when the simulation is stopped. The application remembers the changes to the potential and plays them back when the simulation is repeated.

Building the project

This project uses the emscripten compiler to compile the C code to WebAssembly.

Download the latest version of emscripten and activate it by running the following commands in the installation directory:

git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install latest
./emsdk activate latest
source ./emsdk_env.sh

Build the project by running the following command in the root directory of the project:

./erstelle

Hosting the project

The www directory contains the files that need to be hosted on a web server. Use the following command to start a simple web server in the www directory:

./server

The website can now be accessed by opening a browser and navigating to localhost:9090.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors