Skip to main content navigation
parent site logoSite logo

Projects archive / Cat Flap

Code:catflapWard1997
Title:Cat Flap
Author:Ashley Ward
Date:Dec-1997
Type:model
Funding:MScM - MSc one-week module project
Short description:Cat Flap and Cat tkeden model with visualisation
EM Technologies:tkeden, %eden, %scout, %donald
Keywords:simulation
empublic references:catflapYung1994
EMpress references:
Web site references:
Previous locations:~wmb/public/projects/simulations/catflap/ashley, ~ashley/Open/Flap

This model was inspired by Simon Yung's LSD cat flap specification, catflapYung1994. Using ideas from this specification, I wrote my own
LSD code, catflap.lsd. This spec was then rewritten in Eden, and a visualisation constructed using Donald and Scout.

Notable features include a moving Scout window modelling the cat, sound effects using a system() call, a coloured Donald cat with various expressions, rescalable visualisation using the parameter simSize (see linkvis.e), placement of a Scout window in a Donald figure (involving some thought about the two different coordinate systems, using Mathematica), use of eager() to force the display to be updated whilst a procedure is active.

The interaction between cat and flap in the "real world" seems a complex one. For example: does the cat actually move "inside" the flap before the flap responds by moving upwards? In the "real world" this is a continuous process... but it must be discretised for the model. There is at least one problem with the current model: if the cat changes direction halfway through the flap, the flap may remain hanging in mid air. The model really should have forces acting upon the flap as observables...

catflapWard1997 is available locally within DCS at /dcs/emp/empublic/projects/catflapWard1997
Download catflapWard1997.tar.gz
Uncompressed, catflapWard1997 is 1.3 Mbytes (in 45 files).
Your download will be smaller as it will be compressed.
Help on extracting the files from the download.
README.xml 1857 08:03 PM Aug 08 2002 04:05 PM Dec 15 2014
README.xml.bak 1838 08:01 PM Aug 08 2002 04:05 PM Dec 15 2014
README.xml~ 1838 07:52 PM Aug 08 2002 04:05 PM Dec 15 2014
Run.e 22 11:00 PM Apr 23 2002 04:05 PM Dec 15 2014
cat.e 5345 11:15 PM Dec 17 1997 04:05 PM Dec 15 2014
catflap.e 3901 01:38 PM Dec 18 1997 04:05 PM Dec 15 2014
catflap.lsd 7111 06:38 PM Dec 16 1997 04:05 PM Dec 15 2014
catshape.d 6753 08:48 PM Dec 18 1997 04:05 PM Dec 15 2014
enum.d 380 08:49 PM Dec 18 1997 04:05 PM Dec 15 2014
enum.e 382 08:49 PM Dec 18 1997 04:05 PM Dec 15 2014
enum.s 402 08:49 PM Dec 18 1997 04:05 PM Dec 15 2014
flap.e 1630 02:34 PM Dec 18 1997 04:05 PM Dec 15 2014
flapshape.d 1365 02:34 PM Dec 18 1997 04:05 PM Dec 15 2014
floorshape.d 998 02:06 PM Dec 18 1997 04:05 PM Dec 15 2014
genfuncs.e 765 11:55 AM Dec 17 1997 04:05 PM Dec 15 2014
linkvis.e 7845 09:03 PM Dec 18 1997 04:05 PM Dec 15 2014
run 290 09:52 PM Dec 18 1997 04:05 PM Dec 15 2014
s4_report.pdf 1227648 10:57 PM Apr 23 2002 04:05 PM Dec 15 2014
screenshot_overall.gif 7799 11:24 PM Dec 18 1997 04:05 PM Dec 15 2014
sound.e 3804 01:22 PM Nov 04 1999 04:05 PM Dec 15 2014
soundlevel.d 978 05:27 PM Dec 18 1997 04:05 PM Dec 15 2014
wallshape.d 1103 02:35 PM Dec 18 1997 04:05 PM Dec 15 2014
windows.s 6385 09:24 PM Dec 18 1997 04:05 PM Dec 15 2014
Audio/ 4096 10:56 PM Apr 23 2002 04:05 PM Dec 15 2014
FirstTry/ 4096 07:30 PM Dec 11 1997 04:05 PM Dec 15 2014
Mathematica/ 4096 09:42 PM Dec 18 1997 04:05 PM Dec 15 2014
SecondTry/ 4096 04:18 PM Dec 15 1997 04:05 PM Dec 15 2014

empublic system initially created by Ashley Ward with assistance from Chris Roe and Meurig Beynon.