|
| 1 | +# Details about individual drift models |
| 2 | + |
| 3 | +## Harmful Algal Blooms |
| 4 | + |
| 5 | +With the `HarmfulAlgalBloom` model, users can transport an existing bloom forward in time or run backward in time to determine where it originated. |
| 6 | + |
| 7 | +Currently users can model *Pseudo nitzschia* as a near-surface-limited bloom that experiences high mortality when outside viable temperature and salinity ranges. No growth is currently included. This is the start to tracking relative biomass of the particles making up the bloom. |
| 8 | + |
| 9 | +### Biomass and Mortality Framework |
| 10 | + |
| 11 | +The model includes a simple habitat-dependent survival model in which temperature and salinity determine mortality, and biomass evolves according to an exponential decay equation. |
| 12 | + |
| 13 | +#### Environmental Zone Classification |
| 14 | + |
| 15 | +For each particle, the model first evaluates its local temperature and salinity to determine whether environmental conditions fall within a **preferred**, **marginal**, or **lethal** range. This classification is handled by `classify_zone`, which assigns each element to one of: |
| 16 | + |
| 17 | +- `baseline_mortality` (preferred habitat) |
| 18 | +- `medium_mortality` (suboptimal but viable habitat) |
| 19 | +- `high_mortality` (outside survival limits) |
| 20 | + |
| 21 | +Temperature classification uses four thresholds: |
| 22 | + |
| 23 | +- `temperature_pref_min` |
| 24 | +- `temperature_pref_max` |
| 25 | +- `temperature_death_min` |
| 26 | +- `temperature_death_max` |
| 27 | + |
| 28 | +Salinity classification uses an analogous set: |
| 29 | + |
| 30 | +- `salinity_pref_min` |
| 31 | +- `salinity_pref_max` |
| 32 | +- `salinity_death_min` |
| 33 | +- `salinity_death_max` |
| 34 | + |
| 35 | + |
| 36 | +The result is a per-particle assessment of environmental stress. |
| 37 | + |
| 38 | +#### Mortality Rate Selection |
| 39 | + |
| 40 | +The model then assigns each particle a mortality rate according to a tiered decision rule implemented in `choose_mortality_rate`: |
| 41 | + |
| 42 | +1. If **temperature OR salinity** is in a `high_mortality` zone → |
| 43 | + use `mortality_rate_high`. |
| 44 | + |
| 45 | +2. Else, if **either** variable is in a `medium_mortality` zone |
| 46 | + (and neither is high) → |
| 47 | + use `mortality_rate_medium`. |
| 48 | + |
| 49 | +3. Only when **both** temperature and salinity lie in preferred ranges → |
| 50 | + use `mortality_rate_baseline`. |
| 51 | + |
| 52 | +This "worst-condition wins" approach prevents double-counting stress while ensuring that the most limiting factor controls mortality. |
| 53 | + |
| 54 | +The output is an array `mortality_rates` (units: days$^{-1}$). |
| 55 | + |
| 56 | +#### Biomass Evolution |
| 57 | + |
| 58 | +Biomass is updated using an exponential decay formulation. Growth is not yet implemented, so the net rate is purely negative: |
| 59 | + |
| 60 | + |
| 61 | +This corresponds to integrating: |
| 62 | + |
| 63 | +$$ |
| 64 | +\frac{dB}{dt} = (\text{growth_rate} - \text{mortality_rate}) \times B, |
| 65 | +$$ |
| 66 | + |
| 67 | +so biomass decays on a timescale determined by the assigned mortality rate. Particles in lethal zones decay fastest; particles in preferred zones decay slowly (not yet implemented). The solution to the equation is |
| 68 | + |
| 69 | +$$ |
| 70 | +B(t) = B(0) \exp^{(\text{growth_rate} - \text{mortality_rate})t} |
| 71 | +$$ |
| 72 | + |
| 73 | +#### Deactivation of Dead Particles |
| 74 | + |
| 75 | +Once biomass is updated, particles whose biomass falls below the threshold `biomass_dead_threshold` are removed from the simulation (or deactivated). Deactivated particles no longer participate in advection, mixing, or further biological updates, allowing the Lagrangian population to thin naturally in unfavorable environments. |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | +### Next steps: |
| 80 | +* add growth |
| 81 | +* add medium level and baseline mortality |
| 82 | +* add Alexandrium catenella and Dinophysis spp. |
| 83 | +* add vertical behavior framework - Implement a shared parameterized vertical-movement function (band / diel_band) |
| 84 | + * Pseudo-nitzschia: shallow band |
| 85 | + * Alexandrium: diel vertical migration (shallow band by day, deeper band by night) |
| 86 | + * Dinophysis: mid-depth band (around the pycnocline) |
0 commit comments