In order to use this repo as a python package, you need to add /struct_opt_benchmarks in $PYTHONPATH
The work flow using this repo to solve topology optimization problems will be:
-
Use
preprocessors/preproc.pyto generate a .pkl file that contains the description of entire problem, including geometry, mesh, load and boundary condition. Runpreproc.py --helpto see all options. Note that tmr needs to be installed in order to generate unstructured mesh. Please refer to tmr document for more information: https://smdogroup.github.io/tmr/. -
Execute
optproblems/optimize.pywith the problem pkl file to run optimizations. Runoptimize.py --helpto see all options, including all supported optimization problems, optimizer settings, etc. -
Use utility functions in
utils/to postprocess results.