Skip to content

Latest commit

 

History

History

stoch_sims

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Generate stochastic simulations of Lotka-Volterra system

Contents

  • calculate_moments.cpp - calculate higher order nearest neighbor (NN) and next-nearest neighbor (NNN) moments.
  • create_data_dirs.py - create data directories.
  • main.cpp - main script for running stochastic simulations.
  • mathematica - Mathematica scripts
    • figures - generate the figures used in the paper. These appear into to the figures directory.
    • viz_lattice - misc. code for visualizing the lattice.

Running the simulations

Use the CMake in a dedicated build directory:

mkdir build && cd build
cmake ..
make main
cd ../bin
./main

The output is in the data directories.

Calculating extra moments

To calculate extra moments such as NNs and NNNs, use the CMake in a dedicated build directory:

mkdir build && cd build
cmake ..
make calculate_moments
cd ../bin
./calculate_moments