.. _getting_started: *************** Getting started *************** .. _installation: Installation ============================= For this to run, you will need the following installed * Python 2.7+/3+ * NumPy * Matplotlib If running on Mac OS X, I recommend installing the Anaconda_ package. On Ubuntu, just type:: sudo apt-get install python python-numpy python-matplotlib .. _Anaconda: https://www.continuum.io/downloads .. _example: Running an example ============================= Parameters for each simulation are contained in separate files in the inputs directory. For example, to run the simulation described by :file:`inputs/ball.py`, run the following in the terminal:: python MPM.py ball By default, the output files should be contained in :file:`~/Documents/poly-mpm`. Loading example data ============================= This is a fairly convoluted process, but is kind of summarised here: .. graphviz:: digraph foo { "input file" -> "inititalise" -> "params.Params instance"; } Any data which is not provided in the input file will be created with a default value in :file:`initialise.py`. This complete data is then passed into the params.Params instance, which is used for the rest of the simulation.