File size: 3,756 Bytes
603e97c 52bd1a4 603e97c e50e890 17b6cb9 603e97c ec1bf17 603e97c 17b6cb9 ec1bf17 e2eed7b 52bd1a4 3dab25e 52bd1a4 3dab25e 52bd1a4 3dab25e 603e97c e2eed7b 52bd1a4 603e97c 8b72dc6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | ---
dataset_info:
- config_name: geometry
features:
- name: node_coordinates_x
list: float64
- name: node_coordinates_y
list: float64
- name: connectivity
list:
list: int32
splits:
- name: default
num_bytes: 62508
num_examples: 1
download_size: 35333
dataset_size: 62508
- config_name: parameters
features:
- name: youngs_modulus
list: float64
splits:
- name: default
num_bytes: 46000
num_examples: 500
download_size: 54144
dataset_size: 46000
- config_name: snapshots
features:
- name: displacement_x
list: float64
- name: displacement_y
list: float64
splits:
- name: default
num_bytes: 10772000
num_examples: 500
download_size: 11268439
dataset_size: 10772000
configs:
- config_name: geometry
data_files:
- split: default
path: geometry/default-*
- config_name: parameters
data_files:
- split: default
path: parameters/default-*
- config_name: snapshots
data_files:
- split: default
path: snapshots/default-*
---
# Elastic Block Dataset
## Dataset Description
This dataset contains structural mechanics simulations of an elastic block under varying Young's modulus parameters.
### Dataset Summary
The Elastic Block dataset provides numerical simulations of elastic deformation in a 2D block with parametrized material properties. The dataset includes displacement fields in both x and y directions, making it suitable for reduced-order modeling, surrogate modeling, and machine learning applications in structural mechanics.
## Dataset Structure
### Data Instances
The dataset consists of three configurations:
- **geometry**: Mesh information (nodes and connectivity)
- **snapshots**: Displacement field solutions
- **parameters**: Young's modulus values for each simulation
### Data Fields
#### Geometry Configuration
- `node_coordinates_x`: Sequence of x-coordinates of mesh nodes (float64)
- `node_coordinates_y`: Sequence of y-coordinates of mesh nodes (float64)
- `connectivity`: Sequence of element connectivity (triangular elements, int32)
#### Snapshots Configuration
- `displacement_x`: Displacement field in x-direction at each node (float64)
- `displacement_y`: Displacement field in y-direction at each node (float64)
#### Parameters Configuration
- `youngs_modulus`: Young's modulus parameter for each simulation (float64)
### Data Splits
- `default`: Contains all simulations
## Dataset Creation
### Source Data
The dataset was generated using finite element simulations of linear elasticity with varying Young's modulus parameters.
### Preprocessing
Displacement solutions are stored as 1D arrays (one for each direction) corresponding to the nodal values on the mesh.
## Usage
```python
from datasets import load_dataset
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.tri as mtri
# Load geometry
ds_geom = load_dataset("SISSAmathLab/elastic-block", name="geometry")
# Load snapshots
ds_data = load_dataset("SISSAmathLab/elastic-block", name="snapshots")
# Load parameters
ds_params = load_dataset("SISSAmathLab/elastic-block", name="parameters")
# Visualize displacement field for first simulation
pts_x = np.asarray(ds_geom['default']['node_coordinates_x']).flatten()
pts_y = np.asarray(ds_geom['default']['node_coordinates_y']).flatten()
connectivity = ds_geom['default']['connectivity'][0]
displacement_x = np.asarray(ds_data['default']['displacement_x'][0])
triang = mtri.Triangulation(pts_x, pts_y, connectivity)
plt.tripcolor(triang, displacement_x)
plt.colorbar(label='Displacement X')
plt.title('Elastic Block - X Displacement')
plt.xlabel('x')
plt.ylabel('y')
plt.axis('equal')
plt.show()
```
## Contact
For questions or issues, please contact SISSA mathLab. |