... | ... | @@ -34,9 +34,10 @@ Create a ```Particle_tracker``` object with the following arguments |
|
|
- The number of iterations (here ```118```)
|
|
|
- The number of period (if the hydrodynamic is periodic, here ```1```)
|
|
|
- Time step between each iteration (here ```3600``` because we exported the results 1 times out of 4 time steps during the hydrodynamic run)
|
|
|
- Path for the output files
|
|
|
|
|
|
```python
|
|
|
tracker = slimPost.Particle_tracker(mesh, "output", path_bathy, 50, 118 ,1, 3600)
|
|
|
tracker = slimPost.Particle_tracker(mesh, "output", path_bathy, 50, 118 ,1, 3600, path_output = "output/particles")
|
|
|
```
|
|
|
|
|
|
Set the open boundaries
|
... | ... | @@ -50,16 +51,17 @@ Add particle at one point of the domain with the following arguments |
|
|
- Position along the y axis
|
|
|
- Number of particle(s) seeded at this location
|
|
|
- Index of the time step at which the particle is seeded
|
|
|
- Status of the particle(s) (dead or alive (0))
|
|
|
- Identification of the source
|
|
|
- Status of the particle(s) (dead (>0) or alive (0))
|
|
|
- Identification of the particle (default: each particle is identified depending on the source)
|
|
|
|
|
|
```python
|
|
|
tracker.add_particle_at_point(598275, 2.69158e6, 200, 0, 1, 0, 1)
|
|
|
tracker.add_particle_at_point(904648,2.66827e6, 200, 0, 2, 0, 2)
|
|
|
tracker.add_particle_at_point(904648, 2.66827e6, 200, 0, 2, 0, 2)
|
|
|
for i in range(100):
|
|
|
tracker.add_particle_at_point(598275, 2.69158e6, 1, i, 1, 0, 1)
|
|
|
tracker.add_particle_at_point(623320, 3.01958e6, 50,i,1, 0, i+2)
|
|
|
tracker.add_particle_at_point(623320, 3.01958e6, 50,i, i+2, 0, i+2)
|
|
|
|
|
|
```
|
|
|
|
|
|
Launch the simulation
|
... | ... | |