CW_TEXT_DISPLAY.PRO (17.1 KB)
This compound widget can be used to display text using colored fonts. This
is not a replacement for WIDGET_TEXT because it is not editable. It is for
display purposes only. See the program appended
to the end of the source code for an example implementation.
Requires David Fanning's program FSC_COLOR.PRO and IDL 5.6 and higher.
screen shot of example usage
CW_COLOR_BUTTON.ZIP (17.9 KB)
This zip file contains two files: cw_color_button.pro and big_stop.png. To
run properly both files must be located in the same directory and the
function SOURCEROOT.PRO must also
be somewhere in your IDL path.
Compound widget (internally written as an object) that can be configured
to have the same functionality as a conventional widget button and even
extended to have toggle functionality. See the program appended
to the end of the source code for an example of how each of these modes works.
Requires IDL 6.0 and higher (because of the use of ARRAY_INDICES).
screen shot of example usage
CW_COLOR_BGROUP.PRO (18.8 KB)
Compound widget (internally written as an object) similar in functionality
to CW_BGROUP which comes with the IDL distribution. This compound widget
uses user-configured colored buttons using the CW_COLOR_BUTTON compound
widget listed above. See the program appended
to the end of the source code to see how to use this compound widget.
Requires CW_COLOR_BUTTON.ZIP distribution above and IDL 6.0 and higher.
screen shot of example usage
CW_LED.PRO
(20.3 KB)
Compound widget (internally written as an object) that provides
an LED-light type status indication. LEDs can be turned on and off using WIDGET_CONTROL.
Requires IDL 6.0 and higher (because of the use of ARRAY_INDICES).
screen shot of example usage
CW_PROGRESS.PRO
(15.8 KB)
Compound widget (internally written as an object) that provides
a progress bar. Progress can be updated by using WIDGET_CONTROL.
Requires IDL 5.6 and higher.
screen shot of example usage
SE_SIM.ZIP
(150 KB)
There are three main files in this ZIP file and a
folder containing the documentation:
TDSE_SOLVER.PRO, SE_SIM.PRO, and RMD_WINDOW.PRO (an auxiliary widget
application that allows visualization of .
TDSE_SOLVER.PRO is a function that returns the space- and time-dependent complex wavefunction for a user-specified initial (t=0) wavefunction and user-defined 1-D potential. Note that the potential can have both real and imaginary components but unitarity is not maintained if an imaginary component is present. It is based on an algorithm described in an article by Goldberg et. al. (Goldberg et. al., Am.J.Phys. vol. 35, p. 177, 1967).
SE_SIM.PRO is a GUI wrapper for TDSE_SOLVER.PRO that allows the user to explore the time-evolution of one-dimensional quantum systems. The application allows the user to define an initial wavefunction, a (possibly complex) potential function (general barriers, wells or combinations thereof), and the discretization of time and space needed for the numerical solution of the Schrodinger equation. Computation of the time-development of the quantum system is relatively rapid (of order a few seconds for many interesting cases) and the interface gives the user control over the speed of the animation. Once the calculation is complete, the user can play back the animation--skipping frames to increase playback speed--as well as pause and resume the sequence at any time. User can zoom into the visualization to explore various features in the probability density, the real and imaginary parts of the wavefunction in configuration or momentum space, and the probability current. Additional features include the ability to write individual frames from the animation out to a graphics file and/or save the sequence as an animated GIF file. "Canned" examples are provided in the menu that illustrate quantum tunneling, wavepacket spreading, reflection/transmission at a square barrier, reflection/transmission at a square well, excitation of virtual/metastable states, and wavepacket scattering from a periodic structure.
Note that SE_SIM.PRO uses IDL's EXECUTE function. screen shot of example usage
Click here for an example of
animated GIF output for wavepacket scattering from a well.
Click here for an example of
animated GIF output for wavepacket scattering and tunneling from a barrier.
RMD_PICKFILE.PRO (19.1 KB)
File selection utility that allows additional functionality
beyond DIALOG_PICKFILE. In particular it is possible to use the FILTER_IN to specify a filetype filter. On input the user can specify which files to display when the dialog first launches. If the user changes the filter in the "Filter" text box then the new filter string is passed out of the function via the FILTER_OUT keyword.
Requires IDL 6.1 and higher (version updated 02/16/05)
screen shot of example usage
CREATE_SIMPLEX.PRO
This function returns the nodes of an equilateral
n-dimensional simplex. The input parameter is the dimenion of the
desired simplex (an integer greater than 0). Input keywords
specify the center of the resulting simplex (vector of length
n-dimension) and the radius (scalar) of the hypersphere upon which the
nodes are located. The default is a center at the origin and unit
radius.
SEUTIL.PRO
This simple widget program solves the Schrodinger
equation in one
dimension using the discrete variable approximation. The user can type
in a function of x that represents the potential (in IDL syntax), and
the eigenvalues and probability density are calculated for that
potential. The accuracy of the eigenvalues increases as the size of the
Hamiltonian increases but at the cost of processing speed.
Screen shot
XCALC.PRO
This widget program simulates simple calculator operations. This
program was developed for an IDL applications development course.
Screen shot
XTETRIS.PRO
This widget program is based on the original TETRIS.PRO written
by Ray Sterner (Johns Hopkins
Applied Research Lab). It requires the object class
PRINTOBJ__DEFINE.PRO found
below. This program was developed for an IDL applications development
course.
Screen shot