An implementation of a biological aging model in Fortran 2008 as first introduced by T.J.P. Penna [1, 2]. This program follows the original model with some important changes.
In the original description [1], the Verhulst factor is constant with the age of the individuals. In other variants, the Verhulst factor is disabled for newborn individuals and active throughout their lives. Here, we let the Verhulst factor freely vary with the age of the individuals.
where
We note the unity term in
Now looking at
Varying the Verhulst factor can be useful in, say, modelling survivability. By letting
Go to Top.
- Python <=3.11
- A Fortran 2008 compliant compiler
- e.g.
Intel Fortran Compiler 2024.2.0
andGFortran 13
- e.g.
This project requires the Python library FoBiS.py
to build the Fortran code.
Currently, FoBiS.py
can be installed using pip
:
pip install FoBiS.py
To my knowledge, it is also available on Anaconda but only the older versions. Alternatively you can install FoBiS.py
manually. Refer to the Wiki page of this project.
Once you have downloaded or cloned the project, run the build script build.py
in the project directory.
It has several options to build the project but for most cases, you might want to do a release build. That is to say, run the follow commands:
cd asexual-penna-model # Go to the project directory
python build.py --type release --clean
The output executable penna.out
can be found in bin/
in the project directory.
For information about the other build types, run the script with the --help
option.
python build.py --help
The build script assumes that you use gfortran
. Due to limited time (and money), I was not able to implement options for other compilers. So if you use other Fortran compilers such as ifx
, you will have to edit the build script.
Go to Top.
Running the executable in the bin/
directory runs the Penna model program with the default parameters indicated in bin/model.cfg
.
For more information, run the Penna model program with the --help
option.
bin/penna.out --help
WIP
Go to Top.
- Thadeu Penna. "A Bit-String Model for Biological Aging". In: Journal of Statistical Physics 78 (Mar. 1995). DOI: 10.1007/BF02180147.
- S. Oliveira. "Evolution, ageing and speciation: Monte Carlo simulations of biological systems", In: Brazilian Journal of Physics 34.3B (2004), pp. 1066-1076.