Manuscript Offprint
arXiv:2611.12027An open source Python code for three-dimensional topology optimization in single precision on a consumer GPU
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Three-dimensional topology optimization solves linear systems with millions of unknowns at every design iteration. Consumer graphics cards run far faster in single than in double precision, and open codes for them mostly address minimum compliance. This educational article presents TOF3D, an open source Python code for density-based topology optimization in single precision on one consumer GPU. It solves four classes of problems: stress constrained minimum compliance, robust minimum compliance against manufacturing errors, compliant mechanisms and bone-like porous infill. The stiffness operator is applied without assembly, and the conjugate gradient method is preconditioned by geometric multigrid. Rounding the element matrix to single precision gave rigid body motions a spurious energy and changed compliances by up to 5.4%. Forming the element products from differences of nodal displacements reduced this error to at no cost in time. Adjoint sensitivities agreed with finite differences to within , and the solutions agreed with Ansys Mechanical APDL to within with the same element. On an RTX 3060 with 12 GB, one design iteration of a cantilever took 0.46 s with 0.5 million elements and 15 s with 33.5 million. On the same card and problem, an open GPU code that applies its operator in double precision took 3.7 and 21 s with 0.5 and 4.2 million elements and ran out of memory on larger meshes. Eight cases fixed in a protocol before the runs took 9 to 35 minutes each with 4.2 to 5.2 million elements.
Keywords: topology optimization, graphics processing units, stress constraints, robust formulation, compliant mechanisms, porous infill
1 Introduction
Topology optimization distributes material in a design domain to meet a structural goal under given loads and supports (Bendsøe and Sigmund 2003). Besides stiffness, parts in service must keep the stress below a limit and tolerate the erosion and dilation that manufacturing causes. Compliant mechanisms must also deliver a prescribed motion, and parts built by additive manufacturing may
carry a porous infill. Density-based formulations exist for each of these requirements. The relaxed von Mises stress aggregated by a -norm handles the stress limit (Bruggi 2008; Le et al. 2010; Holmberg et al. 2013), and the robust formulation optimizes the eroded, intermediate and dilated designs together (Sigmund 2009; Wang et al. 2011). For compliant mechanisms the objective is an output displacement (Sigmund 1997), and for infill, local volume constraints produce a bone-like structure (Wu et al. 2018). In three dimensions, however, each design iteration solves one or more linear systems with millions of unknowns, and the cost of these solutions limits the resolution at which the formulations are studied.
Educational codes made topology optimization accessible. The 99-line Matlab code of Ferrari and Sigmund (2020) solves two-dimensional minimum compliance problems in seconds, and its 125-line version extends them to three dimensions. Open source implementations followed, built on general finite element libraries or on sparse solvers, some with an optional GPU solver (Ferro and Pavanello 2023; Kim and Kang 2025). For large meshes, a PETSc framework for computer clusters produced giga-voxel designs (Aage et al. 2017); at the other end, interactive apps brought two- and three-dimensional optimization to handheld devices at coarse resolution (Aage et al. 2013; Nobel-Jørgensen et al. 2015). Wang et al. (2025) combined a matrix-free operator with an adapted multigrid preconditioner in Matlab and reached 128 million elements on a desktop computer with 64 GB of memory, for minimum compliance and porous infill.
Graphics processing units (GPUs) offer another route to large meshes. Several GPU codes applied the stiffness matrix element by element or without assembling it (Schmidt and Schulz 2011; Martínez-Frutos and Herrero-Pérez 2015; Ratnakar et al. 2022), and Wu et al. (2016) combined a matrix-free operator with a geometric multigrid preconditioner to reach high resolution on one GPU. Clusters of GPUs extended these codes to larger meshes and to robust optimization (Martínez-Frutos and Herrero-Pérez 2016; Herrero-Pérez and Martínez Castejón 2021). Träff et al. (2023) released open codes in Futhark and OpenMP and optimized a cantilever with 65.5 million elements over 100 design iterations in about two hours on one A100 GPU. Zhao et al. (2024) wrote a multigrid code in Taichi for fiber-reinforced composites with 33.6 million elements, and Zhang et al. (2023) released a GPU solver for inverse homogenization. On a consumer card, Jia et al. (2026) imposed length scale and local volume constraints with 151 million degrees of freedom. Most of these works optimize stiffness.
Stress, robustness against manufacturing errors and mechanisms appear in fewer GPU works.
Martínez-Frutos and Herrero-Pérez (2016) treated robustness as a probabilistic problem with random loads and material properties, not as the erosion and dilation of the design. Dugast and To (2023) optimized support structures for metal additive manufacturing with the stress as objective on an A100 GPU, and verified their mechanical model against Ansys. Most GPU codes also assume data center cards with large memory and fast double precision, whereas consumer cards offer less memory and favor single precision (Träff et al. 2023). Finite element solvers on such hardware have kept their accuracy by mixed precision iterative refinement, which computes the residual in double precision (Göddeke et al. 2007). To the knowledge of the authors, no open code combines stress constraints, robustness, compliant mechanisms and porous infill in three dimensions on a consumer GPU, with its responses cross-checked against a commercial finite element code.
Thus, this work aims to provide TOF3D, an open source Python code developed by the authors for density-based topology optimization in three dimensions, in single precision, on one consumer GPU. The code solves four classes of problems: (i) minimum compliance under a stress constraint, (ii) robust minimum compliance against manufacturing errors, (iii) compliant mechanisms in standard and robust form, and (iv) bone-like porous infill. The work makes four contributions. The first is a single code, under the MIT license, that runs the four classes on a 12 GB card. The second is the verification: adjoint gradients checked against finite differences, and optimized designs cross-checked against Ansys Mechanical APDL. The third is the time and memory of each class on meshes with millions of elements, measured also against an open GPU code on the same card. These numbers serve as a reference for other GPU codes and for learned surrogates, neural networks trained to predict optimized designs (Sigmund 2022; Woldseth et al. 2022). The fourth concerns the single precision that consumer cards favor. Rounding the element stiffness matrix to single precision gives rigid body motions a spurious energy, and on meshes with millions of elements this changed compliances by up to 5.4%. Computing the element products from differences of nodal displacements reduces this error to at no cost in time and keeps the operator and all vectors in single precision.
Algorithm 1 One design iteration of TOF3D
1: Filter by FFT, Eq. (6), and project it for each design, Eq. (7) 2: Set by Eq. (1) and rebuild the coarse operators, Eq. (5) 3: for each load case do 4: Solve Eq. (2) by MGCG from the previous , with the operator of Eq. (4) 5: end for 6: Evaluate the objective and constraints of Eq. (8); solve the adjoint systems by MGCG 7: Form the sensitivities, Eq. (12), and carry them back through the projection and the filter 8: Update by the MMA, with its dual subproblem solved on the GPU 9: Double at fixed iterations; robust problems refresh the volume bound of the dilated design every 20 iterations
2.1 Computing environment
All optimizations ran on one NVIDIA GeForce RTX 3060 with 12 GB of memory (driver 595.91). The host was a desktop computer with an Intel Core i5-13500, 31 GiB of memory and Ubuntu 24.04, running Python 3.12, Taichi 1.7.4 (CUDA backend), NumPy 2.3 and SciPy 1.16. The commercial cross-check used Ansys Mechanical APDL (MAPDL) 2025 R1 (Ansys, Inc. 2025) on a second computer with an Intel Core i9-13900K, 128 GB of memory and Windows 11, with four cores per run.
Large language model assistants, including task-specific agents (Claude Code, Anthropic), were used to write and review software, test and analysis scripts, to run the verification and timing studies, and to draft and restructure the text. No reported quantity originates from a language model. Every value comes from the cited software and an archived record. The authors reviewed the code, records, analyses and text and are responsible for the interpretation and all claims.
2.2 Finite element model and linear solver
The design domain is a regular grid of eight-node hexahedra of unit size with full integration and Poisson ratio . The Young's modulus of element follows the solid isotropic material with penalization (SIMP) interpolation with a small minimum modulus (Bendsøe and Sigmund 1999)
with , and the physical density of Sect. 2.3. The stiffness matrix of the equilibrium system
is never assembled. Each GPU thread is assigned one node and gathers
from its eight neighboring elements, where is the block that couples nodes and in the element stiffness matrix for unit modulus. This matrix-free scheme follows Wu et al. (2016) and Träff et al. (2023). Supports fix degrees of freedom, springs add to the diagonal, and elements outside the domain, such as a cutout, carry . Vectors and are stored in single precision, and inner products are accumulated in double precision.
Rounding to single precision breaks one property of the element matrix. In exact arithmetic the blocks of each row of sum to zero, , so a rigid translation of an element produces no
Table 1 Components of TOF3D: formulation followed, module written by the authors, and check. : element stiffness matrix for unit modulus; PCG: preconditioned conjugate gradient method. Third-party software: Taichi 1.7.4 for the GPU kernels; NumPy 2.3 and SciPy 1.16 for input, output and the coarsest multigrid level
| Component | Formulation | Module | Check |
|---|---|---|---|
| Eight-node hexahedron and matrix-free operator, Eqs. (1)–(4) | Trilinear element; Wu et al. (2016) | tof3d_core | Symmetry and rigid modes of within ; single against double precision (Sect. 3.1) |
| Density filter and projection, Eqs. (6)–(7) | Bourdin (2001); Wang et al. (2011) | tof3d_filters, tof3d_core | FFT against direct convolution, |
| Problems and adjoint sensitivities, Eqs. (8)–(12) | Sigmund (1997); Bruggi (2008); Le et al. (2010); Wu et al. (2018) | tof3d_core | Central finite differences (Sect. 3.1) |
| Geometric multigrid preconditioner, Eq. (5) | Amir et al. (2014); Träff et al. (2023) | tof3d_mg | Galerkin product ; MGCG against block Jacobi PCG |
| MMA with the dual subproblem on the GPU | Svanberg (1987); Aage and Lazarov (2013) | tof3d_mma, tof3d_mma_gpu | Primal-dual interior point solver and SciPy, |
| Example problems | This work | tof3d_examples | Protocol of Sect. 2.6 |
nodal force. After rounding to single precision the row sums reach about , and rigid motions acquire a spurious stiffness. On a uniform design the resulting error in compliance rose from on elements to on , about between these two meshes with elements per side, because displacements grow with the mesh while element strains do not. TOF3D therefore evaluates Eq. (3) in the difference form
which equals Eq. (3) in exact arithmetic and vanishes for rigid translations whatever the rounding. The multigrid smoother uses the same form, and the sensitivities and element stresses use displacements relative to one node of the element. Unlike mixed precision refinement (Göddeke et al. 2007), Eq. (4) keeps the operator and all vectors in single precision. The identity is elementary, and lattice Boltzmann codes use a similar step, storing each particle distribution relative to its lattice weight to limit round-off (Lehmann et al. 2022). The authors found no earlier description of this form for matrix-free finite element operators in single precision. The present work reports its measured effect (Sect. 3.1).
The preconditioner of MGCG is one geometric multigrid V-cycle, following Amir et al. (2014) and Träff et al. (2023). Each coarse level halves the elements in every direction. Its operator is the Galerkin product
with trilinear prolongation , built exactly by applying the finer operator to 81 probe vectors, three displacement components for each of 27 groups of coarse nodes whose stencils do not overlap. It is stored as a 27-point stencil of blocks. Two sweeps of damped nodal block Jacobi smoothing () precede and follow the coarse correction. The coarsest level, with at most 4500 degrees of freedom, is solved by a dense Cholesky factorization on the CPU. Near removed regions, the coarse operators come from an auxiliary operator in which the removed elements keep the modulus , so that the domain boundary cuts no coarse cell. The conjugate gradient method still solves the true system. This change cut the iterations per solution of the L-bracket example on elements (Sect. 2.6) from 214 to 26. Each solution starts from the previous one of the same load case and stops at a relative residual of ; if MGCG has not converged after 500 iterations, the conjugate gradient method with a block
Jacobi preconditioner (block Jacobi PCG) finishes the solution.
2.3 Filter, projection and optimizer
A cone density filter of radius (Bourdin 2001),
with the sums over the elements of the domain, is evaluated by fast Fourier transforms. It is followed by the smoothed Heaviside projection (Wang et al. 2011)
with threshold and steepness . The robust formulation uses three projections: eroded, intermediate and dilated designs with thresholds . The steepness doubles at fixed design iterations (Table 2), and the moving asymptotes of the MMA return to their initial positions at each doubling.
The design is updated by the MMA (Svanberg 1987), rewritten by the authors from the original equations. The subproblem is solved through its dual in the constraint multipliers, with a Newton method whose elementwise evaluations run on the GPU, as in the parallel MMA of Aage and Lazarov (2013). The approximations of the MMA carry a regularization term, divided by the range of the design variables (Svanberg 2007), that keeps them strictly convex where a sensitivity vanishes. The force inverter problems use the min-max form (Svanberg 2007), which minimizes an auxiliary variable that bounds the objective functions from above. When a design loses its load path between input and output, the barrier term of the min-max form dominates the dual Hessian and the remaining terms are lost to round-off. The Hessian is then singular, and the Newton step is the minimum norm least squares step; when the Hessian is regular, the update is unchanged.
2.4 Four problems
All four problems take the form
with the objective and the constraints of Table 3. All minimize the compliance , except the force inverter, which minimizes the output displacement , with the vector that averages the displacement in the output direction over the output region, of a mechanism with input and output springs that represent the actuator and the workpiece (Sigmund 1997). The stress constraint bounds the -norm
of the relaxed von Mises stress, with the stress limit , , and the adaptive normalization of Le et al. (2010): the constraint is , where is the mean of its previous value and ; the relaxation follows Bruggi (2008). Elements within three element sizes of loads and supports are excluded from the stress measure. The robust problems minimize the worst of the eroded, intermediate and dilated designs,
and constrain the volume of the dilated design. Its bound is refreshed every 20 design iterations so that the intermediate design meets (Wang et al. 2011). The infill problem bounds the -mean of the local volume fractions (Wu et al. 2018),
with the bound , and the elements within a ball of radius around element . The sensitivities follow from the adjoint method. For a function ,
Table 2 Cases of the protocol on the coarse mesh. : filter radius in elements; : final steepness, doubled every 50 design iterations (60 for the two infill cases); move: MMA move limit
| Case | Domain | Problem | Move | ||
|---|---|---|---|---|---|
| L-bracket, compliance | , cutout | 2.5 | 8 | 0.1 | |
| L-bracket, stress | same | of the compliance design | 2.5 | 8 | 0.1 |
| Cantilever, single | 3.0 | 32 | 0.2 | ||
| Cantilever, robust | same | 3.0 | 32 | 0.2 | |
| Inverter, single | half domain | 2.5 | 32 | 0.1 | |
| Inverter, robust | same | 2.5 | 32 | 0.1 | |
| Cantilever, infill | 1.5 | 16 | 0.2 | ||
| Cantilever, no infill | same | 1.5 | 16 | 0.2 |
Table 3 The four problems. , , : eroded, intermediate and dilated designs; : volume fraction in the ball of radius around element ; : number of elements; , and : bounds on the volume fraction, the stress and the local volume fraction
| Problem | Objective | Constraints | Reference |
|---|---|---|---|
| Stress constrained | (normalized) | Le et al. (2010) | |
| Robust (cantilever) | Wang et al. (2011) | ||
| Force inverter | (robust) or | Sigmund (1997); Wang et al. (2011) | |
| Porous infill | Wu et al. (2018) |
and the chain rule carries them back through Eqs. (7) and (6). The adjoint systems use the same MGCG.
The objective functions of the force inverter are divided by one tenth of the initial , because with the physical scale alone the element sensitivities () fell below the regularization of the MMA and no mechanism formed. They are then shifted by 500, because the min-max form of the MMA requires positive functions; the shift does not change the sensitivities.
Each problem is defined by a short NumPy function that marks supports, loads, springs and passive elements on the node and element grids. Listing 1 shows the cantilever. A new problem needs such a function, a branch in the problem setup function build and an entry in the table of cases of tof3d_examples.py.
2.5 Verification protocol
The adjoint sensitivities of the five problem functions were compared with central finite differences (step ) in double precision, on a grid with fixed and spring supports. The criterion was a relative difference of at most . The compliance and output displacement were checked again with MGCG on an grid. Three further comparisons checked the building blocks: block Jacobi PCG against a direct solution, the Galerkin coarse operators against explicit products , and the FFT filter against direct convolution. The GPU dual solver of the MMA was compared with a primal-dual interior point solver and with SciPy.
The effect of single precision was measured on the 16 final designs of the examples. Each design was evaluated three times: in single precision at a relative residual of , as in production, and in double precision at and at . The criterion, fixed before the evaluation, was a relative
Listing 1 Definition of the cantilever in tof3d_examples.py. free: supports (0 = fixed degree of freedom); f and f_lateral: nominal and lateral load cases; solid: passive solid elements under the load; s: mesh ratio N/96; C: module tof3d_core; fe: finite element grid; In, Jn, Kn: node indices; ld: loaded nodes; act: active elements; smask: elements of the stress measure, unused here; n_carga: number of loaded nodes
def geo_cantilever(fe, s): In, Jn, Kn = C.node_grid(fe) free = np.ones(fe.nshape + (3,)) free[0] = 0.0 zc = fe.nz // 2 w = int(round(2 * s)) ld = (In == fe.nx) & (Jn <= w) & (np.abs(Kn - zc) <= w) f = np.zeros(fe.nshape + (3,)) f[ld, 1] = -1.0 / ld.sum() flat = np.zeros(fe.nshape + (3,)) flat[ld, 2] = 1.0 / ld.sum() solid = C elems_touching(fe, ld) act = np.ones(fe.eshape, bool) return dict(act=act, free=free, spring=None, loads="f": f, "f_lateral": flat), solid=solid, void=np.zeros(fe.eshape, bool), smask=None, info=dict(n_carga=int ld.sum())
difference between single precision and double precision at of at most in compliances and output displacements and in peak stress. The eight cases of the coarse mesh were also optimized entirely in double precision, for information, without a criterion.
2.6 Example protocol
Eight cases, a reference and a formulation under study for each problem, were fixed in a protocol before the runs, together with three execution criteria and four hypotheses (Table 2). Each case ran for 300 design iterations on a coarse mesh (L-bracket , other cases elements) and a fine mesh ( and ), with every length of the problem scaled by the mesh ratio. The total load stays at one, and the spring stiffness of the inverter grows with the width of its patch: 1.6, 4.4 and 8.6 on the meshes of 96, 256 and 512 elements in length. The three execution criteria were 300 design iterations without invalid values, a constraint violation of at most 0.01, and a mean grayness, the mean of over the design, of at most 0.20 for the L-bracket and 0.10 otherwise. The four hypotheses were as follows. H1: the stress constrained L-bracket lowers the peak stress to at most 0.75 of the compliance design, with at most 15% more compliance. H2: the eroded robust cantilever has lower compliance than the eroded single projection cantilever, and a morphological opening, an erosion followed by a dilation with a ball that deletes members thinner than the ball, removes less solid from it. H3: under erosion ( ), the single projection inverter loses more than half of its output displacement, while the robust one loses less than half and keeps the output sign in all three designs. H4: the infill cantilever has lower lateral compliance than a solid design of the same volume, with at most 1.5 times its nominal compliance. Verdicts were recorded as obtained. Changes to the protocol were recorded as dated amendments with their reasons, listed in Online Resource 1 and in the deposit. A first run of the protocol used the code without the difference form of Eq. (4). All examples reported here come from a second run with the corrected code, which has that form; the first run verdicts are kept in the deposit. The second run was therefore not blind to the verdicts of the first, although the hypotheses and their limits did not change. A secondary analysis repeated the two L-bracket cases on the coarse mesh with three variants of the linear solver: tolerances of and , and block Jacobi PCG. The optimization in double precision counts as a fourth variant. By the rule fixed for this analysis, a clause of H1 that holds in some of the runs but not in all is decided by the optimization path, and its range is reported. The single projection cantilever also ran on elements (Amendment 2). After the protocol, five more cases ran on this mesh as additional examples, without hypotheses: the robust cantilever, the two infill cases and the two inverters. Amendment 10 added two analyses after these runs: an opening with a radius scaled by the mesh ratio, and a test of the regularization of the MMA on the coarse inverter. Amendment 11 repeated the two inverters on this mesh with that regularization scaled, under criteria fixed before the runs.
2.7 Commercial cross-check protocol
The cross-check used the final intermediate designs of the first run of the protocol: the eight coarse cases and the two cantilevers on the fine mesh. They were thresholded at , with in the solid and in the void. Each design was written as an MAPDL input file with the same nodes, supports, loads and springs. MAPDL uses SOLID185 with B-bar integration, a selective reduced integration of the volumetric strain (Ansys, Inc. 2025), whereas the production element of TOF3D is fully integrated. TOF3D therefore solved each coarse case twice, once with each element, in double precision to a relative residual of . The run with the production element quantifies the effect of the element formulation; the run with the B-bar element matrix of SOLID185 compares the two codes with the same element. The fine cases used the B-bar element only. The B-bar variant needs in the smoother, because the largest eigenvalue of , with the block diagonal of , reaches and the damped smoother converges only for . MAPDL used the sparse direct solver on the coarse mesh and the PCG solver with a tolerance of on the fine mesh. The limits on the relative differences, fixed before the runs, were in compliance, in nodal displacements and in the output displacement of the inverter, and in element stresses on the coarse mesh, and , and on the fine mesh.
2.8 Timing protocol
The time per design iteration is the median over the 300 design iterations; the GPU memory is the peak of samples taken every 30 s. The linear solver was timed separately on the cantilever, with the optimized single projection design of the fine mesh from the first run carried to seven meshes from to elements. Each time is the median of five solutions from a zero start to a relative residual of . Block Jacobi PCG was timed up to elements.
The open Futhark code of Träff et al. (2023) (version 0.9.1, compiled with Futhark 0.21.11 for
OpenCL) ran on the same card with its default problem. This is a cantilever with a load on a half disc at the tip, a volume fraction of 0.2 and a filter radius of 1.5 elements. Only its backend and the output frequency of its design files were changed. TOF3D solved the same problem with the same element, filter, supports, loads, residual tolerance of and stopping rule. Only the optimizers differed: optimality criteria in their code and the MMA in TOF3D, both with a move limit of 0.1. Four meshes went from to elements, with 20 design iterations and three repetitions per code, alternating the codes after one warm-up run of each. Before any time was compared, the compliance of the first design iteration of each code had to agree with a double precision TOF3D reference (relative residual ) to within . The time per design iteration is the median of iterations 2 to 20.
2.9 Limitations of the method
TOF3D works on structured grids of hexahedra. The analysis is linear elastic, including the mechanisms, so it does not model large displacements. The 12 GB of GPU memory limit the problem size: the largest runs, on elements, used 9.4 to 9.9 GiB, and the L-bracket was run only up to elements. The coarsest multigrid level runs on the CPU and dominates the solution time on small meshes. In some design iterations the MMA dual solver reached its cap of 300 Newton steps, and the inverter designs passed through states without a load path before forming a mechanism. The regularization of the MMA in the released code does not scale with the number of elements: on the mesh the force inverters formed a mechanism only with a value set for that mesh, and only one value was tried (Sect. 3.4).
3 Results and discussion
3.1 Verification
The adjoint sensitivities of the five problem functions agreed with central finite differences to within , below the criterion of (Table 4). The -norm stress gave the largest error; compliance, the eroded compliance and the local volume agreed to within . With the multigrid
Table 4 Worst relative difference between adjoint sensitivities and central finite differences, in double precision
| Function | Linear solver | Worst relative difference |
|---|---|---|
| Compliance | Block Jacobi PCG | |
| Compliance of the eroded design (three projections) | Block Jacobi PCG | |
| Output displacement of the force inverter | Block Jacobi PCG | |
| P-norm of the relaxed von Mises stress | Block Jacobi PCG | |
| Local volume (p-mean) | Block Jacobi PCG | |
| Compliance | MGCG | |
| Output displacement of the force inverter | MGCG |
preconditioner in place of block Jacobi, the sensitivities stayed within . The Galerkin coarse operators reproduced to round-off (), and the MGCG and block Jacobi solutions of the same systems differed by at most at a relative residual of . The GPU dual solver of the MMA subproblem matched the reference primal-dual interior point solver to within after one design iteration and after five. The FFT density filter matched direct convolution to within .
With the difference form of Eq. (4), single precision changed the responses of the 16 final designs by at most , far below the criteria (Table 5). Without it, the same evaluation of the first run designs on the fine mesh gave errors of up to 5.4% in the lateral compliance of the robust cantilever. The peak stress of the stress constrained L-bracket differed by 2.8%. The errors grew five- to ninefold from the coarse to the fine mesh. The corrected code evaluated the same first run designs to within , and one application of the operator took 1.98 ms instead of 2.02 ms on the mesh. Double precision with a residual of instead of changed the responses by at most . Optimized entirely in double precision, the eight coarse cases gave the same verdicts for H2 to H4, and their final responses differed from single precision by at most 0.54%, except the compliance of the stress constrained L-bracket (Sect. 3.2).
3.2 Examples
All 16 optimizations, eight cases on each mesh, met the three execution criteria of the protocol. They completed 300 design iterations without invalid values, violated their constraints by at most , and ended with a mean grayness of at most 0.067.

