English

PyTOPress: Python code for topology optimization with design-dependent pressure loads

Computational Engineering, Finance, and Science 2025-02-04 v2

Abstract

Python is a low-cost and open-source substitute for the MATLAB programming language. This paper presents ``\texttt{PyTOPress}", a compact Python code meant for pedagogical purposes for topology optimization for structures subjected to design-dependent fluidic pressure loads. \texttt{PyTOPress}, based on the ``\texttt{TOPress}" MATLAB code \cite{kumar2023topress}, is built using the \texttt{NumPy} and \texttt{SciPy} libraries. The applied pressure load is modeled using the Darcy law with the conceptualized drainage term. From the obtained pressure field, the constant nodal loads are found. The employed method makes it easier to compute the load sensitivity using the adjoint-variable method at a low cost. The topology optimization problems are solved herein by minimizing the compliance of the structure with a constraint on material volume. The method of moving asymptotes is employed to update the design variables. The effectiveness and success of \texttt{PyTOPress} code are demonstrated by optimizing a few design-dependent pressure loadbearing problems. The code is freely available at https://github.com/PrabhatIn/PyTOPress.

Keywords

Cite

@article{arxiv.2410.22131,
  title  = {PyTOPress: Python code for topology optimization with design-dependent pressure loads},
  author = {Shivajay Saxena and Swagatam Islam Sarkar and Prabhat Kumar},
  journal= {arXiv preprint arXiv:2410.22131},
  year   = {2025}
}

Comments

iNCMDAO 2024

R2 v1 2026-06-28T19:39:46.907Z