Rate and State Friction Simulator

Step 1: Set up the program to run on your machine,

Here is an executable version will run on your mac or linux machine:
Compiled executable program for unix/linux Intel processor.
Download the file (rsfs) then change it to be executable by typing this in a Terminal command line: chmod +x rsfs
Then type the program name at a command line. See the usage instructions and examples.


If you need to compile the code, you'll need these two links:
header file with structure definitions. Download and put in same folder as c code
C code. Download and compile with: gcc -o rsfs rsfs.c -lm


On a mac: To compile, install command line tools and a c-compiler, like gcc. You can use a package manager like home-brew, or use the "OSX GCC Installer".
OSX GCC Installer
If you're having trouble running rsfs from the command line of your terminal, make sure that the current directory —whereever you have the program rsfs— is in your path. Or, if you don't know how to adjust your path, you can run the program directly, by typing ./rsfs
An example of a full command: ./rsfs file1 d 10 10 1 .1 .1 200 .001 .008 .009 5 1 -10 -t

On a PC: Windows users must first install cygwin.
Installation instructions for cygwin
During the installation you will need the Debug and Devel packages.
Once cygwin is installed, rsfs.c can be compiled in the cygwin terminal using the command above.
The result is an executable file named rsfs.exe.
To run, use the command: ./rsfs.exe See the usage instructions and examples.
An example of a full command: ./rsfs.exe file1 d 10 10 1 .1 .1 200 .001 .008 .009 5 1 -10 -t

Step 2: Problem Set 4, Due 12 Mar.

This is a zip file of my plotter 'xmsp' Download the zip, unzip it and then you should be able to run it from the command line as ./xmsp It has a usage statement

Copyright 2002-2021, Penn State University