-
Notifications
You must be signed in to change notification settings - Fork 0
Home
William Wang edited this page Sep 18, 2024
·
7 revisions
Here you will find a thorough description of the code -- from the design decisions to the math.
This code is used to study/simulate rigidity percolation in 2D (though can be extended to 3D) fiber networks.
- 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)
- Bonds are diluted based on specific rules (and total bond occupation
$p$ ). - A strain is applied to the lattice.
- The energy/stress of the network is minimized and the elastic modulus is found.
- Results are saved, and bond(s) are removed
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