JavaSci Examples

Hydrogen Radial Wavefunctions

Calculates and displays the radial wavefunctions of the hydrogen atom. It uses the LineGraph class in the JSci.awt package.

java RadialWavefunction
Source code

MonteCarlo

Calculates the ground state energy of the Helium atom using variational quantum Monte Carlo. It displays the results on the screen and also writes them to a file, using the JSci.io package.

java MonteCarlo <number of iterations>
Source code

Quasicrystal

Calculates the phonon modes of a one-dimensional Fibonacci quasicrystal. It also saves the results to a file using the JSci.io package.

java Quasicrystal <length of chain> <mass of atom 1> <mass of atom 2>
Source code

PeriodicTable

A basic periodic table program. It demonstrates the usage of the chemistry package.

java PeriodicTable
Source code

HEPsimulator

Works out all the possible two particle products from either a two particle collision (particle accelerator) or a single particle decay (bubble chamber). This is a good example of how the particle package can be applied.

java HEPsimulator
Source code


Return to the Developer's Guide contents.