Download README.md from ggrayt/oat3d: direct link, hf CLI and curl.
- Browser
- Download file 12.8 kB
-
https://huggingface.co/datasets/ggrayt/oat3d/resolve/main/README.md
- Command line
-
hf download hf://datasets/ggrayt/oat3d/README.md
-
curl -L -o README.md https://huggingface.co/datasets/ggrayt/oat3d/resolve/main/README.md
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.
2214490db8a8b23e · 112 × 104 × 88Rotate in 3D · Full image |
66418215ff51c9fb · 48 × 40 × 48Rotate in 3D · Full image |
220fa6a08f2e6961 · 112 × 48 × 40Rotate in 3D · Full image |
440ddf1a5a886b8a · 136 × 40 × 40Rotate in 3D · Full image |
aaac4b5b0054a5bc · 192 × 32 × 48Rotate in 3D · Full image |
663834c3dbfd506f · 72 × 56 × 64Rotate in 3D · Full image |
ef03e5f4dd627b40 · 48 × 64 × 40Rotate in 3D · Full image |
440f445383ca9740 · 112 × 72 × 72Rotate in 3D · Full image |
aab16f4c97628b8d · 72 × 64 × 56Rotate in 3D · Full image |
aab973efdbd25a3a · 216 × 56 × 48Rotate in 3D · Full image |
More topologies with boundary conditions
Select a thumbnail to open the full-resolution rendering.
0002c8015959683d · 144 × 64 × 56Full image |
000d8eb0f5df436d · 40 × 40 × 48Full image |
22141144dcbfe9d3 · 192 × 32 × 32Full image |
2211ec70bfeef1c4 · 120 × 96 × 72Full image |
66377ca7c6c8fe8e · 152 × 48 × 48Full image |
663efa305312e5dd · 272 × 56 × 48Full image |
8872475e9659ed8d · 120 × 80 × 40Full image |
8872ce6876f7507b · 64 × 88 × 48Full image |
cc9d0665e529aa57 · 136 × 48 × 56Full image |
cc91845823ae8ac1 · 56 × 224 × 48Full 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}