Skip to content

Commit 5e082cf

Browse files
committed
Minor cosmetics
1 parent 9c96629 commit 5e082cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DOCUMENTATION.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ By now you're already familiar with the [additional boundary types](#initial-and
298298
- But the [`PARTICLES`](src/defines.hpp) extension allows to add particles to the simulation, either as passive tracers or as 2-way-coupled particles that can do floating/sedimentation.
299299
- For passive tracers, only enable the [`PARTICLES`](src/defines.hpp) extension, and in the [LBM constructor](#the-lbm-class) simply add the particle count:
300300
```c
301-
LBM lbm(Nx, Ny, Nz, nu, 50000); // this will create 50000 particles
301+
LBM lbm(Nx, Ny, Nz, nu, 50000u); // this will create 50000 particles
302302
```
303303
- Then, in [initialization](#initial-and-boundary-conditions), make a loop over all particles (outside of the initialization loop that iterates over all grid cells):
304304
```c
@@ -311,7 +311,7 @@ By now you're already familiar with the [additional boundary types](#initial-and
311311
- Note that the position (`0`|`0`|`0`) for particles corresponds to the simulation box center.
312312
- For 2-way-coupled particles, additionally enable the [`VOLUME_FORCE`](src/defines.hpp) and [`FORCE_FIELD`](src/defines.hpp) extensions, and in the [LBM constructor](#the-lbm-class) add the particle density ([in LBM units](#unit-conversion)) unequal to `1`:
313313
```c
314-
LBM lbm(Nx, Ny, Nz, nu, 50000, 1.2f); // this will create 50000 particles that are more dense than the fluid and will sink to the bottom
314+
LBM lbm(Nx, Ny, Nz, nu, 50000u, 1.2f); // this will create 50000 particles that are more dense than the fluid and will sink to the bottom
315315
```
316316
317317
<br>

0 commit comments

Comments
 (0)