Options
Source Code for 3D Cellular Automata of Polymer Gel Response to Solvent Change
Citation Link: https://doi.org/10.15480/882.16813
Type
Source Code
Version
1.0.0
Date Issued
2026-06-10
Language
English
TORE-DOI
Abstract
This dataset contains Python source code for three dimensional cellular automata simulations of polymer gel response to solvent change. The code includes the main simulation script, post processing scripts, visualization scripts, and analysis scripts for polymer trajectories, radius of gyration, relaxation behavior, PNG images, and MP4 animations.
The main simulation is performed with 1_simulation.py. Required Python packages are listed in requirements.txt. The repository also includes README.md with installation instructions, example commands, software requirements, output file descriptions, and reproducibility notes.
The source code is released under the MIT License.
The main simulation is performed with 1_simulation.py. Required Python packages are listed in requirements.txt. The repository also includes README.md with installation instructions, example commands, software requirements, output file descriptions, and reproducibility notes.
The source code is released under the MIT License.
Subjects
polymer gel
cellular automata
solvent response
lattice model
Monte Carlo simulation
DDC Class
530: Physics
More Funding Information
This project is funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) – SFB 1615 – 503850735.
License
Technical information
The code was tested with Python 3.12.3.
Required Python packages are listed in requirements.txt and can be installed with:
python -m pip install -r requirements.txt
The tested package versions are:
matplotlib==3.10.7
networkx==3.5
numba==0.62.1
numpy==2.3.4
psutil==7.1.3
pyvista==0.46.4
scipy==1.16.3
The main simulation can be started with:
python 1_simulation.py --L 20 --W 30 --Epp -2.0 --Ewp -0.75 --steps 100000 --interval 1000
The scripts can be executed directly from the command line and do not require SLURM.
Required Python packages are listed in requirements.txt and can be installed with:
python -m pip install -r requirements.txt
The tested package versions are:
matplotlib==3.10.7
networkx==3.5
numba==0.62.1
numpy==2.3.4
psutil==7.1.3
pyvista==0.46.4
scipy==1.16.3
The main simulation can be started with:
python 1_simulation.py --L 20 --W 30 --Epp -2.0 --Ewp -0.75 --steps 100000 --interval 1000
The scripts can be executed directly from the command line and do not require SLURM.
No Thumbnail Available
Name
requirements.txt
Size
104 B
Format
Text
No Thumbnail Available
Name
LICENSE.txt
Size
1.06 KB
Format
Text
No Thumbnail Available
Name
README.md
Size
8.51 KB
Format
Markdown
No Thumbnail Available
Name
1_simulation.py
Size
9.79 KB
Format
Python
No Thumbnail Available
Name
2_time.py
Size
2.02 KB
Format
Python
No Thumbnail Available
Name
3_png_polymer_1proc.py
Size
8.88 KB
Format
Python
No Thumbnail Available
Name
3_png_polymer_1proc_PBC.py
Size
11.12 KB
Format
Python
No Thumbnail Available
Name
5_video_polymer_1proc.py
Size
9.31 KB
Format
Python
No Thumbnail Available
Name
5_video_polymer_1proc_PBC.py
Size
11.78 KB
Format
Python
No Thumbnail Available
Name
6_Rg_vs_frame.py
Size
6.23 KB
Format
Python