DfAM Practitioner Program › Labs › Lab 8
Lab 8 of 11 · Module 6 · about 1.5 hours · MATLAB or Python
Topology Optimisation by Hand and by Code
Aim and Preparation
Aim: derive the compliance sensitivity, see the effect of penalisation on a small problem, and run and modify a topology optimisation code.
Draws on: Lesson 29 (formulations), Lesson 30 (numerical implementation) and Lesson 31 (AM constraints).
Tools: Python with NumPy and SciPy (starter code T8_topopt.py) or the 88-line MATLAB code.
Produce: the derivation, the two-bar results, a table of compliance against filter radius, and the printability check for two build directions.
Starter code: T8_topopt.py (Python).
Belongs to Module 6: Topology optimisation and generative design.
Problems
Problem 1: Starting from c = Uᵀ K U and K U = F with a load that does not depend on the design, derive ∂c/∂ρₑ for the SIMP interpolation.
Problem 2: Two parallel bars carry F = 500 N; each has stiffness ρᵖ k₀ with k₀ = 1 × 10⁶ N/m and ρ₁ + ρ₂ = 1. Find the compliance for (0.7, 0.3) and for (1, 0) with p = 3, and for any distribution with p = 1.
Problem 3 (code): Run T8_topopt.py for the half MBB beam (60 × 20 elements, volume fraction 0.5, p = 3, density filter). Tabulate the final compliance and iteration count for filter radii of 1.5, 3 and 6 elements. Repeat for radius 1.5 with the sensitivity filter and for a volume fraction of 0.4.
Problem 4 (code): Apply am_filter() to the thresholded result for both build directions and report the percentage of unsupported solid elements. Which direction would you build in?
Checking Your Work
Compare your results with the worked examples in the lessons this lab draws on.