topopt-hw

Problem 5: Mechanism synthesis

The goal of this problem is to achieve the following optimized structure: when a specified force is applied at a designated location, a specified displacement occurs at another designated location. This problem helps us design components that undergo the expected deformation under the anticipated loading conditions.

\[\hat{\Phi} = \Phi + \lambda^T(KU - F)\]

\(\hat{\Phi}\) and \(\Phi\) are numerically the same because \(KU-F=0\). Taking the derivative of \(\hat{\Phi}\) we get

\[\hat{\Phi}' = \frac{\partial \Phi}{\partial U} U' + \lambda^T (K'U + K U')\]

If we can take \(\lambda\) such that

\[\lambda^T K + \frac{\partial \Phi}{\partial U} = 0\Longleftrightarrow K^T \lambda = - \left(\frac{\partial \Phi}{\partial U}\right)^T\]

Then

\[\Phi'=\hat{\Phi}' = \lambda^T K'U.\]

The above process is reflected in the code as

L(dout)=1;
Lambda(freedofs) = -K(freedofs,freedofs)\L(freedofs);
ce = reshape(sum((Lambda(edofMat)*KE).*U(edofMat),2),nely,nelx);
dc = penal*(E0-Emin)*xPhys.^(penal-1).*ce;

Results and Analysis

Figure 1: Using Density Filtering
Figure 2: Using Heaviside Projection

It can be observed that the optimization results generated by the two methods have similar structures, especially with joint-like structures appearing in the same locations. It can be imagined that these positions would be parts in the actual manufactured device where the direction of force is altered during the process of force transmission.

We implemented the Heaviside projection using the top110 code from the official website. After applying the Heaviside projection, we obtained the expected binary images of 0s and 1s, effectively eliminating grayscale. It is notable that post Heaviside projection, we achieved a lower objective function value of -4.8295 compared to -3.9642 with Density Filtering. Additionally, we observed abrupt increases in the objective function at certain locations after employing the Heaviside projection. This adjustment in the parameter \beta, doubling it periodically during the iterations, accelerates the convergence towards the binary images. I must acknowledge that the code is not yet robust enough; when using Heaviside projection with larger nelx and nely values, the optimization results are not as intended. I plan to meticulously analyze the Heaviside projection algorithm to determine necessary adjustments for improved outcomes.