Skip to main content

Deep Drawing and Cutting Simulations (DDACS) Dataset - Python interface

Project description

Deep Drawing and Cutting Simulations (DDACS) Dataset

License: MIT Python 3.10+ DaRUS Repository DOI Paper

A Python package for accessing and processing the Deep Drawing and Cutting Simulations (DDACS) Dataset. It includes a CLI for downloading datasets from DaRUS and a Python API for accessing simulation data with metadata.

Thickness Distribution Example

Simulation with the tool geometries and various additional information like sheet metal thinning, stress and strain. The gif has been interpolated for a more fluid display (the simulation contains 3 to 4 timesteps).

Table of Contents

Installation

Note: I recommend using uv as a fast Python package installer and resolver. Simply replace pip with uv pip in the commands below.

Core Installation

For basic dataset access without high weight module dependencies:

pip install git+https://github.com/BaumSebastian/Deep-Drawing-and-Cutting-Simulations-Dataset.git

PyTorch Installation

For PyTorch integration without visualization dependencies:

pip install "git+https://github.com/BaumSebastian/Deep-Drawing-and-Cutting-Simulations-Dataset.git[torch]"

Examples Installation

For examples with PyTorch, Jupyter, and visualization capabilities:

pip install "git+https://github.com/BaumSebastian/Deep-Drawing-and-Cutting-Simulations-Dataset.git[examples]"

Download Dataset

Download the dataset using the ddacs CLI:

# Download full dataset (requires ~1TB storage)
ddacs download

# Download small test set for quick demos (requires ~50GB storage)
ddacs download --small

# Show dataset info and available versions
ddacs info

Important: The full dataset is approximately 1TB in size. Ensure you have sufficient storage space. The download may take several hours depending on your internet connection.

Options:

Flag Description
--small Download small test set for demos
--out ./path Custom output directory (default: ./data)
--no-extract Skip extraction of zip files
--keep-zip Keep zip files after extraction
-y, --yes Skip confirmation prompt

Versioning

The package version aligns with the dataset version on DaRUS. Running ddacs download will download dataset version 2.0 by default.

# Check available versions
ddacs info

Basic Usage

Core Usage

For basic dataset iteration:

import h5py
import numpy as np
from ddacs import iter_ddacs, count_available_simulations

# Count available simulations
count = count_available_simulations("./data")
print(f"Available simulations: {count}")

# Iterate over first few samples
for i, (sim_id, metadata, h5_file_path) in enumerate(iter_ddacs("./data")):
    print(f"Sample {i+1}: ID={sim_id}, Path={h5_file_path}")

    # Access simulation data
    with h5py.File(h5_file_path, "r") as f:
        data = np.array(f["OP10"]["blank"]["node_displacement"])
        print(f"Data shape: {data.shape}")

    if i >= 2:  # Show first 3 samples
        break

PyTorch Usage

For PyTorch-compatible dataset with DataLoader support:

from ddacs.pytorch import DDACSDataset
from torch.utils.data import DataLoader

# Create dataset
dataset = DDACSDataset("./data")
dataloader = DataLoader(dataset, batch_size=4, shuffle=True)

# Use in training loop
for batch_idx, (sim_ids, metadata_batch, h5_paths) in enumerate(dataloader):
    print(f"Batch {batch_idx}: {len(sim_ids)} samples")
    # Your training code here
    if batch_idx >= 2:  # Show first 3 batches
        break

See examples/dataset_demo.ipynb for a comprehensive tutorial including visualization and advanced usage patterns.

Citation

If you use this dataset or code in your research, please cite both the dataset and the paper:

Dataset Citation

@dataset{baum2025ddacs,
  title={Deep Drawing and Cutting Simulations Dataset},
  subtitle={FEM Simulations of a deep drawn and cut dual phase steel part},
  author={Baum, Sebastian and Heinzelmann, Pascal},
  year={2025},
  version={1.0},
  publisher={DaRUS},
  doi={10.18419/DARUS-4801},
  license={CC BY 4.0},
  url={https://doi.org/10.18419/DARUS-4801}
}

Paper Citation

@article{heinzelmann2025benchmark,
  title={A Comprehensive Benchmark Dataset for Sheet Metal Forming: Advancing Machine Learning and Surrogate Modelling in Process Simulations},
  author={Heinzelmann, Pascal and Baum, Sebastian and Riedmüller, Kim Rouven and Liewald, Mathias and Weyrich, Michael},
  journal={MATEC Web of Conferences},
  volume={408},
  year={2025},
  pages={01090},
  doi={10.1051/matecconf/202540801090},
  url={https://www.matec-conferences.org/articles/matecconf/abs/2025/02/matecconf_iddrg2025_01090/matecconf_iddrg2025_01090.html}
}

Development Installation

For developers who want to contribute to this project:

git clone https://github.com/BaumSebastian/Deep-Drawing-and-Cutting-Simulations-Dataset.git DDACS
cd DDACS

# Install in editable mode with development dependencies
pip install -e ".[dev]"

This installs the package with the ddacs CLI command and all development tools.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ddacs-2.0.1.tar.gz (28.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ddacs-2.0.1-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file ddacs-2.0.1.tar.gz.

File metadata

  • Download URL: ddacs-2.0.1.tar.gz
  • Upload date:
  • Size: 28.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for ddacs-2.0.1.tar.gz
Algorithm Hash digest
SHA256 d04d70e73ca00daeecf4c551473bab1462e403479d3cad9e51fb1c08ea5c3b8e
MD5 c744de44583a588cd0c5c1e8f931d4da
BLAKE2b-256 085a119ecdde222266bae1c5d762bb1bef5a54ff33c74084cd962ea5b20c13cf

See more details on using hashes here.

File details

Details for the file ddacs-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: ddacs-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 20.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for ddacs-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8f86e1d8a95187f90ac706dbef2fa4a41f77dbaa1094ae35559b80b9eb63e52a
MD5 7b6d34dbee531dce72347014e9224da4
BLAKE2b-256 034105ed2c866ce9cac440ceeacc600f43cbafa205523381a45d6f86e2aedc57

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page