File size: 4,212 Bytes
ef1530e 502bd0d ef1530e 0add66c ef1530e 0add66c ef1530e 0add66c 8afb18b 394dc4e 8afb18b 394dc4e 8afb18b 394dc4e 502bd0d a3f1a9b 502bd0d ef1530e 8afb18b 502bd0d ef1530e 34388f0 | 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 138 139 140 141 142 143 144 | ---
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: 75692
num_examples: 1
download_size: 48029
dataset_size: 75692
- config_name: parameters
features:
- name: viscosity
dtype: float64
splits:
- name: default
num_bytes: 4000
num_examples: 500
download_size: 5460
dataset_size: 4000
- config_name: snapshots
features:
- name: velocity_x
list: float64
- name: velocity_y
list: float64
- name: pressure
list: float64
splits:
- name: default
num_bytes: 19674000
num_examples: 500
download_size: 19644566
dataset_size: 19674000
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-*
---
# Navier-Stokes Flow Around Cylinder Dataset
## Dataset Description
This dataset contains computational fluid dynamics simulations of incompressible flow around a cylinder with varying viscosity parameters.
### Dataset Summary
The Navier-Stokes Cylinder dataset provides numerical simulations of viscous fluid flow around a circular cylinder. The dataset includes velocity fields (x and y components) and pressure fields, making it ideal for fluid dynamics research, reduced-order modeling, and machine learning applications in CFD.
## Dataset Structure
### Data Instances
The dataset consists of three configurations:
- **geometry**: Mesh information (nodes and connectivity)
- **snapshots**: Flow field solutions (velocity and pressure)
- **parameters**: Viscosity 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
- `velocity_x`: Velocity field in x-direction at each node (float64)
- `velocity_y`: Velocity field in y-direction at each node (float64)
- `pressure`: Pressure field at each node (float64)
#### Parameters Configuration
- `viscosity`: Kinematic viscosity parameter for each simulation (float64)
### Data Splits
- `default`: Contains all simulations
## Dataset Creation
### Source Data
The dataset was generated using finite element simulations of the incompressible Navier-Stokes equations with varying viscosity parameters. The flow configuration represents flow around a circular cylinder, a classic benchmark problem in computational fluid dynamics.
### Preprocessing
Solutions are stored with velocity components and pressure as separate 1D arrays corresponding to the nodal values on the mesh. The raw data is reshaped from column-major (Fortran) order.
## 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/navier-stokes-cylinder", name="geometry")
# Load snapshots
ds_data = load_dataset("SISSAmathLab/navier-stokes-cylinder", name="snapshots")
# Load parameters
ds_params = load_dataset("SISSAmathLab/navier-stokes-cylinder", name="parameters")
# Visualize velocity magnitude 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]
vel_x = np.asarray(ds_data['default']['velocity_x'][0])
vel_y = np.asarray(ds_data['default']['velocity_y'][0])
velocity_magnitude = np.sqrt(vel_x**2 + vel_y**2)
triang = mtri.Triangulation(pts_x, pts_y, connectivity)
plt.tripcolor(triang, velocity_magnitude, cmap='viridis')
plt.colorbar(label='Velocity Magnitude')
plt.title('Navier-Stokes - Flow Around Cylinder')
plt.xlabel('x')
plt.ylabel('y')
plt.axis('equal')
plt.show()
```
## Contact
For questions or issues, please contact SISSA mathLab. |