topop_numpy

compas.numerical.topop_numpy(nelx, nely, loads, supports, volfrac=0.5, penal=3, rmin=1.5, callback=None)[source]

Topology optimisation in 2D using NumPy and SciPy.

Parameters
  • nelx (int) – Number of elements in x.

  • nely (int) – Number of elements in y.

  • loads (dict) – {‘i-j’: [Px, Py]}.

  • supports (dict) – {‘i-j’: [Bx, By]} 1=fixed, 0=free.

  • volfrac (float) – Volume fraction.

  • penal (float) – Penalisation power.

  • rmin (float) – Filter radius.

Returns

array – Density array.

Notes

  • Based on the MATLAB code of [andreassen2011].

Examples

>>>