oat3d / README.md
ggrayt's picture
Add 20 topology renderings and 10 interactive 3D examples with boundary conditions
1ce2e42 verified
|
Raw History Blame Contribute Delete
12.8 kB
metadata
pretty_name: 3D Topology and Boundary Conditions
configs:
  - config_name: default
    data_files:
      - split: train
        path: data/shard-*.tar
size_categories:
  - 100K<n<1M
tags:
  - 3d
  - topology-optimization
  - numpy

3D Topology and Boundary Conditions

This dataset contains 501,865 examples of three-dimensional topology density fields with their boundary-condition and optimization logs.

Topology gallery

These 20 examples come from the archived density fields. The surface follows the 0.30 density isovalue. Blue points mark nodes with constrained displacement. Red points mark loaded nodes, and red arrows show applied force directions. Repeated forces at the same node are summed. Up to 24 arrows are drawn at a common length so their directions are easy to see.

Interactive 3D examples

Select a thumbnail to rotate and zoom. The dimensions under each example give the native grid size in X × Y × Z voxels.

Topology 2214490db8a8b23e, 112 × 104 × 88 voxels
2214490db8a8b23e · 112 × 104 × 88
Rotate in 3D · Full image
Topology 66418215ff51c9fb, 48 × 40 × 48 voxels
66418215ff51c9fb · 48 × 40 × 48
Rotate in 3D · Full image
Topology 220fa6a08f2e6961, 112 × 48 × 40 voxels
220fa6a08f2e6961 · 112 × 48 × 40
Rotate in 3D · Full image
Topology 440ddf1a5a886b8a, 136 × 40 × 40 voxels
440ddf1a5a886b8a · 136 × 40 × 40
Rotate in 3D · Full image
Topology aaac4b5b0054a5bc, 192 × 32 × 48 voxels
aaac4b5b0054a5bc · 192 × 32 × 48
Rotate in 3D · Full image
Topology 663834c3dbfd506f, 72 × 56 × 64 voxels
663834c3dbfd506f · 72 × 56 × 64
Rotate in 3D · Full image
Topology ef03e5f4dd627b40, 48 × 64 × 40 voxels
ef03e5f4dd627b40 · 48 × 64 × 40
Rotate in 3D · Full image
Topology 440f445383ca9740, 112 × 72 × 72 voxels
440f445383ca9740 · 112 × 72 × 72
Rotate in 3D · Full image
Topology aab16f4c97628b8d, 72 × 64 × 56 voxels
aab16f4c97628b8d · 72 × 64 × 56
Rotate in 3D · Full image
Topology aab973efdbd25a3a, 216 × 56 × 48 voxels
aab973efdbd25a3a · 216 × 56 × 48
Rotate in 3D · Full image

More topologies with boundary conditions

Select a thumbnail to open the full-resolution rendering.

Topology 0002c8015959683d, 144 × 64 × 56 voxels
0002c8015959683d · 144 × 64 × 56
Full image
Topology 000d8eb0f5df436d, 40 × 40 × 48 voxels
000d8eb0f5df436d · 40 × 40 × 48
Full image
Topology 22141144dcbfe9d3, 192 × 32 × 32 voxels
22141144dcbfe9d3 · 192 × 32 × 32
Full image
Topology 2211ec70bfeef1c4, 120 × 96 × 72 voxels
2211ec70bfeef1c4 · 120 × 96 × 72
Full image
Topology 66377ca7c6c8fe8e, 152 × 48 × 48 voxels
66377ca7c6c8fe8e · 152 × 48 × 48
Full image
Topology 663efa305312e5dd, 272 × 56 × 48 voxels
663efa305312e5dd · 272 × 56 × 48
Full image
Topology 8872475e9659ed8d, 120 × 80 × 40 voxels
8872475e9659ed8d · 120 × 80 × 40
Full image
Topology 8872ce6876f7507b, 64 × 88 × 48 voxels
8872ce6876f7507b · 64 × 88 × 48
Full image
Topology cc9d0665e529aa57, 136 × 48 × 56 voxels
cc9d0665e529aa57 · 136 × 48 × 56
Full image
Topology cc91845823ae8ac1, 56 × 224 × 48 voxels
cc91845823ae8ac1 · 56 × 224 × 48
Full image

Files

The data are stored in data/shard-*.tar archives of approximately 1 GB each. Every example has a 16-character hexadecimal identifier and two adjacent archive members:

  • <id>.topo.npz: topology density array.
  • <id>.logs.npz: boundary conditions and optimization logs.

Each pair is contained in a single shard. The NPZ files are compressed NumPy archives containing numeric arrays and can be opened with allow_pickle=False. Topology dimensions and the numbers of boundary-condition nodes vary between examples. The archives preserve continuous density values and stored force vectors.

Arrays

Archive / key Description
Topology: topo float16 element-density array of shape (nx, ny, nz), in XYZ axis order.
Logs: dims Element counts [nx, ny, nz], matching the topology shape.
Logs: loads, load_v Corresponding (N, 3) load-node coordinates and force vectors; columns are X, Y, Z.
Logs: bcs, bc_c Corresponding (M, 3) support-node coordinates and displacement-constraint flags; a nonzero flag fixes the corresponding component.
Logs: E_mat Stored material-modulus metadata.
Logs: vf Prescribed optimization volume fraction, distinct from the mean stored density.
Logs: converged, iterations Stored optimization status and iteration count.
Logs: objective, objective_change, design_change, residual Stored optimization-history arrays.

Boundary-condition coordinates are zero-based node coordinates: each component may range from zero through the corresponding value in dims, inclusive. Topology array indices instead range from zero through dims - 1. Repeated load coordinates represent additive force contributions; repeated support coordinates combine their constraint flags. No physical unit system is specified by these files.

Read one example

The following example reads the first pair from one downloaded shard without extracting the archive. It requires NumPy and the Python standard library.

import io
import tarfile
import numpy as np

with tarfile.open("data/shard-00000.tar") as shard:
    member = next(m for m in shard if m.name.endswith(".topo.npz"))
    sample_id = member.name.split(".")[0]
    with np.load(io.BytesIO(shard.extractfile(member).read()), allow_pickle=False) as data:
        topo = data["topo"]
    with np.load(io.BytesIO(shard.extractfile(f"{sample_id}.logs.npz").read()), allow_pickle=False) as data:
        logs = {key: data[key] for key in data.files}