Fig. 1 L-bracket on the fine mesh: (a) compliance design; (b) stress constrained design. Isosurface of the intermediate design
On the fine mesh the four hypotheses were confirmed. On the coarse mesh H2 and H4 were confirmed, H3 was not, and the compliance clause of H1 held in the protocol run but not in three variants of the linear solver or in double precision, so its verdict depends on the optimization path (Table 6).
The stress constraint lowered the peak relaxed von Mises stress of the L-bracket to 0.700 of that of the compliance design on both meshes, which is the value the constraint imposes. The increase in compliance differed between the meshes: 3.6% on the fine mesh and 12.0% on the coarse mesh. On the coarse mesh, the three variants of the linear solver and the optimization in double precision raised this increase to 24 to 26%, above the 15% that H1 allows, with the same stress ratio of 0.700. The compliance designs of the five runs differed by less than 0.01%, so the scatter comes from the stress constrained design. The verdict of H1 on the coarse mesh therefore depends on the optimization path, as it did in the first run of the protocol, where the ratio ranged from 1.124 to 1.152. The
Table 5 Largest relative difference between single precision (relative residual ) and double precision () over the final designs, before and after the difference form of Eq. (4). Before: first run designs; after: the designs reported here
| Response | Before | After | ||
|---|---|---|---|---|
| Coarse | Fine | Coarse | Fine | |
| Compliance | ||||
| Lateral compliance | ||||
| Peak stress | ||||
| Output displacement | ||||
Table 6 Hypotheses of the protocol on the coarse mesh (L-bracket , other cases elements) and the fine mesh ( and ). Ratios are taken between the formulation under study and its reference
| Hypothesis | Quantity | Required | Coarse | Fine |
|---|---|---|---|---|
| H1, stress | Peak stress ratio | 0.700 | 0.700 | |
| Compliance ratio | 1.036 | |||
| Verdict | path dependent | confirmed | ||
| H2, robust | Eroded compliance ratio | 0.947 | 0.692 | |
| Solid removed by opening | robust | |||
| Verdict | confirmed | confirmed | ||
| H3, mechanism | Output loss at , single | 24% | 98% | |
| Output loss at , robust | 0.5% | 1.7% | ||
| Verdict | not confirmed | confirmed | ||
| H4, infill | Lateral compliance ratio | 0.957 | 0.922 | |
| Nominal compliance ratio | 1.163 | 1.158 | ||
| Verdict | confirmed | confirmed |
1.120 in the protocol run; three variants of the linear solver and an optimization in double precision gave 1.242 to 1.265, so the compliance clause held in one of five runs; 1.152, not confirmed, in the first run of the protocol (Sect. 2.6). Opening of the solid () with a ball of radius two elements

