Back to home page

darwin3

 
 

    


Warning, /doc/phys_pkgs/darwin_grazing.rst is written in an unsupported language. File is not indexed.

view on githubraw file Latest commit faa67d17 on 2022-01-31 17:00:48 UTC
1d947889e4 Oliv*0001 .. include:: ../defs.hrst
                0002 
                0003 .. _Grazing:
                0004 
                0005 Grazing
                0006 ^^^^^^^
                0007 
                0008 Grazing loss of plankton :math:`j`:
                0009 
                0010 .. math:: G_j = \sum_{z\in\op{pred}} G_{j,z}
                0011 
                0012 where
                0013 
                0014 .. math::
                0015 
                0016    G_{j,z} = g^{\max}_z
                0017           \frac{({p}_{j,z} {c}_j)^s}{A_z}
                0018           \frac{p_z^h}{p_z^h + {k^{{{\text{graz}}}}_z}^h}
faa67d1773 Oliv*0019           (1 - {\mathrm{e}}^{-i_{{{\text{graz}}}} p_z})^{e_{\op{inhib}}}
                0020           f^{{{\text{graz}}}}_z(T)^{e^{\op{graz}}_j}
1d947889e4 Oliv*0021           {c}_z
                0022 
                0023 with
                0024 
faa67d1773 Oliv*0025 .. math:: A_z = \biggl[ \sum_j ({p}_{j,z} {c}_j)^s \biggr]_{\ge c^{\min}_{\op{graz}}}
1d947889e4 Oliv*0026 
faa67d1773 Oliv*0027 .. math:: p_z = \biggl[ \sum_j {p}_{j,z} {c}_j - c^{\min}_{\op{graz}} \biggr]_{\ge 0}
1d947889e4 Oliv*0028 
                0029 :math:`s` is 1 for non-switching and 2 for switching grazers
                0030 (#define :varlink:`DARWIN_GRAZING_SWITCH`). The exponent :math:`h` defaults to
                0031 1.
                0032 
                0033 **Note:** For non-switching grazers (:math:`s=1`), Ben has an additional
                0034 factor
                0035 
                0036 .. math:: \frac{S^{[j]}_z}{S^{{{\text{phy}}}}_z + S^{{\text{zoo}}}_z}
                0037 
                0038 in :math:`G_{j,z}` where
                0039 
                0040 .. math::
                0041 
                0042      S^{{{\text{phy}}}}_z &= \sum_{j\in{{\text{phy}}}} {p}_{j,z} {c}_j
                0043 
                0044      S^{{\text{zoo}}}_z &= \sum_{j\in{{\text{zoo}}}} {p}_{j,z} {c}_j
                0045 
                0046 and :math:`S^{[j]}_z` is the sum for the class plankton :math:`j`
                0047 belongs to. **This is not implemented yet!**
                0048 
                0049 Gains from grazing:
                0050 
                0051 .. math::
                0052 
                0053        g^{{\mathrm{C}}}_z &= \sum_j G_{j,z} a_{j,z} {{\text{reg}}}^{Q{\mathrm{C}}}_z
                0054 
                0055        g^{{\mathrm{P}}}_z &= \sum_j G_{j,z} a_{j,z} {{\text{reg}}}^{Q{\mathrm{P}}}_z Q^{\mathrm{P}}_j
                0056        \qquad\text{if }\op{DARWIN\_ALLOW\_PQUOTA}
                0057 
                0058        &\dots
                0059 
                0060        g^{\op{DOC}} &= \sum_{j,z} G_{j,z} (1 - a_{j,z} {{\text{reg}}}^{Q{\mathrm{C}}}_z) (1 - f^{\text{exp graz}}_{j,z})
                0061 
                0062        g^{\op{DOP}} &= \sum_{j,z} \begin{cases}
                0063          G_{j,z} (1 - a_{j,z} {{\text{reg}}}^{Q{\mathrm{P}}}_z) (1 - f^{\text{exp graz}}_{j,z}) Q^{\mathrm{P}}_j
                0064          &\text{if }\op{DARWIN\_ALLOW\_PQUOTA}
                0065 
                0066          G_{j,z} (R^{{\mathrm{P}}:{\mathrm{C}}}_j - a_{j,z} R^{{\mathrm{P}}:{\mathrm{C}}}_z) (1 - f^{\text{exp graz}}_{j,z})
                0067          &\text{else}
                0068        \end{cases}
                0069 
                0070        &\dots
                0071 
                0072        g^{\op{POC}} &= \sum_{j,z} G_{j,z} (1 - a_{j,z} {{\text{reg}}}^{Q{\mathrm{C}}}_z) f^{\text{exp graz}}_{j,z}
                0073 
                0074        g^{\op{POP}} &= \sum_{j,z} \begin{cases}
                0075          G_{j,z} (1 - a_{j,z} {{\text{reg}}}^{Q{\mathrm{P}}}_z) f^{\text{exp graz}}_{j,z} Q^{\mathrm{P}}_j
                0076          &\text{if }\op{DARWIN\_ALLOW\_PQUOTA}
                0077 
                0078          G_{j,z} (R^{{\mathrm{P}}:{\mathrm{C}}}_j - a_{j,z} R^{{\mathrm{P}}:{\mathrm{C}}}_z) f^{\text{exp graz}}_{j,z}
                0079          &\text{else}
                0080          \end{cases}
                0081 
                0082        &\dots
                0083 
faa67d1773 Oliv*0084        g^{\op{POSi}} &= \sum_{j,z} \begin{cases}
                0085          G_{j,z} Q^{\op{Si}}_j &\text{if }\op{DARWIN\_ALLOW\_SIQUOTA}
1d947889e4 Oliv*0086 
faa67d1773 Oliv*0087          G_{j,z} R^{{\op{Si}}:{\mathrm{C}}}_j &\text{else}
                0088          \end{cases}
                0089 
                0090        g^{\op{PIC}} &= \sum_{j} G_{j} R^{{\text{PIC:POC}}}_j
1d947889e4 Oliv*0091 
                0092 where
                0093 
                0094 .. math::
                0095 
                0096        {{\text{reg}}}^{Q{\mathrm{P}}}_z &= \left( \left[ \frac{Q^{{\mathrm{P}}\max}_z - Q^{{\mathrm{P}}}_z}
                0097                                    {Q^{{\mathrm{P}}\max}_z - Q^{{\mathrm{P}}\min}_z}
                0098                        \right]_0^1 \right)^{h_{\op{G}}}
                0099 
                0100        &\dots
                0101 
                0102        {{\text{reg}}}^{Q{\mathrm{C}}}_z &= \left( \min\left\{
                0103              \frac{Q^{{\mathrm{P}}}_z - Q^{{\mathrm{P}}\min}_z}{Q^{{\mathrm{P}}\max}_z - Q^{{\mathrm{P}}\min}_z},
                0104              \frac{Q^{{\mathrm{N}}}_z - Q^{{\mathrm{N}}\min}_z}{Q^{{\mathrm{N}}\max}_z - Q^{{\mathrm{N}}\min}_z},
                0105              \frac{Q^{\op{Fe}}_z - Q^{\op{Fe}\min}_z}{Q^{\op{Fe}\max}_z - Q^{\op{Fe}\min}_z}
                0106              \right\}_0^1 \right)^{h_{\op{G}}}
                0107 
                0108        & \qquad\text{(only quota elements)}
                0109 
                0110 and :math:`h_{\op{G}}` is the Hill number for grazing (:varlink:`hillnumGraz`,
                0111 default 1).
                0112 
faa67d1773 Oliv*0113 
                0114 Implementation
                0115 ''''''''''''''
                0116 
                0117 In order to reduce the number of double (predator-prey) sums as much as
                0118 possible while still maintaining some code readability, the above sums are
                0119 computed in :filelink:`~pkg/darwin/darwin_plankton.F` via :math:`G_j`,
                0120 :math:`g^{\mathrm{C}}_z` and the following auxiliary sums:
                0121 
                0122 .. math::
                0123 
                0124    G^{\exp}_j &= \sum_z G_{j,z} f^{\text{exp graz}}_{j,z}
                0125    \;,
                0126 
                0127    g^{\mathrm{C}\exp}_z &= \sum_j G_{j,z} a_{j,z}
                0128               {{\text{reg}}}^{Q{\mathrm{C}}}_z f^{\text{exp graz}}_{j,z}
                0129    \;,
                0130 
                0131 and for quotas elements additionally :math:`g^{\mathrm{P}}_z`, ..., and
                0132 
                0133 .. math::
                0134 
                0135    g^{\mathrm{P}\exp}_z &= \sum_j G_{j,z} a_{j,z}
                0136        {{\text{reg}}}^{Q{\mathrm{P}}}_z Q^{\mathrm{P}}_j
                0137        f^{\text{exp graz}}_{j,z}
                0138 
                0139    &\ldots
                0140 
                0141 The remaining terms are then computed as
                0142 
                0143 .. math::
                0144 
                0145    g^{\op{POC}} &= \sum_j G^{\exp}_j - \sum_z g^{\mathrm{C}\exp}_z
                0146 
                0147    g^{\op{DOC}} &= g^{\op{OC}} - g^{\op{POC}}
                0148 
                0149 where
                0150 
                0151 .. math::
                0152 
                0153    g^{\op{OC}} = \sum_j G_j - \sum_z g^{\mathrm{C}}_z
                0154    \;.
                0155 
                0156 For other non-quota elements:
                0157 
                0158 .. math::
                0159 
                0160    g^{\op{POP}} &= \sum_j G^{\exp}_j R^{\mathrm{P}:\mathrm{C}}_j
                0161                  - \sum_z g^{\mathrm{C}\exp}_z R^{\mathrm{P}:\mathrm{C}}_z
                0162 
                0163    g^{\op{DOP}} &= g^{\op{OP}} - g^{\op{POP}}
                0164 
                0165 where
                0166 
                0167 .. math::
                0168 
                0169    g^{\op{OP}} = \sum_j G_j R^{\mathrm{P}:\mathrm{C}}_j
                0170                 - \sum_z g^{\mathrm{C}}_z R^{\mathrm{P}:\mathrm{C}}_z
                0171    \;.
                0172 
                0173 For quota elements:
                0174 
                0175 .. math::
                0176 
                0177    g^{\op{POP}} &= \sum_j G^{\exp}_j Q^{\mathrm{P}}_j
                0178                  - \sum_z g^{\mathrm{P}\exp}_z
                0179 
                0180    g^{\op{DOP}} &= g^{\op{OP}} - g^{\op{POP}}
                0181 
                0182 where
                0183 
                0184 .. math::
                0185 
                0186    g^{\op{OP}} = \sum_j G_j Q^{\mathrm{P}}_j
                0187                 - \sum_z g^{\mathrm{P}}_z
                0188    \;.
                0189 
                0190 
                0191 Runtime Parameters
                0192 ''''''''''''''''''
                0193 
                0194 Grazing parameters are given in :numref:`tab_phys_pkg_darwin_grazing_params`.
                0195 
                0196 .. csv-table:: Grazing parameters
                0197    :delim: &
                0198    :widths: 15,19,10,20,13,23
                0199    :class: longtable
                0200    :header: Trait, Param, Sym, Default, Units, Description
                0201    :name: tab_phys_pkg_darwin_grazing_params
                0202 
                0203    :varlink:`grazemax`  & :varlink:`a_grazemax`     & :math:`g^{\op{max}}_z`       & 21.9/day·V\ :sup:`-0.16` & s\ :sup:`-1`         & maximum grazing rate
                0204    :varlink:`kgrazesat` & :varlink:`a_kgrazesat`    & :math:`k^{\op{graz}}_z`      & 1.0                      & mmol C m\ :sup:`-3`  & grazing half-saturation concentration
                0205    :varlink:`tempGraz`  & :varlink:`grp_tempGraz`   & :math:`e^{\op{graz}}_j`      & 1                        &                      & 1: grazing is temperature dependent, 0: turn dependence off
                0206                         & :varlink:`inhib_graz`     & :math:`i_{\op{graz}}`        & 1.0                      & m\ :sup:`3` / mmol C & inverse decay scale for grazing inhibition
                0207                         & :varlink:`inhib_graz_exp` & :math:`e_{\op{inhib}}`       & 0.0                      &                      & exponent for grazing inhibition (0 to turn off inhibition)
                0208                         & :varlink:`hillnumGraz`    & :math:`h_{\op{G}}`           & 1.0                      &                      & exponent for limiting quota uptake in grazing
                0209                         & :varlink:`hollexp`        & :math:`h`                    & 1.0                      &                      & grazing exponential 1= "Holling 2", 2= "Holling 3"
                0210                         & :varlink:`phygrazmin`     & :math:`c^{\min}_{\op{graz}}` & 120E-10                  & mmol C m\ :sup:`-3`  & minimum total prey conc for grazing to occur
                0211 
                0212 See :numref:`tab_phys_pkg_darwin_uptake` for stochiometry and quota-related parameters.
                0213 
                0214 
                0215 .. csv-table:: Trait matrices for grazing; indices (prey, pred); unitless
                0216    :delim: &
                0217    :widths: auto
                0218    :class: longtable
                0219    :header: Trait, Param, Symbol, Default, Description
                0220 
                0221    :varlink:`palat`              & see below                         & :math:`p_{j,z}`                     & 0   & palatability matrix
                0222    :varlink:`asseff`             & :varlink:`grp_ass_eff`            & :math:`a_{j,z}`                     & 0.7 & assimilation efficiency matrix
                0223    :varlink:`ExportFracPreyPred` & :varlink:`grp_ExportFracPreyPred` & :math:`f^{\op{exp}\op{graz}}_{j,z}` & 0.5 & fraction of unassimilated prey becoming particulate organic matter
                0224 
                0225 If :varlink:`DARWIN_ALLOMETRIC_PALAT` is defined, palatabilities are set
                0226 allometrically,
                0227 
                0228 .. math::
                0229 
                0230    p_{j,z} = \left[ \frac{1}{2\sigma_{\op{pp}}}
                0231                     \exp\left\{
                0232                       -\frac{(\ln(V_z/V_j/r_{\op{opt}}))^2}{2\sigma_{\op{pp}}^2}
                0233                     \right\}
                0234              \right]_{\ge p_{\min}}
                0235 
                0236 :varlink:`grp_pred` and :varlink:`grp_prey` should be set to select which
                0237 plankton groups can graze or be grazed.
                0238 
                0239 
                0240 .. csv-table:: Allometric palatability trait parameters (unitless)
                0241    :delim: &
                0242    :widths: 20,15,15,50
                0243    :class: longtable
                0244    :header: Param, Symbol, Default, Description
                0245 
                0246    :varlink:`a <a_ppOpt>`,\ :varlink:`b_ppOpt` & :math:`r_{\op{opt}}`     & 1024·V\ :sup:`0` & optimum predator-prey ratio
                0247    :varlink:`a_ppSig`     & :math:`\sigma_{\op{pp}}` & 1                & width of predator-prey curve
                0248    :varlink:`palat_min`   & :math:`p_{\min}`         & 0                & min non-zero palatability, smaller :varlink:`palat` are set to 0 (was 1D-4 in quota)
                0249    :varlink:`grp_pred`    &                          & 0                & 1: can graze, 0: not
                0250    :varlink:`grp_prey`    &                          & 1                & 1: can be grazed, 0: not
                0251