Skip to content
William Wang edited this page Sep 18, 2024 · 7 revisions

Welcome to the CORN wiki!

Here you will find a thorough description of the code -- from the design decisions to the math.

Introduction/Context

This code is used to study/simulate rigidity percolation in 2D (though can be extended to 3D) fiber networks.

  1. CORN generates lattices consisting of nodes and bonds between nodes. Each lattice has periodic boundary conditions in each direction (given a valid length and height)
  2. Bonds are diluted based on specific rules (and total bond occupation $p$).
  3. A strain is applied to the lattice.
  4. The energy/stress of the network is minimized and the elastic modulus is found.
  5. Results are saved, and bond(s) are removed

diluted

Code Modules

CORN is divided into several separate modules which each have their own functionality (we try to keep most code mostly independent of each other)

  • energyminimization/: Provides energy functions/functionals for lattice objects along with code to minimize the energy
  • lattice/: Module for generating lattice objects
  • outputs/: All simulation results are saved here (note: this is a required folder, make it if it does not exist)
  • results-handling/: Takes care of saving results (i.e., saving results to a CSV)
  • tests/: Useful sandbox for ensuring correctness of code
  • visualization/: Module for generating images of lattices
Clone this wiki locally