Update README.md
Browse files
README.md
CHANGED
|
@@ -52,3 +52,95 @@ configs:
|
|
| 52 |
- split: default
|
| 53 |
path: snapshots/default-*
|
| 54 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
- split: default
|
| 53 |
path: snapshots/default-*
|
| 54 |
---
|
| 55 |
+
# Unsteady Heat Transfer Dataset
|
| 56 |
+
|
| 57 |
+
## Dataset Description
|
| 58 |
+
|
| 59 |
+
This dataset contains time-dependent thermal simulations with varying material and boundary condition parameters.
|
| 60 |
+
|
| 61 |
+
### Dataset Summary
|
| 62 |
+
|
| 63 |
+
The Unsteady Heat dataset provides numerical simulations of transient heat transfer in a 2D domain with parametrized material properties and boundary conditions. The dataset includes temporal dynamics of temperature fields, making it ideal for time-dependent reduced-order modeling, dynamic system identification, and spatiotemporal machine learning applications.
|
| 64 |
+
|
| 65 |
+
## Dataset Structure
|
| 66 |
+
|
| 67 |
+
### Data Instances
|
| 68 |
+
|
| 69 |
+
The dataset consists of three configurations:
|
| 70 |
+
|
| 71 |
+
- **geometry**: Mesh information (single geometry for all simulations)
|
| 72 |
+
- **snapshots**: Time-series of temperature field solutions
|
| 73 |
+
- **parameters**: Material and boundary condition parameters for each simulation
|
| 74 |
+
|
| 75 |
+
### Data Fields
|
| 76 |
+
|
| 77 |
+
#### Geometry Configuration
|
| 78 |
+
- `node_coordinates_x`: Sequence of x-coordinates of mesh nodes (float64)
|
| 79 |
+
- `node_coordinates_y`: Sequence of y-coordinates of mesh nodes (float64)
|
| 80 |
+
- `connectivity`: Sequence of element connectivity (triangular elements, int32)
|
| 81 |
+
|
| 82 |
+
#### Snapshots Configuration
|
| 83 |
+
- `temperature_dynamics`: Time series of temperature fields (2D array: time steps × nodes) (float64)
|
| 84 |
+
|
| 85 |
+
#### Parameters Configuration
|
| 86 |
+
- `mu1`: First parameter characterizing material properties or boundary conditions (float64)
|
| 87 |
+
- `mu2`: Second parameter characterizing material properties or boundary conditions (float64)
|
| 88 |
+
|
| 89 |
+
### Data Splits
|
| 90 |
+
|
| 91 |
+
- `default`: Contains all simulations
|
| 92 |
+
|
| 93 |
+
## Dataset Creation
|
| 94 |
+
|
| 95 |
+
### Source Data
|
| 96 |
+
|
| 97 |
+
The dataset was generated using finite element simulations of the unsteady heat equation with time-varying boundary conditions or heat sources. Each simulation captures the temporal evolution of the temperature field.
|
| 98 |
+
|
| 99 |
+
### Preprocessing
|
| 100 |
+
|
| 101 |
+
Temperature solutions are stored as 2D arrays where the first dimension represents time steps and the second dimension represents spatial nodes. This allows efficient access to both spatial snapshots at specific times and temporal evolution at specific locations.
|
| 102 |
+
|
| 103 |
+
## Usage
|
| 104 |
+
|
| 105 |
+
```python
|
| 106 |
+
from datasets import load_dataset
|
| 107 |
+
import numpy as np
|
| 108 |
+
import matplotlib.pyplot as plt
|
| 109 |
+
import matplotlib.tri as mtri
|
| 110 |
+
|
| 111 |
+
# Load geometry
|
| 112 |
+
ds_geom = load_dataset("SISSAmathLab/unsteady-heat", name="geometry")
|
| 113 |
+
|
| 114 |
+
# Load snapshots
|
| 115 |
+
ds_data = load_dataset("SISSAmathLab/unsteady-heat", name="snapshots")
|
| 116 |
+
|
| 117 |
+
# Load parameters
|
| 118 |
+
ds_params = load_dataset("SISSAmathLab/unsteady-heat", name="parameters")
|
| 119 |
+
|
| 120 |
+
# Access temporal dynamics for simulation 20
|
| 121 |
+
temp_dynamics = np.array(ds_data['default']['temperature_dynamics'][20])
|
| 122 |
+
# temp_dynamics.shape = (num_timesteps, num_nodes)
|
| 123 |
+
|
| 124 |
+
# Visualize temperature at final time step
|
| 125 |
+
pts_x = np.asarray(ds_geom['default']['node_coordinates_x']).flatten()
|
| 126 |
+
pts_y = np.asarray(ds_geom['default']['node_coordinates_y']).flatten()
|
| 127 |
+
connectivity = ds_geom['default']['connectivity'][0]
|
| 128 |
+
final_temperature = temp_dynamics[-1] # Last time step
|
| 129 |
+
|
| 130 |
+
mu1 = ds_params['default']['mu1'][20]
|
| 131 |
+
mu2 = ds_params['default']['mu2'][20]
|
| 132 |
+
|
| 133 |
+
triang = mtri.Triangulation(pts_x, pts_y, connectivity)
|
| 134 |
+
plt.tripcolor(triang, final_temperature, cmap='hot')
|
| 135 |
+
plt.colorbar(label='Temperature')
|
| 136 |
+
plt.title(f'Unsteady Heat (μ₁={mu1:.3f}, μ₂={mu2:.3f}) - Final Time')
|
| 137 |
+
plt.xlabel('x')
|
| 138 |
+
plt.ylabel('y')
|
| 139 |
+
plt.axis('equal')
|
| 140 |
+
plt.show()
|
| 141 |
+
```
|
| 142 |
+
|
| 143 |
+
|
| 144 |
+
## Contact
|
| 145 |
+
|
| 146 |
+
For questions or issues, please contact SISSA mathLab.
|