A C++ implementation of the diffusion-limited cluster-cluster aggregation (DLCA), an algorithm to generate aerogel structures.
-
Simulation Parameters
-
[D]Dimension of the grid. -
[L]Size of the grid. E.g.LxLforD= 2. -
[N]Number of particles in the grid. -
[F]The output file name (without file extension) saved to the filepath "L[L]_phi[volume fraction of spheres to 3 decimals]/[F].csv" -
[*C]The simulation style, either 0 (cluster based) or 1 (counter based) -
[*S]The number of snapshots in a cluster-based style simulation
-
-
Single run
-
Linux
# C++11 support required cd /path/to/clone module load cmake/3.18.1 makecd /path/to/clone bin/dlca [D] [L] [N] [F] [*C] [*S] -
results are saved to a LOG file and a CSV files
-
the CSV file contains: iteration number, cluster number, particle label, cluster label, cluster coordinates (x,y,z)
-
-
Visualization Parameters
-
[P]The period for snapshots -
[I]The number of iterations. -
[M]The marker size of plots. -
[ELEV]The elevation angle. -
[AZIM]The azimuthal angle.
-
-
Plotting single run (Python, NumPy, and matplotlib required)
-
2D
python plot_2d.py [L] [INPUT] [OUTPUT] [M] -
3D
python plot_3d.py [L] [INPUT] [OUTPUT] [M] [ELEV] [AZIM]
-
-
Creating GIF (ImageMagick required)
-
Windows
create_demo.bat [D] [L] [N] [P] [M] -
Linux
create_demo.sh [D] [L] [N] [P] [M]
-
This software is licensed under the GNU General Public License.


