... | ... | @@ -7,7 +7,7 @@ SLIM is able to predict the position of one (or several) particle(s) from the hy |
|
|
Useful import
|
|
|
|
|
|
```python
|
|
|
from dgpy.scripts import slimPost
|
|
|
import slimPost
|
|
|
import slimPre
|
|
|
```
|
|
|
|
... | ... | @@ -43,13 +43,16 @@ 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```)
|
|
|
- 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
|
|
|
- Identification of the particle (default: each particle is identified depending on the source)
|
|
|
|
|
|
```python
|
|
|
tracker.addParticleAtPoint(-5.13492e6,3.47109e6, 200, 0, 1)
|
|
|
tracker.addParticleAtPoint(-4.95992e6,4.57734e6, 200, 0, 2)
|
|
|
tracker.addParticleAtPoint(-5.13492e6,3.47109e6, 200, 0, 1, 0, 1)
|
|
|
tracker.addParticleAtPoint(-4.95992e6,4.57734e6, 200, 0, 2, 0, 2)
|
|
|
for i in range(100):
|
|
|
tracker.addParticleAtPoint(-5.04742e6,3.91484e6, 50,i,1, 0, i+2)
|
|
|
```
|
|
|
|
|
|
Launch the simulation
|
... | ... | |