Fig. 2 Relaxed von Mises stress of the L-bracket on the fine mesh, maximum through the thickness, on the same scale. The outline marks the solid ()
tolerance alone does not explain the scatter: tolerances of and gave 1.263 and 1.265, but block Jacobi and double precision, both at , gave 1.242 and 1.257. The stress constrained design (Fig. 1) rounds the re-entrant corner, moving material away from it, and splits the horizontal

Fig. 3 Cantilever on the fine mesh: (a) single projection; (b) robust formulation. Isosurface of the intermediate design

Fig. 4 Force inverter on the fine mesh: (a) single projection; (b) robust formulation. Isosurface of the intermediate design, mirrored about the symmetry plane
arm into more members. This spreads the stress that the compliance design concentrates at the corner (Fig. 2). The same features appear in two dimensions: the stress constrained L-brackets of Le et al. (2010) move material away from the re-entrant corner and open the arm into a truss, and Holmberg et al. (2013) obtained L-beam designs that differ markedly from the compliance design and avoid the stress concentration at the corner, with 6 400 elements.
The robust formulation traded nominal stiffness for tolerance to erosion (Fig. 3). On the fine mesh the eroded robust cantilever had 0.692 times the compliance of the eroded single projection cantilever, while its intermediate design had 6.3% more compliance. On the coarse mesh these numbers were 0.947 and 9.0%. A morphological opening with a ball of radius two elements removed less solid from the robust design on both meshes (Table 6), in line with the length scale control of the robust formulation (Wang et al. 2011; Lazarov
et al. 2016). A ball of fixed radius becomes small against the members as the mesh is refined. With the radius scaled by the mesh ratio, five elements on the fine mesh, the opening removed 7.8% of the robust design and 17.7% of the single projection design (Amendment 10).
The force inverter shows the same contrast more sharply (Fig. 4). On the fine mesh, eroding the single projection inverter to removed 98% of its output displacement, while the robust inverter lost 1.7%. On the coarse mesh the single projection inverter lost 24% at and more than half only at , so H3, which requires a loss above one half at , was not confirmed. The robust inverter kept at least 89% of its output displacement up to on both meshes. Erosion cuts the thin necks that act as hinges in the single projection inverters, the weakness of such mechanisms that the robust formulation was designed to remove (Sigmund 2009; Wang et al. 2011). Figure 5 gives the output displacement over the whole range of erosion.
The porous infill reduced the lateral compliance of the cantilever to 0.922 of that of the reference with the same volume, at 1.158 times its nominal compliance (0.957 and 1.163 on the coarse mesh). The local volume reached at most 0.87 in the infill design, against 1.0 in the reference, and the interior consists of thin walls parallel to the long axis (Fig. 6; Online Resource 1, Fig. S1). This is the trade-off between nominal stiffness and robustness to load changes that Wu et al. (2018) reported for bone-like infill.
3.3 Cross-check against MAPDL
With the same element on both sides, TOF3D and MAPDL agreed to within in compliance and in nodal displacements, in all ten cases and on both meshes (Table 7). The element stresses agreed to within , below the floor of about set by the single precision storage of element results in the MAPDL result file. The largest comparison had 12.8 million degrees of freedom, where MAPDL used its PCG solver at a tolerance of . All differences stayed at least 40 times below the limits fixed before the runs (Sect. 2.7). The cross-check runs in double precision and does not depend on the difference form of Eq. (4): repeated with the corrected code,

