Certifiedloverboy
Add SAWP-20 benchmark dataset with ground truth code solutions, schematics, and problem descriptions
be06037 SAWP-20 Benchmark Dataset
This dataset contains 20 structural analysis problems with their corresponding ground truth schematics, simplified problem descriptions, and reference code solutions.
Dataset Structure
ground_truth/: Contains 20 PNG images (schematic_01.png to schematic_20.png) showing the ground truth structural schematicsproblem_descriptions/: Contains 20 text files (problem_1.txt to problem_20.txt) with simplified problem descriptions containing only the problem contextcode/: Contains 20 Python files (1.py to 20.py) with ground truth reference solutions implemented using OpenSeesPy
Problem Description Format
Each problem description file contains only the essential problem context, including:
- Structural geometry and dimensions
- Material properties (Young's modulus, cross-sectional areas, moments of inertia)
- Loading conditions
- Support conditions
- Expected analysis outputs
Ground Truth Code Solutions
The code/ directory contains reference implementations for all 20 problems. These solutions are written in Python using:
- OpenSeesPy: For structural analysis and finite element modeling
- opsvis: For visualization of structural models, loads, deformations, and internal forces
- matplotlib: For plotting and visualization
Each code file follows a consistent structure:
- Model initialization and parameter configuration
- Node and element definition
- Boundary conditions (supports)
- Load application (point loads and/or distributed loads)
- Analysis setup and execution
- Visualization of results (model, loads, deformations, and internal force diagrams)
These reference solutions represent the expected output that code generation frameworks should produce for each problem.
Usage
This dataset is designed for benchmarking structural analysis code generation systems. Each problem provides:
- Clear structural problem definition
- All necessary parameters for analysis
- Ground truth reference code solution
- Expected outputs (deformations and internal forces)
File Naming Convention
- Ground truth images:
schematic_XX.pngwhere XX is the problem number (01-20) - Problem descriptions:
problem_X.txtwhere X is the problem number (1-20) - Ground truth code:
X.pywhere X is the problem number (1-20)