File size: 2,242 Bytes
30d9ed4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ae7f433
 
30d9ed4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
size_categories:
- n<1K
---
# Fluid cube dataset

The Fluid Cube dataset contains 100 fluid dynamics simulations of a
fluid block flowing inside a unit cube domain. For each simulation,
the fluid block is set with different initial shape, position,
velocity, and fluid viscosity.

For more information on how the dataset was generated look a [this
blog post](https://inductiva.ai/blog/article/fluid-cube-dataset). The
dataset is the same as the one in the blog post but wrapped in
HuggingFace's `datasets` library.

# Versions

1. `1000_simulations`: The exact same dataset as presented in [this
   blog post](https://inductiva.ai/blog/article/fluid-cube-dataset).
2. `10_simulations`: A subset of the previous the `1000_simulations`
   dataset. Use for quick testing.

# Usage

To use the dataset just use:

```python
dataset = datasets.load_dataset('inductiva/fluid_cube', version='10_simulations', split='train')
```

The dataset has several columns:

```python
['block_position', 'block_dimensions', 'fluid_volume', 'block_velocity',
 'block_velocity_magnitude', 'kinematic_viscosity', 'density', 'tank_dimensions',
 'time_max', 'time_step', 'particle_radius', 'number_of_fluid_particles', 'simulation_time_steps']
```

The most important of which is the `simulation_time_steps` which is a
list of length equal to the number of time steps in the
simulation. Each element on the list is an array with shape
`(num_particles, 6)` that, on each row `i`, has first the
velocity in the x, y and z axis and secondly the position of the particle `i` in
the x, y and z axis.

# Dataset columns

* `block_position`: The Initial position of the block;
* `block_dimensions`: The dimensions of the block on each axis;
* `fluid_volume`: Volume of the fluid;
* `block_velocity`: The initial velocity of the block;
* `block_velocity_magnitude`: Initial velocity magnitude;
* `kinematic_viscosity`: Viscosity of the fluid;
* `density`: Fluid density;
* `tank_dimensions`: The dimensions of the tank where the fluid is contained;
* `time_max`: Time, in seconds, of the simulation;
* `time_step`: Elapsed time between each time steps in the simulation;
* `particle_radius`: Radius of the particles;
* `number_of_fluid_particles`: Number of particles;