Red Snappers: A Mechanistic Model of How the Venus Flytrap Snaps
Source Code

Aaswath P. Raman
December 12, 2007

The code linked to this page is part of a report submitted as coursework for Physics 210, Stanford University, Fall 2007. It written in C++ and posted as the tarball solver.tar.gz. The instructions for compiling with g++ are

                  tar -zxf solver.tar.gz
                  g++  solver.cpp -o solver
    

This code reads the file "input_data.txt" packed with the source and generates from it the file "results.txt" plotted in Fig. 2 of the report. To run, enter

                  ./solver
    

© 2007 Aaswath P. Raman. The author grants permission to copy, distribute and display this work in unaltered form, with attribution to the author, for noncommercial purposes only. All other rights, including commercial rights, are reserved to the author.