node_coordinates_x list | node_coordinates_y list | connectivity list |
|---|---|---|
[
0.6666666666666666,
0.6666666666666666,
1,
1,
0.6666666666666666,
1,
0.6666666666666666,
1,
0.3333333333333333,
0.3333333333333333,
0.3333333333333333,
0.3333333333333333,
0,
0,
0,
0,
0.8333333333333333,
0.6666666666666666,
0.8333333333333333,
0.6666666666666666,
0.3333333333... | [
1,
0.6666666666666666,
0.6666666666666666,
1,
0.3333333333333333,
0.3333333333333333,
0,
0,
1,
0.6666666666666666,
0.3333333333333333,
0,
1,
0.6666666666666666,
0.3333333333333333,
0,
0.6666666666666666,
0.8333333333333333,
0,
0.1666666666666667,
0.8333333333333333,
0.83333... | [
[
16,
833,
1201
],
[
58,
432,
667
],
[
449,
793,
1164
],
[
763,
953,
1247
],
[
150,
498,
913
],
[
155,
675,
1176
],
[
282,
542,
1021
],
[
342,
1146,
1227
],
[
330,
538,
1001
... |
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
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.
- Downloads last month
- 10