... | ... | @@ -47,7 +47,25 @@ Set the open boundaries |
|
|
tracker.set_open_boundary_condition(["mexico","atlantic_east","atlantic_north"])
|
|
|
```
|
|
|
|
|
|
Add particle at one point of the domain with the following arguments
|
|
|
Create the reef map with the following arguments
|
|
|
- Mesh file whose field value is 1 at reefs and 0 elsewhere
|
|
|
- mesh and data projection
|
|
|
|
|
|
```python
|
|
|
tracker.create_reef_map(self,reef_mesh, '+proj=utm +ellps=WGS84 +zone=17 +north', '+proj=latlong +ellps=WGS84', 'output/particles/coord.dat', 'output/particles/')
|
|
|
```
|
|
|
|
|
|
Add particles with a map
|
|
|
- The reef map created with tracker.create_reef_map
|
|
|
- The number of particles seeded per km^2
|
|
|
- The minimum number of particle per reef
|
|
|
- TBD
|
|
|
|
|
|
```python
|
|
|
tracker.add_particle_with_dof(reef_map, concentration, particle_min_number_per_reef, surprise)
|
|
|
```
|
|
|
|
|
|
Add particle(s) at one point of the domain with the following arguments
|
|
|
- Position along the x axis
|
|
|
- Position along the y axis
|
|
|
- Number of particle(s) seeded at this location
|
... | ... | @@ -62,7 +80,19 @@ 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, i+2, 0, i+2)
|
|
|
|
|
|
```
|
|
|
|
|
|
Set the settling properties
|
|
|
|
|
|
```python
|
|
|
tracker.set_settling_over_which_reefs(2,10)
|
|
|
tracker.set_competent_settling(2, 100, 0.348, 0)
|
|
|
```
|
|
|
|
|
|
Set the mortality rate
|
|
|
|
|
|
```python
|
|
|
tracker.set_mortality(1, 0.054,0,0
|
|
|
```
|
|
|
|
|
|
Launch the simulation
|
... | ... | |