WLC-BD is a Python implementation of the Brownian Dynamics Simulation for the Worm-Like Chain (WLC) model.
This script performs a simulation of the Worm-Like Chain (WLC) model for a magnetic bead system. It calculates the force-extension relation and simulates traces for different forces using the Milstein solver. The simulation parameters and global constants are defined at the beginning of the script. The simulation results are saved in a pickle file named tracesimulations.pickle
.
This script requires the autograd, scipy, and multiprocessing libraries to be installed.
The model assumes the worm-like chain is attached to a hard wall located at
- Simulates the Brownian motion of the microsphere using Milstein method.
- Automatically choses the time step to be 2 orders of magnitude smaller than the charactristic time of the motion
Modify the "Global Parameters for the simulation" given at the beginning of WLC_BD_simulation.py
and to run a simulation, use the following command:
python WLC_BD_simulation.py
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or suggestions, please open an issue or contact the repository owner.