Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

totypes - Custom types for topology optimization

Continuous integration PyPI version

Overview

The totypes package defines custom jax-compatible datatypes for use in a topology optimization, inverse design, or AI-guided design context. The custom types are pytree nodes consisting of standard jax arrays along with metadata that describe the desired characteristics of the arrays.

  • BoundedArray, an array with optional lower and/or upper bounds, used e.g. for representing layer thicknesses.
  • Density2DArray, an array with lower and upper bounds and characteristics such as fixed pixels, minimum feature size, or symmetry, used for representing layer density as is common in topology optimization.

Custom types do not modify the underlying arrays to ensure that e.g. bounds are obeyed. Instead, it is intended that any scheme for generating arrays be aware of and respect the metadata. For example, a topology optimization scheme could read the minimum width and spacing of layers, and use these quantities to construct an appropriate filtering scheme.

Several related utilities are also provided. The json_utils module provides functions for serializing and deserializing pytrees containing the custom types. And, the symmetry module provides functions that symmetrize arrays; the allowed symmetries of the Density2DArray are restricted to those implemented in the symmetry module.

Install

pip install totypes

Metadata

Release files for totypes 0.9.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for totypes 0.9.1
File Size Uploaded
totypes-0.9.1.tar.gz 16.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for totypes 0.9.1
File Interpreter ABI Platform
totypes-0.9.1-py3-none-any.whl Python 3 none any Details

Total release size: 28.0 kB

Release files / totypes-0.9.1.tar.gz

Download URL totypes-0.9.1.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7f61ffc0aab8fe91008229d47ec36f9a54d6d87d24e5996ce7fda34c9b2251b2
BLAKE2b-256 checksum
How to use checksums
a7bde2468e8a4278ea19cb08635bd477121710e2de98feb88325449ddca24059
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / totypes-0.9.1-py3-none-any.whl

Download URL totypes-0.9.1-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
657e3fae15059f919ab5268b7106fc9bc62df98f520fc361dcaf85bce1e0886b
BLAKE2b-256 checksum
How to use checksums
c5fc6c3da5ade4a40aece0c6b694e8caa41387c5fe871822701d9ab2776dc57f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page