pyCAP is a Python package for performing simulations of chiral active Brownian particles with alignment and excluded volume interactions in 2D bulk or under circular confinement.
Before using this package, ensure you have the following dependencies installed:
-
Python 3: The code is written in Python, so you need to have Python 3 installed on your system.
-
NumPy: NumPy is used for numerical computations and data structures, making it essential for this package.
-
Cython: Cython is required for compiling the Cython code in this package.
-
pickle: The
picklemodule is used for serialization and deserialization of Python objects.
pip install numpy
pip install cython
pip install pickleTo get started with the package, create a Simulation instance, initialize the simulation, and run it with your desired parameters. You can find more detailed usage information in the package documentation.
# require simulation.pyx, sim_conf.pyx, setup.py, main.py, parameter.py, parameter.txt
# compile to cython:
>>> python setup.py build_ext --inplace
# run simulation:
>>> python main.py -p parameter.txtThis package comes with comprehensive documentation within the code. It provides explanations of class parameters, methods and usage examples.
This project is distributed under the MIT License, which means you are free to use, modify, and distribute it according to the terms of the license.
The following works used code in this repository:
- Collective Hall current in chiral active fluids: Coupling of phase and mass transport through traveling bands
Authors: F. Siebers, R. Bebon, A. Jayaram, T. Speck - Exploiting compositional disorder in collectives of light-driven circle walkers
Authors: F. Siebers, A. Jayaram, P. Blümler, T. Speck
- Frank Siebers