This is a numerical implementation of a mathematical model that represents the motion of the unicellular eukaryotic organism Chlamydomonas Reinhardtii. All the parameters of the model and the simulation can be found (and modified) in the folder "parameters". Slides briefly showing the model and the results of the simulation can be found here
Tested on linux ubuntu.
The first step is to obtain the necessary libraries: This is the official location of the Kaldi project.
- obtain GNU scientific library for generating random numbers:
- on ubuntu you can maybe try:
apt-get install libgsl0ldbl
orapt-get install libgsl0-dev
orapt-get install gsl-bin libgsl0-dev
- you can also download the source code from ftp://ftp.gnu.org/gnu/gsl/ ("gsl-latest.tar.gz") and compile it following the instruction in "INSTALL"
- on ubuntu you can maybe try:
- obtain SDL2 libraries for the visualization:
- graphics:
apt-get install libsdl2-dev
(maybe onlyapt-get install libsdl2-2
) - fonts:
apt-get install libsdl2-image-dev
andapt-get install libsdl-ttf2-dev
(maybe onlyapt-get install libsdl2-image
andapt-get install libsdl-ttf2
)
- graphics:
- Meson for building the project:
pip3 install meson
Build the project:
meson build
and run with:
./initializer.py
- install Valgrind:
apt-get install valgrind
- install kcachegrind:
apt-get install kcachegrind
- memory leaks check:
valgrind --leak-check=yes build/swimmers-brownian-simulation <input file>
- profiling:
⋅⋅*
valgrind --tool=callgrind build/swimmers-brownian-simulation <input file>
⋅⋅*callgrind_annotate callgrind.out.<pid>