Expand description
About
This package performs 2-dimensional topology optimization and is a port of “A 99 line topology optimization code written in Matlab”.
Usage
Usage follows exactly the same format as the original topology optimization code:
let nelx = 30;
let nely = 10;
let volfrac = 0.5;
let penalty = 3.0;
let rmin = 1.5;
let x = topopt::top(nelx, nely, volfrac, penalty, rmin);Functions
The topology optimization function. It takes inputs for the number of elements in the x
direction (nelx), the number of elements in the y direction (nely), the volume fraction
of material to be optimized (volfrac), the penalty weighting (penalty), and filter
radius (rmin).