/* From an ideaa of Michael Creutz */ /* creutz@wind.phy.bnl.gov */ /* to compile: */ /* cc -O -L/usr/X11R6/lib schrodlab.c -lX11 -lm */ /* Version April 6, 1998. */ /* by Claudio Destri, destri@mi.infn.it, with many changes and */ /* additions with respect to the original by Creutz. */ /* !!!!!! FFT CHANGED TOO !!!!!!!!!!!!!!!!!!!!!! */ /* this solves the Schrodinger equation in a potential */ /* displays amplitude squared and the potential superposed */ /* the left mouse button perturbs the wave function */ /* the right mouse button perturbs the potential */ /* the damp button evolves system towards the ground state */ /* the t -> -t button implements time reversal */ /* the show E button lets the avarage energy be shown as a line */ /* the rotate V button rotates through few preset potentials */ /* the kick button varies the average momentum */ /* the hbar button varies Plank's constant */ /* the speed button varies the speed of the evolution */ /* the fourier button shows the amplitude squared in fourier space */ /* the project button projects out the psi's captured in the */ /* register buttons 0 to 5 which are pressed */ BeOS port by Giulio Eulisse: ktf@pcteor1.mi.infn.it Some minor changes to prof. Destri's version. I basically removed the XWindow code and added the BeOS GUI and support for it. Display size fixed to 512*512 because of porting problems with window size indipendent rendering code.For calculations 1024 points are still used. The BeOS version seems to be faster than the linux one(possibly because of the new rendering tecnique and egcs compiler use), and has a much nicer GUI (but not fully functional yet). NO sources released yet for this port, mail me if interested, they are very messy. Hope you enjoy it. PS:There are still some problems in the asyncronous rendering routine I used for drawing, so it's safer pause the simulation before changing some parameters(i.e. h value).