Commit
·
30d9ed4
1
Parent(s):
70159fb
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
size_categories:
|
| 3 |
+
- n<1K
|
| 4 |
+
---
|
| 5 |
+
# Fluid cube dataset
|
| 6 |
+
|
| 7 |
+
The Fluid Cube dataset contains 100 fluid dynamics simulations of a
|
| 8 |
+
fluid block flowing inside a unit cube domain. For each simulation,
|
| 9 |
+
the fluid block is set with different initial shape, position,
|
| 10 |
+
velocity, and fluid viscosity.
|
| 11 |
+
|
| 12 |
+
For more information on how the dataset was generated look a [this
|
| 13 |
+
blog post](https://inductiva.ai/blog/article/fluid-cube-dataset). The
|
| 14 |
+
dataset is the same as the one in the blog post but wrapped in
|
| 15 |
+
HuggingFace's `datasets` library.
|
| 16 |
+
|
| 17 |
+
# Versions
|
| 18 |
+
|
| 19 |
+
1. `1000_simulations`: The exact same dataset as presented in [this
|
| 20 |
+
blog post](https://inductiva.ai/blog/article/fluid-cube-dataset).
|
| 21 |
+
2. `10_simulations`: A subset of the previous the `1000_simulations`
|
| 22 |
+
dataset. Use for quick testing.
|
| 23 |
+
|
| 24 |
+
# Usage
|
| 25 |
+
|
| 26 |
+
To use the dataset just use:
|
| 27 |
+
|
| 28 |
+
```python
|
| 29 |
+
dataset = datasets.load_dataset('inductiva/fluid_cube', version='10_simulations', split='train')
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
The dataset has several columns:
|
| 33 |
+
|
| 34 |
+
```python
|
| 35 |
+
['block_position', 'block_dimensions', 'fluid_volume', 'block_velocity',
|
| 36 |
+
'block_velocity_magnitude', 'kinematic_viscosity', 'density', 'tank_dimensions',
|
| 37 |
+
'time_max', 'time_step', 'particle_radius', 'number_of_fluid_particles', 'simulation_time_steps']
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
The most important of which is the `simulation_time_steps` which is a
|
| 41 |
+
list of length equal to the number of time steps in the
|
| 42 |
+
simulation. Each element on the list is an array with shape
|
| 43 |
+
`(num_particles, 6)` that, on each row, has the position of the
|
| 44 |
+
particle in the x, y and z axis and the velocity of the particle in
|
| 45 |
+
the x, y and z axis.
|
| 46 |
+
|
| 47 |
+
# Dataset columns
|
| 48 |
+
|
| 49 |
+
* `block_position`: The Initial position of the block;
|
| 50 |
+
* `block_dimensions`: The dimensions of the block on each axis;
|
| 51 |
+
* `fluid_volume`: Volume of the fluid;
|
| 52 |
+
* `block_velocity`: The initial velocity of the block;
|
| 53 |
+
* `block_velocity_magnitude`: Initial velocity magnitude;
|
| 54 |
+
* `kinematic_viscosity`: Viscosity of the fluid;
|
| 55 |
+
* `density`: Fluid density;
|
| 56 |
+
* `tank_dimensions`: The dimensions of the tank where the fluid is contained;
|
| 57 |
+
* `time_max`: Time, in seconds, of the simulation;
|
| 58 |
+
* `time_step`: Elapsed time between each time steps in the simulation;
|
| 59 |
+
* `particle_radius`: Radius of the particles;
|
| 60 |
+
* `number_of_fluid_particles`: Number of particles;
|
| 61 |
+
|
| 62 |
+
|