# Simple bouncing molecules in a 3-D system /* This file doesn't work right. I'm not sure why, but it needs debugging. */ graphics opengl dim 3 species red green max_mol 200 rand_seed 0 difc red 3 difc green 1 color red 1 0 0 color green 0 1 0 time_start 0 time_stop 100 time_step 0.01 boundaries 0 0 100 boundaries 1 0 100 boundaries 2 0 100 mol 20 red 10 50 50 mol 10 green u u u max_surface 2 start_surface walls action both all reflect polygon both edge max_panels rect 5 panel rect -0 100 0 0 100 100 panel rect +1 0 0 0 100 100 panel rect -1 0 100 0 100 100 panel rect +2 0 0 0 100 100 panel rect -2 0 0 100 100 100 end_surface start_surface portsurf action front all port action back all reflect color front 0.2 0 0 0.5 color back 0 0 0 polygon both face max_panels rect 1 panel rect +0 0 0 0 100 100 end_surface max_port 1 start_port testport surface portsurf face front end_port cmd e porttransport testport testport cmd e warnescapee all end_file