Fig. 5 Output displacement of the force inverter against the projection threshold , relative to its value at . Every linear solution reached the residual tolerance
Table 7 Largest relative differences between TOF3D and MAPDL. Compliance ; nodal displacements (Euclidean norm); element von Mises stress (largest difference over the solid elements, relative to the peak stress); output displacement of the force inverter
| TOF3D element | Mesh (cases) | MAPDL solver | ||||
|---|---|---|---|---|---|---|
| B-bar | Coarse (8) | Sparse direct | ||||
| B-bar | Fine (2) | PCG, | - | |||
| Production | Coarse (8) | Sparse direct | 0.32–1.0 % | - | 0.07–4.6 % | 0.12–0.31 % |
Difference in peak stress, not element by element

Fig. 6 Cantilever on the fine mesh, same volume: (a) without infill; (b) with porous infill, rear half of the width. Isosurface of the intermediate design
the eight coarse cases again agreed with MAPDL to within in compliance.
The production element of TOF3D, the fully integrated eight-node hexahedron, differs from SOLID185 with B-bar integration by 0.32 to 1.0% in compliance and by 0.07 to 4.6% in peak stress. This difference comes from the element formulation, since the two codes agree when they use the
same element. Dugast and To (2023) verified their mechanical model against Ansys; the present cross-check covers ten optimized designs from the four problems and separates the error of the code, at most in displacement, from the effect of the element.
3.4 Time and memory on a consumer GPU
The number of MGCG iterations stayed between 12 and 18 from 0.2 to 101.6 million degrees of freedom (Fig. 7). Block Jacobi PCG needed from 800 to 4475 iterations up to 43 million degrees of freedom. From 12.8 million degrees of freedom on, one linear solution with MGCG, setup included, was 8 to 12 times faster than with block Jacobi. On the smallest meshes the coarsest level dominates. Its dense Cholesky solution runs on the CPU at about 10 ms per V-cycle with coarse elements, and at 1.6 ms with . The mesh with 0.7 million degrees of freedom has the smaller

