|
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
12.8 kB
| 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. | |
| | | | | |
| |:---:|:---:| | |
| | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/2214490db8a8b23e.glb)<br/>`2214490db8a8b23e` · 112 × 104 × 88<br/>[Rotate in 3D](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/2214490db8a8b23e.glb) · [Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/2214490db8a8b23e.png) | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/66418215ff51c9fb.glb)<br/>`66418215ff51c9fb` · 48 × 40 × 48<br/>[Rotate in 3D](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/66418215ff51c9fb.glb) · [Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/66418215ff51c9fb.png) | | |
| | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/220fa6a08f2e6961.glb)<br/>`220fa6a08f2e6961` · 112 × 48 × 40<br/>[Rotate in 3D](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/220fa6a08f2e6961.glb) · [Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/220fa6a08f2e6961.png) | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/440ddf1a5a886b8a.glb)<br/>`440ddf1a5a886b8a` · 136 × 40 × 40<br/>[Rotate in 3D](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/440ddf1a5a886b8a.glb) · [Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/440ddf1a5a886b8a.png) | | |
| | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/aaac4b5b0054a5bc.glb)<br/>`aaac4b5b0054a5bc` · 192 × 32 × 48<br/>[Rotate in 3D](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/aaac4b5b0054a5bc.glb) · [Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/aaac4b5b0054a5bc.png) | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/663834c3dbfd506f.glb)<br/>`663834c3dbfd506f` · 72 × 56 × 64<br/>[Rotate in 3D](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/663834c3dbfd506f.glb) · [Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/663834c3dbfd506f.png) | | |
| | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/ef03e5f4dd627b40.glb)<br/>`ef03e5f4dd627b40` · 48 × 64 × 40<br/>[Rotate in 3D](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/ef03e5f4dd627b40.glb) · [Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/ef03e5f4dd627b40.png) | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/440f445383ca9740.glb)<br/>`440f445383ca9740` · 112 × 72 × 72<br/>[Rotate in 3D](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/440f445383ca9740.glb) · [Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/440f445383ca9740.png) | | |
| | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/aab16f4c97628b8d.glb)<br/>`aab16f4c97628b8d` · 72 × 64 × 56<br/>[Rotate in 3D](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/aab16f4c97628b8d.glb) · [Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/aab16f4c97628b8d.png) | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/aab973efdbd25a3a.glb)<br/>`aab973efdbd25a3a` · 216 × 56 × 48<br/>[Rotate in 3D](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/meshes/aab973efdbd25a3a.glb) · [Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/aab973efdbd25a3a.png) | | |
| ### More topologies with boundary conditions | |
| Select a thumbnail to open the full-resolution rendering. | |
| | | | | |
| |:---:|:---:| | |
| | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/0002c8015959683d.png)<br/>`0002c8015959683d` · 144 × 64 × 56<br/>[Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/0002c8015959683d.png) | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/000d8eb0f5df436d.png)<br/>`000d8eb0f5df436d` · 40 × 40 × 48<br/>[Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/000d8eb0f5df436d.png) | | |
| | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/22141144dcbfe9d3.png)<br/>`22141144dcbfe9d3` · 192 × 32 × 32<br/>[Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/22141144dcbfe9d3.png) | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/2211ec70bfeef1c4.png)<br/>`2211ec70bfeef1c4` · 120 × 96 × 72<br/>[Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/2211ec70bfeef1c4.png) | | |
| | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/66377ca7c6c8fe8e.png)<br/>`66377ca7c6c8fe8e` · 152 × 48 × 48<br/>[Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/66377ca7c6c8fe8e.png) | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/663efa305312e5dd.png)<br/>`663efa305312e5dd` · 272 × 56 × 48<br/>[Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/663efa305312e5dd.png) | | |
| | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/8872475e9659ed8d.png)<br/>`8872475e9659ed8d` · 120 × 80 × 40<br/>[Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/8872475e9659ed8d.png) | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/8872ce6876f7507b.png)<br/>`8872ce6876f7507b` · 64 × 88 × 48<br/>[Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/8872ce6876f7507b.png) | | |
| | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/cc9d0665e529aa57.png)<br/>`cc9d0665e529aa57` · 136 × 48 × 56<br/>[Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/cc9d0665e529aa57.png) | [](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/cc91845823ae8ac1.png)<br/>`cc91845823ae8ac1` · 56 × 224 × 48<br/>[Full image](https://huggingface.co/datasets/ggrayt/oat3d/blob/main/previews/renders/cc91845823ae8ac1.png) | | |
| ## 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. | |
| ```python | |
| 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} | |
| ``` | |