Search arXiv⌕ Search

arXiv · 2611.12027

An open source Python code for three-dimensional topology optimization in single precision on a consumer GPU

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 $1.3\times 10^{-5}$ at no cost in time. Adjoint sensitivities agreed with finite differences to within $1.7\times 10^{-6}$, and the solutions agreed with Ansys Mechanical APDL to within $4.1\times 10^{-10}$ 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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Leonilson Toffoli Pedrini, Rodolfo G. M. Andrade, Rafael M. Ferro. 2026-11-09. An open source Python code for three-dimensional topology optimization in single precision on a consumer GPU. https://searcharxiv.org/abs/2611.12027

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Physics-Informed Sensitivity Analysis for Enhanced Structural Health Assessment: Test-Case for a Mixed Steel-Concrete Bridge

Bridges are vital components of transportation systems, that serve as essential links ensuring the safe and efficient movement of people, goods, and emergency responders, especially during crises. With aging infrastructures, increasing traffic volumes and loads, and the intensifying impacts of extreme weather events due to climate change, the development of effective physics-informed structural health monitoring (SHM) frameworks has become critically important, more so when combined with sensitivity analysis (SA), which identifies the most influential structural parameters in the bridge's response. To support this, a high-fidelity, physics-based numerical model of a full-scale, two-span, mixed steel-concrete test bridge has been developed. This model serves as a virtual replica of a real structure located at the University of the Bundeswehr Munich. The numerical model is used as a complementary tool to improve prognostic capabilities and quantify uncertainty. A SA study is conducted to evaluate the structure's response under various mechanical conditions. Assessing these operational variations' effects on structural behavior forms part of an integrated, systematic evaluation framework aimed at combining SHM and SA.

cs.CE↗

OpenTherm: A Unified and Progressive Benchmark for 2.5D/3D-IC Thermal Prediction

Accurate and efficient chip thermal prediction is essential for advanced packaging design. In recent years, deep learning-based thermal predictors have made significant progress, achieving high prediction accuracy while substantially reducing computational costs. However, differences in datasets, simulators, and evaluation protocols hinder direct comparison of existing methods and systematic assessment of their generalization across design variations and cross-package transfer scenarios. We introduce OpenTherm, an open benchmark combining 32,000 established 3D-IC samples with 50,000 new 2.5D chiplet samples generated with the open-source HotSpot simulator. It provides fixed data splits, a common input representation, and shared evaluation tools. Five deployment-aligned Generalization Scopes cover fixed-design workload prediction, within-family layout, material, and cooling exploration, and cross-package out-of-distribution (OOD) transfer with few-shot adaptation. Under a shared protocol, eight model configurations show gradual error growth within known package families. The best MAE increases by 13.7x from the broadest within-family scope to zero-shot cross-package transfer. Larger models do not consistently generalize better, and ten labeled fields per unseen package reduce MAE by 76-93%. Project site: https://github.com/Day333/OpenTherm.

cs.CE↗

Law at the Speed of AI: Critical Legal Infrastructure for the Machine Age: Autonomy Under Law Architecture (AULA)

The global deployment of autonomous AI agents within and across organisations exceeds the governance infrastructure available to constrain it. Agent communication and authentication protocols, principally the Model Context Protocol and the Agent2Agent Protocol, are maturing quickly, but maturity at the protocol layer does not produce legal legibility at the governance layer. Runtime enforcement written by the deploying organisation fixes the resources an AI agent can reach, not the authority under which it acts. Legal legibility is the capacity of a legal system to recognise, interpret and regulate activity by mapping it onto legal personhood, property, rights and liabilities. Existing (analogue) legal infrastructure cannot supply it for autonomous deployment. The resulting deficit is bidirectional. It concerns the attribution of liability when an AI agent causes harm, and the allocation of rights, including data and economic rights, generated by agentic activity and by the AI agent itself as a source of value and form of property. This paper characterises that deficit as the legal attribution gap, a material and unaddressed risk to economies, organisations and citizens that is magnified in cross-organisational multi-agent deployment. The paper describes the Autonomy Under Law Architecture (AULA), in which AI systems and data assets are registered as legal objects anchored to one or more identified legal persons, governed by cryptographically tethered smart legal instruments and evaluated at runtime. Each smart legal instrument can carry a legal context clause, through which the legislation, regulation and judicial decisions in force at the time of the act are given practical and legal effect in that evaluation. Infrastructure of this kind is a precondition for the continued function of any legal, property and economic system with both human and autonomous machine stakeholders.

cs.CE↗