Fig. 7 Linear solver on the RTX 3060 for the cantilever, with the optimized design of the fine mesh carried to each mesh. Median of five measurements
Table 8 Time per design iteration (s, median), total time (min) and peak GPU memory (GiB) of the optimizations on the RTX 3060, 300 design iterations each. Fine mesh of Table 2 and the mesh of elements
| Case | Elements | s/it. | min | GiB |
|---|---|---|---|---|
| L-bracket, compliance | 5.2 M | 2.5 | 12.9 | 1.61 |
| L-bracket, stress | 5.2 M | 4.6 | 24.6 | 1.64 |
| Cantilever, single | 4.2 M | 2.0 | 11.6 | 1.33 |
| Cantilever, robust | 4.2 M | 2.1 | 10.8 | 1.39 |
| Inverter, single | 4.2 M | 2.9 | 16.6 | 1.36 |
| Inverter, robust | 4.2 M | 7.2 | 35.4 | 1.43 |
| Cantilever, infill | 4.2 M | 2.4 | 13.1 | 1.39 |
| Cantilever, no infill | 4.2 M | 1.7 | 8.9 | 1.39 |
| Cantilever, single | 33.5 M | 17.0 | 86.5 | 9.43 |
| Cantilever, robust | 33.5 M | 19.0 | 98.1 | 9.43 |
| Inverter, single | 33.5 M | 17.8 | 93.3 | 9.55 |
| Inverter, robust | 33.5 M | 43.8 | 222.9 | 9.93 |
| Inverter, single1 | 33.5 M | 23.4 | 124.6 | 9.52 |
| Inverter, robust1 | 33.5 M | 60.6 | 308.6 | 9.90 |
| Cantilever, infill | 33.5 M | 21.1 | 108.1 | 9.43 |
| Cantilever, no infill | 33.5 M | 15.5 | 77.9 | 9.43 |
On elements the final evaluation took 0.8 to 2.3 minutes of each total. Totals exceed 300 times the median because the time per design iteration varies during a run and the totals include setup and the final evaluation. The L-bracket counts the elements of its enclosing box; 3.35 million of them are active. Regularization of the MMA scaled (Amendment 11); the two rows above used the value of the released code and formed no mechanism
coarsest level and therefore solves faster than those with 0.2 and 1.6 million.
On the fine mesh each optimization took 9 to 35 minutes, with at most 1.64 GiB of GPU memory (Table 8). The cantilever on the mesh has 33.5 million elements and 101.6 million
degrees of freedom. It took a median of 17.0 s per design iteration and 86.5 minutes for 300 design iterations and the final evaluation, with a peak of 9.43 GiB of GPU memory. The five additional cases on this mesh met the execution criteria of the protocol and took 78 to 223 minutes, with at most 9.93 GiB. The robust cantilever and the two infill cases led to the same conclusions as on the fine mesh, although the robust design has a different arrangement of members (Online Resource 1, Fig. S2). The eroded robust cantilever had 0.728 times the compliance of the eroded single projection cantilever (0.692 on the fine mesh), and a morphological opening removed less solid from it (0.24 against 0.26%; 22.5 against 24.2% with the radius of 11 elements of Amendment 10). The infill cantilever had 0.897 times the lateral compliance of its reference, at 1.171 times its nominal compliance (0.922 and 1.158 on the fine mesh).
With the regularization of the released code, neither inverter formed a mechanism on this mesh within 300 design iterations: the output displacement fell below 0.2% of its initial magnitude, with the wrong sign in the robust design, and the volume fraction ended at 0.06 and 0.08 against a bound of 0.25. On the mesh the same output grew to about 20 times its initial magnitude. A test on the coarse mesh points to the optimizer (Amendment 10; Online Resource 1, Table S4). The regularization of the MMA is fixed, whereas the element sensitivities fall as the number of elements grows. The inverter on the mesh had also lost its load path, from design iteration 2 to 80, before it formed a mechanism; on the largest mesh it did not recover. To give the regularization on the coarse mesh the relative weight it has on the finer meshes, the test multiplied it by the cube of the mesh ratio (18.96 and 151.70). The design then lost its load path for 51 and 196 design iterations instead of one, with a volume history close to that of the finer meshes. Amendment 11 then divided the regularization on the largest mesh by , without changing the released code and with criteria fixed before the runs. Both inverters met these criteria (Online Resource 1, Fig. S2 and Table S4). Each lost its load path for one design iteration, as on the coarse mesh, and the volume fraction ended at its bound of 0.25. The output reached 26.6 and 25.2 times its initial magnitude. Eroding to removed 99.6% of the output of the single projection inverter and 2.0% of the output of the robust one (98 and 1.7% on the fine mesh). These runs took 125 and 309 minutes. Only this value of the regularization was tried, and the released code keeps .
On the same card and problem, the Futhark code of Träff et al. (2023) reproduced the compliance of the first design iteration of the double precision reference to within , and TOF3D to within . With 0.5 and 4.2 million elements, TOF3D took 0.46 and 1.8 s per design iteration, and the Futhark code 3.7 and 21 s (Fig. 8). The three repetitions of each code differed by less than 2%. Per linear solution, the Futhark code took a median of 16.5 and 15 conjugate gradient iterations on these two meshes, and TOF3D 13.5 and 10. With 14.2 and 33.5 million elements, the Futhark code ran out of the 12 GB of memory, whereas TOF3D took 6.0 and 15 s per design iteration with at most 9.4 GiB. The protocol cantilever of Table 8, with a larger filter radius and a different load, took 17.0 s on the same mesh. The Futhark code applies the operator on the fine grid in double precision, which the RTX 3060 runs at a small fraction of its single precision rate, so on a data center GPU such as the A100 the ranking of the two codes may differ. TOF3D reaches single precision speed and memory without the error of Table 5 because of the difference form of Eq. (4).
Table 9 places TOF3D among recent codes for large three-dimensional problems. On data center GPUs, Träff et al. (2023) optimized a cantilever with 65.5 million elements and a filter radius of 2.5 elements on an 80 GB A100, in 7380 s for 100 design iterations, and Zhao et al. (2024) reached 33.6 million elements on a 32 GB V100 at about 70 s per design iteration. On a consumer card, Zhang et al. (2023) ran inverse homogenization with 134.2 million elements on an 11 GB GTX 1080 Ti in less than 40 s per iteration. Without a GPU, Wang et al. (2025) optimized a bracket with 11 million elements and four load cases in Matlab on a six-core CPU, in 7.6 h for 50 design iterations, with a residual tolerance of ; because this code runs on the CPU, it was not timed on the RTX 3060. The filters, solver tolerances, floating point precision and problems differ among these studies, so the numbers do not rank the codes. TOF3D combines stress constraints, robustness, mechanisms and infill in one code, in single precision on a 12 GB consumer GPU, with its responses cross-checked against a commercial code.
3.5 Implications for learned surrogates
The cost of conventional optimization is the reference against which learned surrogates of topology optimization are judged. Sigmund (2022) asks learning-based studies to report a fair break-even threshold, the number of optimizations needed to train a network weighed against its generality, and refers to the review of Woldseth et al. (2022) for the issues involved. On the fine mesh, TOF3D produces a design that meets its constraints after 300 design iterations, with 4.2 to 5.2 million elements, in 9 to 35 minutes on a 12 GB consumer GPU. Its single precision responses agree with double precision to within , and its double precision solutions agree with a commercial code to within . A surrogate trained on such designs is justified only if its predictions approach this accuracy for boundary conditions, domains and volume fractions outside its training set. It must also recover the cost of generating its training designs with a solver like this one. At these times and this precision the break-even threshold is likely to be high, although no surrogate was tested here. The present results are consistent with the view of Sigmund (2022) and Woldseth et al. (2022) that efficient conventional optimization on accessible hardware is the reference for learning-based methods.

