... | ... | @@ -130,22 +130,44 @@ for i in range(100): |
|
|
```
|
|
|
|
|
|
Set the settling properties
|
|
|
- settle over shallow (0), deep (1) or both (2) reefs (here ```2```)
|
|
|
- number of shallow reefs (taken following ID order, here ```10```)
|
|
|
|
|
|
```python
|
|
|
tracker.set_settling_over_which_reefs(2,10)
|
|
|
```
|
|
|
|
|
|
- number of days before larvae could become competent (here ```2```)
|
|
|
- number of days after which larvae are no longer competent (here ```100```)
|
|
|
- Competence acquisition rate (per days, here ```0.348```)
|
|
|
- Competence loss rate (per days, here ```0```)
|
|
|
|
|
|
```python
|
|
|
tracker.set_competent_settling(2, 100, 0.348, 0)
|
|
|
```
|
|
|
|
|
|
Set the mortality rate
|
|
|
- mortality mode (0: mortality off, 1: constant mortality, 2: Weibull mortality, here ```1```)
|
|
|
- constant mortality rate (per day, here ```0.054```)
|
|
|
- Weibull lambda parameter (here ```0```)
|
|
|
- Weibull nu parameter (here ```0```)
|
|
|
|
|
|
```python
|
|
|
tracker.set_mortality(1, 0.054, 0, 0)
|
|
|
```
|
|
|
|
|
|
Set the connectivity matrices export
|
|
|
- export connectivity matrix every ... steps (here ```48```)
|
|
|
|
|
|
```python
|
|
|
tracker.set_mortality(1, 0.054,0,0
|
|
|
tracker.print_connectivity_matrix(48)
|
|
|
```
|
|
|
|
|
|
Launch the simulation
|
|
|
- export particle positions every ... steps (here ```4```)
|
|
|
|
|
|
```python
|
|
|
tracker.loop(1)
|
|
|
tracker.loop(4)
|
|
|
```
|
|
|
|
|
|
# Tidal components
|
... | ... | |