Skip to main content
Log in

A high-level programming language implementation of topology optimization applied to the acoustic-structure interaction problem

  • Educational Paper
  • Published:
Structural and Multidisciplinary Optimization Aims and scope Submit manuscript

Abstract

An effective and straightforward method to implement topology optimization using high-level programming is presented. The method uses the LiveLink for MATLAB, which couples the commercial COMSOL Multiphysics software with MATLAB programming environment via COMSOL Application Programming Interface (API). The integrated environment allows one to implement advanced and customized functions and methods from scratch easily. Topology optimization of an acoustic-structure interaction problem with a mixed displacement–pressure (u/p) formulation is employed to demonstrate the effectiveness of the presented implementation method to design multiphysics problems systematically. The governing equations of the system are derived in a weak form, which is inserted directly in equation-based modeling in COMSOL Multiphysics via MATLAB programming environment. The tight integration of MATLAB and COMSOL Multiphysics allows one to easily pass the matrices and derivatives to perform design sensitivity analysis. A comprehensive code to perform the optimization of the acoustic-structure interaction problem is provided in Appendix. The well-structured code can be used as a platform for educational and research purposes, and it can be extended to other topology optimization applications involving various types of physical problems that use the equation-based modeling functionality of COMSOL.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8

References

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Junghwan Kook.

Ethics declarations

Conflict of interest

On behalf of all authors, the corresponding author states that there is no conflict of interest.

Replication of results

The code for carrying out the optimization using the LiveLink for MATLAB is provided in Appendix. MATLAB code (gensub) for the MMA algorithm, the optimizer for the topology optimization problem, is obtained from (Andreasen et al. 2020), which can be downloaded from www.topopt.dtu.dk. It is necessary to launch MATLAB using “COMSOL Multiphysics 5.x with MATLAB” to run a COMSOL Multiphysics model in the MATLAB environment.

Additional information

Responsible Editor: Gengdong Cheng

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supplementary Information

Below is the link to the electronic supplementary material.

Supplementary file1 (PDF 121 KB)

Supplementary file2 (m 11 KB)

Appendix

Appendix

figure a
figure b
figure c
figure d

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Kook, J., Chang, J.H. A high-level programming language implementation of topology optimization applied to the acoustic-structure interaction problem. Struct Multidisc Optim 64, 4387–4408 (2021). https://doi.org/10.1007/s00158-021-03052-5

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00158-021-03052-5

Keywords

Navigation