ndemo commited on
Commit
7d1ca59
·
verified ·
1 Parent(s): cddbc20

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +85 -0
README.md CHANGED
@@ -51,3 +51,88 @@ configs:
51
  - split: default
52
  path: snapshots/default-*
53
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  - split: default
52
  path: snapshots/default-*
53
  ---
54
+
55
+ # Graetz Problem Dataset
56
+ ## Dataset Description
57
+ This dataset contains thermal simulations of the Graetz problem with varying geometric and flow parameters.
58
+
59
+ ### Dataset Summary
60
+ The Graetz dataset provides numerical simulations of heat transfer in a channel with developing thermal boundary layer. The problem is characterized by varying channel geometry (omega2_length) and Péclet number, making it suitable for parametric reduced-order modeling and thermal-fluid analysis.
61
+
62
+ ## Dataset Structure
63
+
64
+ ### Data Instances
65
+ The dataset consists of three configurations:
66
+
67
+ - **geometry**: Mesh information (nodes and connectivity) - varies with geometric parameter
68
+ - **snapshots**: Temperature field solutions
69
+ - **parameters**: Geometric and flow parameters for each simulation
70
+
71
+ ### Data Fields
72
+
73
+ #### Geometry Configuration
74
+ - `node_coordinates_x`: Sequence of x-coordinates of mesh nodes (float64)
75
+ - `node_coordinates_y`: Sequence of y-coordinates of mesh nodes (float64)
76
+ - `connectivity`: Sequence of element connectivity (triangular elements, int32)
77
+
78
+ #### Snapshots Configuration
79
+ - `temperature`: Temperature field at each node (float64)
80
+
81
+ #### Parameters Configuration
82
+ - `omega2_length`: Geometric parameter defining the channel configuration (float64)
83
+ - `peclet`: Péclet number characterizing the heat transfer regime (float64)
84
+
85
+ ### Data Splits
86
+
87
+ - `default`: Contains all simulations with varying parameters
88
+
89
+ ## Dataset Creation
90
+
91
+ ### Source Data
92
+
93
+ The dataset was generated using finite element simulations of the convection-diffusion equation representing the Graetz problem. The mesh geometry varies with the omega2_length parameter, making this a parametrized geometry problem.
94
+
95
+ ### Preprocessing
96
+
97
+ Each simulation has its own mesh corresponding to the geometric parameter value. Solutions are stored as 1D arrays corresponding to the nodal values on each respective mesh.
98
+
99
+ ## Usage
100
+
101
+ ```python
102
+ from datasets import load_dataset
103
+ import numpy as np
104
+ import matplotlib.pyplot as plt
105
+ import matplotlib.tri as mtri
106
+
107
+ # Load geometry
108
+ ds_geom = load_dataset("SISSAmathLab/graetz", name="geometry")
109
+
110
+ # Load snapshots
111
+ ds_data = load_dataset("SISSAmathLab/graetz", name="snapshots")
112
+
113
+ # Load parameters
114
+ ds_params = load_dataset("SISSAmathLab/graetz", name="parameters")
115
+
116
+ # Visualize temperature distribution for simulation 16
117
+ idx = 16
118
+ pts_x = np.asarray(ds_geom['default']['node_coordinates_x'][idx]).flatten()
119
+ pts_y = np.asarray(ds_geom['default']['node_coordinates_y'][idx]).flatten()
120
+ connectivity = ds_geom['default']['connectivity'][idx]
121
+ temperature = ds_data['default']['temperature'][idx]
122
+
123
+ omega2_length = ds_params['default']['omega2_length'][idx]
124
+ peclet = ds_params['default']['peclet'][idx]
125
+
126
+ triang = mtri.Triangulation(pts_x, pts_y, connectivity)
127
+ plt.tripcolor(triang, temperature, cmap='coolwarm')
128
+ plt.colorbar(label='Temperature')
129
+ plt.title(f'Graetz Problem (ω₂={omega2_length:.2f}, Pe={peclet:.1f})')
130
+ plt.xlabel('x')
131
+ plt.ylabel('y')
132
+ plt.axis('equal')
133
+ plt.show()
134
+ ```
135
+
136
+ ## Contact
137
+
138
+ For questions or issues, please contact SISSA mathLab.