Skip to content

jiwanglwd/DLCA-WendongLI

Repository files navigation

DLCA

A C++ implementation of the diffusion-limited cluster-cluster aggregation (DLCA), an algorithm to generate aerogel structures.

Usage

  1. Parameters

    • [D] Dimension of the grid.

    • [L] Size of the grid. E.g. L x L for D = 2.

    • [N] Number of particles in the grid.

    • [F] The output file name, without .txt suffix. E.g. output/D2.L10.N10.

    • [P] The period for snapshots.

    • [I] The number of iterations.

    • [M] The marker size of plots.

    • [ELEV] The elevation angle.

    • [AZIM] The azimuthal angle.

  2. Single run

    • Windows

      • 32-bit

        exe\win32\DLCA.exe [D] [L] [N] [F]
        
      • 64-bit

        exe\win64\DLCA.exe [D] [L] [N] [F]
        
    • Linux

      # C++11 support required
      make
      
      bin/dlca [D] [L] [N] [F]
      
  3. 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]
      
  4. Creating GIF (ImageMagick required)

    • Windows

      create_demo.bat [D] [L] [N] [P] [M]
      
    • Linux

      create_demo.sh [D] [L] [N] [P] [M]
      

GIF demo

Benchmark

Related info

License

This software is licensed under the GNU General Public License.

About

Diffusion-limited cluster-cluster aggregation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors