|
numerics
|
Real-time raylib visualisation of the 2-D TDSE solver. More...
#include "raylib.h"#include "tdse_solver.hpp"#include <vector>#include <cmath>#include <cstdio>#include <algorithm>Go to the source code of this file.
Functions | |
| int | main (int argc, char *argv[]) |
Real-time raylib visualisation of the 2-D TDSE solver.
Visualisation: Default mode – probability density |psi|^2 coloured by quantum phase (HSV: hue = phase, brightness = prob, saturation = 1) Mode key D – probability density only (black -> cyan -> white hot-map) Potential overlay drawn at 30% opacity over the wavefunction
Controls: SPACE pause / resume R reset wavepacket (click to reposition) P cycle potentials (Free -> Barrier -> DoubleSlit -> Harmonic -> CircularWell) E compute eigenmodes (Lanczos, runs in current thread ~1-2 s) 1-8 load eigenmode k (after E) D toggle density-only vs phase colour map Left click place wavepacket at cursor position Scroll up/dn increase / decrease initial momentum (kx)
Definition in file main.cpp.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 82 of file main.cpp.
References tdse::TDSESolver::at(), tdse::Barrier, tdse::CircularWell, tdse::TDSESolver::compute_energy(), tdse::TDSESolver::compute_modes(), tdse::TDSESolver::compute_norm(), tdse::DoubleSlit, tdse::Stats::energy, tdse::Free, tdse::Harmonic, tdse::TDSESolver::init_gaussian(), tdse::TDSESolver::modes, tdse::TDSESolver::modes_ready, tdse::Stats::n_modes, tdse::Stats::norm, tdse::TDSESolver::phase_ang(), tdse::potential_name(), tdse::TDSESolver::prob(), tdse::TDSESolver::set_mode(), tdse::TDSESolver::set_potential(), tdse::TDSESolver::stats, tdse::TDSESolver::step(), tdse::Stats::step_ms, and tdse::TDSESolver::V.