# Simple bouncing molecules

graphics opengl
graphic_iter 1

dim 2
species red
molperbox 2

difc red 3

color red 1 0 0
display_size red 3
frame_color 1 1 1
frame_thickness 0

time_start 0
time_stop 1000
time_step 0.1

boundaries 0 0 100
boundaries 1 0 100

mol 1000 red u u

output_files crowdout.txt

cmd b killmolinsphere all all
cmd x 0 1000 0.1 1.05 meansqrdisp red all crowdout.txt

start_surface sides
action front all jump
action back all reflect
color both 0.5 0.5 0.5 0.5
thickness 1
panel r +0 0 0 100 rect0
panel r -0 100 0 100 rect1
panel r +1 0 0 100 rect2
panel r -1 0 100 100 rect3
jump rect0 front <-> rect1 front
jump rect2 front <-> rect3 front
end_surface

start_surface circles2
action both all r
polygon front f
color both 0 0 0
read_file crwd2D60.txt
end_surface

end_file

