# Simple bouncing molecules with surfaces

random_seed 1

graphics opengl

dim 1
species red green blue

difc red 3
difc green 2
difc blue 3

color red 1 0 0
color green 0 1 0
color blue 0 0 1
display_size red 5
display_size green 5
display_size blue 5

time_start 0
time_stop 50
time_step 0.02

boundaries 0 0 100

mol 10 red 50
mol 2 red 75
mol 10 green 90
mol 10 blue 5

start_surface walls
action both all jump
color both 0 0 0
panel rect +0 0
panel rect -0 100
jump rect0 f <-> rect1 f
end_surface

start_surface surf
action both red reflect
action both green absorb
action both blue transmit
color front 1 0.7 0
color back 0.6 0 0.6
thickness 2
panel rect +0 60
panel tri 30
panel sph 75 5
end_surface

ifdefine OUTFILE
  output_files OUTFILE
  cmd a listmols OUTFILE
endif

end_file

