ndemo commited on
Commit
fa109af
·
verified ·
1 Parent(s): 8331781

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +83 -0
README.md CHANGED
@@ -48,3 +48,86 @@ configs:
48
  - split: default
49
  path: snapshots/default-*
50
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  - split: default
49
  path: snapshots/default-*
50
  ---
51
+ # Airfoil Transonic Flow - Internal Domain Dataset
52
+
53
+ ## Dataset Description
54
+
55
+ This dataset contains transonic flow simulations around an airfoil, focusing on internal flow field quantities with varying Mach number.
56
+
57
+ ### Dataset Summary
58
+
59
+ The Airfoil Transonic Internal dataset provides numerical simulations of compressible transonic flow around an airfoil profile. The dataset focuses on aerodynamic quantities in the flow field surrounding the airfoil, including pressure and velocity distributions in the computational domain, making it valuable for flow field analysis, aerodynamic research, and machine learning applications in computational fluid dynamics.
60
+
61
+ ## Dataset Structure
62
+
63
+ ### Data Instances
64
+
65
+ The dataset consists of three configurations:
66
+
67
+ - **geometry**: Internal domain node coordinates
68
+ - **snapshots**: Flow field solutions in the domain
69
+ - **parameters**: Flow condition parameters (Mach number)
70
+
71
+ ### Data Fields
72
+
73
+ #### Geometry Configuration
74
+ - `node_coordinates_x`: Sequence of x-coordinates of internal domain nodes (float64)
75
+ - `node_coordinates_y`: Sequence of y-coordinates of internal domain nodes (float64)
76
+
77
+ #### Snapshots Configuration
78
+ - `pressure`: Pressure field in the internal domain (float64)
79
+ - `velocity`: Velocity magnitude field in the internal domain (float64)
80
+
81
+ #### Parameters Configuration
82
+ - `mach`: Mach number for each simulation (float64)
83
+
84
+ ### Data Splits
85
+
86
+ - `default`: Contains all simulations with varying Mach numbers
87
+
88
+ ## Dataset Creation
89
+
90
+ ### Source Data
91
+
92
+ The dataset was generated using computational fluid dynamics simulations of the Euler or Reynolds-Averaged Navier-Stokes (RANS) equations for compressible transonic flow around an airfoil. The simulations capture the complex flow phenomena in the transonic regime, including shock waves and expansion regions.
93
+
94
+ ### Preprocessing
95
+
96
+ Internal domain quantities (flow field around the airfoil, excluding the boundary) are included in this dataset. Solutions are stored as 1D arrays corresponding to the nodes in the computational mesh.
97
+
98
+ ## Usage
99
+
100
+ ```python
101
+ from datasets import load_dataset
102
+ import numpy as np
103
+ import matplotlib.pyplot as plt
104
+
105
+ # Load geometry
106
+ ds_geom = load_dataset("SISSAmathLab/airfoil-transonic-internal", name="geometry")
107
+
108
+ # Load snapshots
109
+ ds_data = load_dataset("SISSAmathLab/airfoil-transonic-internal", name="snapshots")
110
+
111
+ # Load parameters
112
+ ds_params = load_dataset("SISSAmathLab/airfoil-transonic-internal", name="parameters")
113
+
114
+ # Visualize pressure field in internal domain
115
+ pts_x = np.asarray(ds_geom['default']['node_coordinates_x']).flatten()
116
+ pts_y = np.asarray(ds_geom['default']['node_coordinates_y']).flatten()
117
+ pressure = ds_data['default']['pressure'][0]
118
+ mach_number = ds_params['default']['mach'][0]
119
+
120
+ plt.figure(figsize=(12, 6))
121
+ plt.scatter(pts_x, pts_y, c=pressure, cmap='RdBu_r', s=1, alpha=0.6)
122
+ plt.colorbar(label='Pressure')
123
+ plt.title(f'Airfoil Flow Field (Mach={mach_number:.2f})')
124
+ plt.xlabel('x')
125
+ plt.ylabel('y')
126
+ plt.axis('equal')
127
+ plt.grid(True, alpha=0.3)
128
+ plt.show()
129
+ ```
130
+
131
+ ## Related Datasets
132
+
133
+ See also: **Airfoil Transonic Boundary** dataset for aerodynamic quantities specifically at the airfoil surface.