Custom datatypes useful in a topology optimization context
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
totypes - Custom types for topology optimization
v0.6.4
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file totypes-0.6.4.tar.gz.
File metadata
- Download URL: totypes-0.6.4.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4c2b780ddd64bf426d790863d3ac97d756eaaf84bda43eba36bd12285f75288
|
|
| MD5 |
9939e9d55440edd31140f4b3b013f5a0
|
|
| BLAKE2b-256 |
c5f247e83bf4c5353a74aa3059e0b0e79797b813d9eea3e18f1222c939ffb42c
|
File details
Details for the file totypes-0.6.4-py3-none-any.whl.
File metadata
- Download URL: totypes-0.6.4-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d7c76878ed4bc99bafa40972f61eaeaa901af92bb0936beacb6dd218ffd9d66
|
|
| MD5 |
953bfdfe0e4ec3886169a747a8193afd
|
|
| BLAKE2b-256 |
f2395f260a8543edca7096fdb34a8790b9a44c2969ef761505182436205a505a
|