... | ... | @@ -39,6 +39,12 @@ Create a ```Particle_tracker``` object with the following arguments |
|
|
tracker = slimPost.Particle_tracker(mesh, "output", path_bathy, 50, 118 ,1, 3600)
|
|
|
```
|
|
|
|
|
|
Set the open boundaries
|
|
|
|
|
|
```python
|
|
|
tracker.set_open_boundaries(["mexico","atlantic"])
|
|
|
```
|
|
|
|
|
|
Add particle at one point of the domain with the following arguments
|
|
|
- Position along the x axis (here ```-5.13492e6```)
|
|
|
- Position along the y axis (here ```3.47109e6```)
|
... | ... | @@ -49,10 +55,10 @@ Add particle at one point of the domain with the following arguments |
|
|
- Identification of the particle (default: each particle is identified depending on the source)
|
|
|
|
|
|
```python
|
|
|
tracker.addParticleAtPoint(-5.13492e6,3.47109e6, 200, 0, 1, 0, 1)
|
|
|
tracker.addParticleAtPoint(-4.95992e6,4.57734e6, 200, 0, 2, 0, 2)
|
|
|
tracker.add_particle_at_point(655957,3.14555e6, 200, 0, 1, 0, 1)
|
|
|
tracker.add_particle_at_point(904648,2.66827e6, 200, 0, 2, 0, 2)
|
|
|
for i in range(100):
|
|
|
tracker.addParticleAtPoint(-5.04742e6,3.91484e6, 50,i,1, 0, i+2)
|
|
|
tracker.add_particle_at_point(718758,2.50247e6, 50,i,1, 0, i+2)
|
|
|
```
|
|
|
|
|
|
Launch the simulation
|
... | ... | |