Fig. 8 TOF3D and the open Futhark code of Träff et al. (2023) on the same RTX 3060 and the same cantilever, from to elements. (a) Median time per design iteration over iterations 2 to 20 and three repetitions; (b) peak GPU memory. Crosses: the Futhark code stopped when the memory of the card ran out
Table 9 Recent codes for large three-dimensional topology optimization, as reported in each study
| Study | Hardware | Problems | Largest model |
|---|---|---|---|
| Träff et al. (2023) | A100 GPU, 80 GB | Minimum compliance | 65.5 M elements |
| Zhang et al. (2023) | GTX 1080 Ti GPU, 11 GB | Inverse homogenization | 134.2 M elements |
| Zhao et al. (2024) | V100 GPU, 32 GB | Fiber-reinforced composites | 33.6 M elements |
| Wang et al. (2025) | Six-core CPU, 64 GB | Minimum compliance, porous infill | 128 M elements |
| Jia et al. (2026) | RTX 4090 GPU, 24 GB | Length scale and local volume constraints | 151 M degrees of freedom |
| This work (TOF3D) | RTX 3060 GPU, 12 GB | Stress constraints, robustness, compliant mechanisms, porous infill | 33.5 M elements (cantilever, infill, inverter) |
4 Conclusion
This work proposed TOF3D, an open source Python code for density-based topology optimization in three dimensions, in single precision, on one consumer GPU. The code covers four classes of problems: stress constraints, robustness against manufacturing errors, compliant mechanisms and porous infill. The main conclusions are as follows.
-
The four classes ran on a 12 GB RTX 3060. With 4.2 to 5.2 million elements, each optimization took 9 to 35 minutes and at most 1.64 GiB of GPU memory; with 33.5 million elements, the optimizations took 78 to 309 minutes and at most 9.9 GiB.
-
On the same RTX 3060 and problem, TOF3D took 0.46 and 1.8 s per design iteration with 0.5 and 4.2 million elements. An open Futhark code that applies its operator in double precision took 3.7 and 21 s. That code ran out of memory above 4.2 million elements; TOF3D reached 33.5 million with 9.4 GiB.
-
The multigrid preconditioner kept the conjugate gradient method at 12 to 18 iterations from 0.2 to 101.6 million degrees of freedom, and solved 8 to 12 times faster than block Jacobi on the larger meshes.
-
With the same element, TOF3D agreed with Ansys Mechanical APDL to within in displacements on ten designs. The fully integrated element of TOF3D differs from SOLID185 with B-bar integration by 0.32 to 1.0% in compliance.
-
Rounding the element matrix to single precision caused errors of up to 5.4% that grew with the mesh. Forming the element products
from displacement differences reduced them to at no cost in time.
- Of the four hypotheses fixed before the runs, all four were confirmed on the fine mesh and two on the coarse mesh. On the coarse mesh the compliance increase caused by the stress constraint depended on the optimization path, and the single projection inverter failed only beyond the erosion threshold of the protocol. With 33.5 million elements the robust and infill cantilevers led to the same conclusions as on the fine mesh. The inverters formed a mechanism on this mesh only after the fixed regularization of the MMA was scaled with the number of elements.
The code, the protocol and the results are deposited as a reference for other GPU codes and for learned surrogates.
Supplementary information. Online Resource 1 contains sections of the infill design (Fig. S1), the dated amendments to the protocol (Table S1), the secondary analysis of the coarse L-bracket (Table S2) and the designs on the mesh (Fig. S2), and the analyses of Amendments 10 and 11 (Tables S3 and S4).
Acknowledgments. This work was developed within the PROPEMM graduate program at IFES. The authors thank the Laboratório de Simulação Computacional, IFES Campus Aracruz, for computing infrastructure.
Statements and declarations. Data and code availability. The code, under the MIT license, the protocol with its dated amendments, the scripts of every check and figure and the final designs are deposited on Zenodo (https://doi.org/10.5281/zenodo.24050327). Ansys Mechanical APDL is commercial software: the input files written for the cross-check and the results extracted from it are deposited, but not its binary result files.
Conflict of interest. The authors declare no competing interests.
Use of language models. The use of large language models is declared in Sect. 2.1.
Funding. The article processing charge is expected to be covered by the Coordenação de Aperfeiçoamento de Pessoal de Nível Superior – Brasil (CAPES) (ROR identifier: 00x0ma614) under the CAPES-Springer Nature agreement,
subject to CAPES authorization after acceptance. The authors received no other specific funding for this work.
Author contributions. Conceptualization: L.T.P., R.M.F.; Methodology, Software, Investigation, Data curation, Formal analysis, Visualization, Writing – original draft, Writing – review & editing: L.T.P.; Supervision, Validation: R.G.M.A., R.M.F.
Ethics approval, consent to participate and consent for publication. Not applicable. The study uses only simulated structural data.
Replication of results. The deposit contains the code, the protocol with its dated amendments, the scripts of every check and figure, and the final designs. Its README lists the required packages and maps each table and figure of this article to its data and script. After the packages are installed, the command python tof3d_examples.py C_std --size 96 --iters 20 --smoke runs a short test optimization (option --smoke) of the single projection cantilever (case C_std) on a grid, a size at which a new problem can be tried first. The command bash tests/run_all.sh python repeats the checks of Sect. 3.1. The gradient checks and the double precision cross-check with MAPDL repeat to round-off on any computer. The optimized designs repeat on the same GPU and software versions; on other hardware, floating point reductions in a different order can change the optimization path and, slightly, the final design. Times and memory depend on the GPU.
References
Aage N, Lazarov BS (2013) Parallel framework for topology optimization using the method of moving asymptotes. Structural and Multidisciplinary Optimization 47(4):493–505. https://doi.org/10.1007/s00158-012-0869-2
Aage N, Nobel-Jørgensen M, Andreasen CS, et al (2013) Interactive topology optimization on hand-held devices. Structural and Multidisciplinary Optimization 47(1):1–6. https://doi.org/10.1007/s00158-012-0827-z
Aage N, Andreassen E, Lazarov BS, et al (2017) Giga-voxel computational morphogenesis for structural design. Nature 550(7674):84–86. https://doi.org/10.1038/nature23911
Amir O, Aage N, Lazarov BS (2014) On multigrid-CG for efficient topology optimization. Structural and
Multidisciplinary Optimization 49(5):815–829. https://doi.org/10.1007/s00158-013-1015-5
Ansys, Inc. (2025) Mechanical APDL Theory Reference: SOLID185—3-D 8-Node Structural Solid. URL https://ansyshelp.ansys.com/public/Views/Secured/corp/v251/en/ans_thry/thy_el185.html, Release 2025 R1. Accessed through the Ansys Help portal, 5 September 2026
Bendsøe MP, Sigmund O (1999) Material interpolation schemes in topology optimization. Archive of Applied Mechanics 69(9-10):635–654. https://doi.org/10.1007/s004190050248
Bendsøe MP, Sigmund O (2003) Topology Optimization: Theory, Methods, and Applications, 2nd edn. Springer, Berlin, Heidelberg, https://doi.org/10.1007/978-3-662-05086-6
Bourdin B (2001) Filters in topology optimization. International Journal for Numerical Methods in Engineering 50(9):2143–2158. https://doi.org/10.1002/nme.116
Bruggi M (2008) On an alternative approach to stress constraints relaxation in topology optimization. Structural and Multidisciplinary Optimization 36(2):125–141. https://doi.org/10.1007/s00158-007-0203-6
Dugast F, To AC (2023) Topology optimization of support structures in metal additive manufacturing with elastoplastic inherent strain modeling. Structural and Multidisciplinary Optimization 66(5):105. https://doi.org/10.1007/s00158-023-03565-1
Ferrari F, Sigmund O (2020) A new generation 99 line Matlab code for compliance topology optimization and its extension to 3D. Structural and Multidisciplinary Optimization 62(4):2211–2228. https://doi.org/10.1007/s00158-020-02629-w
Ferro RM, Pavanello R (2023) A simple and efficient structural topology optimization implementation using open-source software for all steps of the algorithm: Modeling, sensitivity analysis and optimization. Computer Modeling in Engineering & Sciences 136(2):1371–1397. https://doi.org/10.32604/cmes.2023.026043
Göddeke D, Strzodka R, Turek S (2007) Performance and accuracy of hardware-oriented native-, emulated- and mixed-precision solvers in FEM simulations. International Journal of Parallel, Emergent and Distributed Systems 22(4):221–256. https://doi.org/10.1080/17445760601122076
Herrero-Pérez D, Martínez Castejón PJ (2021) Multi-GPU acceleration of large-scale density-based topology optimization. Advances in Engineering
Software 157–158:103006. https://doi.org/10.1016/j.advengsoft.2021.103006
Holmberg E, Torstenfelt B, Klarbring A (2013) Stress constrained topology optimization. Structural and Multidisciplinary Optimization 48(1):33–47. https://doi.org/10.1007/s00158-012-0880-7
Hu Y, Li TM, Anderson L, et al (2019) Taichi: A language for high-performance computation on spatially sparse data structures. ACM Transactions on Graphics 38(6):201. https://doi.org/10.1145/3355089.3356506
Jia M, Cheng X, Wang P (2026) A large-scale topology optimization method integrating multiple subdomain volume and minimum length scale constraints for steel frame structure design. Engineering Analysis with Boundary Elements 186:106707. https://doi.org/10.1016/j.enganabound.2026.106707
Kim J, Kang N (2025) PyTopo3D: A Python framework for 3D SIMP-based topology optimization. arXiv preprint, https://doi.org/10.48550/arXiv.2504.05604, URL https://pypi.org/project/pytopo3d/0.3.0/, the software used here is version 0.3.0 of the package, distributed through PyPI
Lazarov BS, Wang F, Sigmund O (2016) Length scale and manufacturability in density-based topology optimization. Archive of Applied Mechanics 86(1-2):189–218. https://doi.org/10.1007/s00419-015-1106-4
Le C, Norato J, Bruns T, et al (2010) Stress-based topology optimization for continua. Structural and Multidisciplinary Optimization 41(4):605–620. https://doi.org/10.1007/s00158-009-0440-y
Lehmann M, Krause MJ, Amati G, et al (2022) Accuracy and performance of the lattice Boltzmann method with 64-bit, 32-bit, and customized 16-bit number formats. Physical Review E 106(1):015308. https://doi.org/10.1103/PhysRevE.106.015308
Martínez-Frutos J, Herrero-Pérez D (2015) Efficient matrix-free GPU implementation of fixed grid finite element analysis. Finite Elements in Analysis and Design 104:61–71. https://doi.org/10.1016/j.finel.2015.06.005
Martínez-Frutos J, Herrero-Pérez D (2016) Large-scale robust topology optimization using multi-GPU systems. Computer Methods in Applied Mechanics and Engineering 311:393–414. https://doi.org/10.1016/j.cma.2016.08.016
Nobel-Jørgensen M, Aage N, Christiansen AN, et al (2015) 3D interactive topology optimization on hand-held devices. Structural and Multidisciplinary
Optimization 51(6):1385–1391. https://doi.org/10.1007/s00158-014-1214-8
Ratnakar SK, Sanfui S, Sharma D (2022) Graphics processing unit-based element-by-element strategies for accelerating topology optimization of three-dimensional continuum structures using unstructured all-hexahedral mesh. Journal of Computing and Information Science in Engineering 22(2):021013. https://doi.org/10.1115/1.4052892
Schmidt S, Schulz V (2011) A 2589 line topology optimization code written for the graphics card. Computing and Visualization in Science 14(6):249–256. https://doi.org/10.1007/s00791-012-0180-1
Sigmund O (1997) On the design of compliant mechanisms using topology optimization. Mechanics of Structures and Machines 25(4):493–524. https://doi.org/10.1080/08905459708945415
Sigmund O (2009) Manufacturing tolerant topology optimization. Acta Mechanica Sinica 25(2):227–239. https://doi.org/10.1007/s10409-009-0240-z
Sigmund O (2022) On benchmarking and good scientific practise in topology optimization. Structural and Multidisciplinary Optimization 65(11):315. https://doi.org/10.1007/s00158-022-03427-2
Svanberg K (1987) The method of moving asymptotes—a new method for structural optimization. International Journal for Numerical Methods in Engineering 24(2):359–373. https://doi.org/10.1002/nme.1620240207
Svanberg K (2007) MMA and GCMMA – two methods for nonlinear optimization. Tech. rep., KTH Royal Institute of Technology, Stockholm
Träff EA, Rydahl A, Karlsson S, et al (2023) Simple and efficient GPU accelerated topology optimisation: Codes and applications. Computer Methods in Applied Mechanics and Engineering 410:116043.
https://doi.org/10.1016/j.cma.2023.116043
Wang F, Lazarov BS, Sigmund O (2011) On projection methods, convergence and robust formulations in topology optimization. Structural and Multidisciplinary Optimization 43(6):767–784. https://doi.org/10.1007/s00158-010-0602-y
Wang J, Aage N, Wu J, et al (2025) Efficient large-scale 3D topology optimization with matrix-free MATLAB code. Structural and Multidisciplinary Optimization 68(9):174. https://doi.org/10.1007/s00158-025-04127-3
Woldseth RV, Aage N, Bærentzen JA, et al (2022) On the use of artificial neural networks in topology optimisation. Structural and Multidisciplinary Optimization 65(10):294. https://doi.org/10.1007/s00158-022-03347-1
Wu J, Dick C, Westermann R (2016) A system for high-resolution topology optimization. IEEE Transactions on Visualization and Computer Graphics 22(3):1195–1208. https://doi.org/10.1109/TVCG.2015.2502588
Wu J, Aage N, Westermann R, et al (2018) Infill optimization for additive manufacturing—approaching bone-like porous structures. IEEE Transactions on Visualization and Computer Graphics 24(2):1127–1140. https://doi.org/10.1109/tvcg.2017.2655523
Zhang D, Zhai X, Liu L, et al (2023) An optimized, easy-to-use, open-source GPU solver for large-scale inverse homogenization problems. Structural and Multidisciplinary Optimization 66(9):207. https://doi.org/10.1007/s00158-023-03657-y
Zhao J, Qi T, Wang C (2024) Efficient GPU accelerated topology optimization of composite structures with spatially varying fiber orientations. Computer Methods in Applied Mechanics and Engineering 421:116809. https://doi.org/10.1016/j.cma.2024.116809