# Demonstration of compartments
# This file shows a compartment with several interior-defining points

graphics opengl

dim 2
boundaries x 0 100
boundaries y 0 100
frame_thickness 0

species red green
random_seed 0

difc red 3
difc green 0

difm red 1 0 0 2
difm green 1 0 0 2

color red red
color green green
display_size red 3
display_size green 5

time_start 0
time_stop 100
time_step 0.01

start_surface walls
action both all r
color both 0 0 0
panel rect +x 0 0 100
panel rect -x 100 0 100
panel rect +y 0 0 100
panel rect -y 0 100 100
end_surface

start_surface surf
action both all reflect
color front 1 0.7 0
color back 0.6 0 0.6
thickness 1
panel sphere 50 50 20 30
panel sphere 50 50 30 30
end_surface

start_compartment middle
surface surf
point 50 75
point 50 25
point 75 50
point 25 50
end_compartment

compartment_mol 500 red middle

mol 1 green 50 75
mol 1 green 50 25
mol 1 green 75 50
mol 1 green 25 50

end_file
