! BioCGT processes file
! *********************
! properties of processes:
! name=           fortran variable name for the rate
! description=    e.g. "grazing of zooplankton"
! turnover=       fortran formula for calculating the process turnover [mol/kg or mol/m2]
! equation=       equation which, like a chemical equation, lists reaction agents and products of this process.
!                   example: t_no3 + 1/16*t_po4 -> t_lpp
!                   tracers to the left of the "->" are consumed, tracers to the right of the "->" are produced by this process.
! isActive=       1=active (default); 0=process is switched off
! isOutput=       1=occurs as output in model results; 0=internal use only (default)
! limitation=     TYPE tracer > value else otherProcess
! limitation=     TYPE tracer < value else otherProcess
!                   TYPE = HARD (theta function), MM (Michaelis-Menten), MMQ (quadratic Michaelis-Menten), IV (Ivlev), IVQ (quadratic Ivlev), LIN (linear), TANH (tangens hyperbolicus)
!                   tracer = name of tracer that needs to be present
!                   value = value that needs to be exceeded, may also be a constant or auxiliary
!                   otherProcess = process that takes place instead if this process gets hampered by the availability of "tracer"
!                 several of these lines may exist, the order of them may be relevant for the rate of "otherProcess".
! processType=    type of process, e.g. "propagation", default="standard"
! repaint=        number n of repainting actions to be done by the process, default=0
!                 This line is followed by n lines of this kind:
!   <oldColor> <element> = <newColor>    e.g.: "all  N   = blue "
!                                              "blue P   = none "
!                                              "red  all = green"
! vertLoc=        WAT=z-dependent (default), SED=in the sediment only, SUR=in the surface only, FIS=fish-type behaviour
! feedingEfficiency= name of an auxiliary variable (values 0..1) which tells how much of the food in a certain depth is accessible for the predator with vertLoc=FIS. Relevant for vertLoc=FIS only. Default="1.0"
! comment=        comment, default=""
!
! Process rates are calculated in the given order.
! *************************************************************************************
name        = p_assim_lpp_poc
description = Production of POC by LPP
turnover    = rfr_c * lpp_plus_lpp0 * lr_assim_lpp_poc
comment     = CO2 + H2O -> (CH2O) + O2
equation    = t_dic + h2o -> t_poc + t_o2
***********************
name        = p_assim_spp_poc
description = Production of POC by SPP
turnover    = rfr_c * spp_plus_spp0 * lr_assim_spp_poc
comment     = CO2 + H2O -> (CH2O) + O2
equation    = t_dic + h2o -> t_poc + t_o2
***********************
name        = p_assim_cya_poc
description = Production of POC by CYA
turnover    = rfr_c * cya_plus_cya0 * lr_assim_cya_poc
comment     = CO2 + H2O -> (CH2O) + O2
equation    = t_dic + h2o -> t_poc + t_o2
***********************
name        = p_poc_resp
description = respiration of POC
turnover    = t_poc * r_poc_rec * exp(q10_det_rec * cgt_temp)
comment     = (CH2O) + O2 -> CO2 + H2O
equation    = t_o2 + t_poc -> h2o + t_dic
limitation  = IV t_o2 > o2_min_det_resp
***********************
name        = p_poc_denit
description = recycling of POC using nitrate (denitrification)
turnover    = t_poc*r_poc_rec*exp(q10_det_rec*cgt_temp)
comment     = 106(CH2O)(H3PO4) + 84.8 NO3 + 84.8 H3O ->\\106CO2 + 106 H2O + 42.4 N2 + 127.2 H2O
equation    = t_poc + 0.8*t_no3 + 0.8*h3oplus -> t_dic + 2.2*h2o + 0.4*t_n2
limitation  = IV t_o2 < o2_min_det_resp
limitation  = IV t_no3 > no3_min_det_denit
***********************
name        = p_poc_sulf
description = Mineralization of POC, e-acceptor sulfate (sulfate reduction)
turnover    = t_poc*r_poc_rec*exp(q10_det_rec*cgt_temp)
comment     = 106(CH2O) + 53 SO4 + 106 H3O -> 106 CO2 + 212 H2O + 53 H2S
equation    = t_poc + 0.5*so4 + h3oplus -> t_dic + 0.5*t_h2s + 2*h2o
limitation  = IV t_o2 < o2_min_det_resp
limitation  = IV t_no3 < no3_min_det_denit
***********************
name        = p_lpp_resp_nh4
turnover    = t_lpp*r_lpp_resp
equation    = 0.8125*h3oplus + 6.625*t_o2 + t_lpp -> 7.4375*h2o + rfr_c*t_dic + rfr_p*t_po4 + (1-don_fraction)*t_nh4 + don_fraction*t_don
***********************
name        = p_spp_resp_nh4
turnover    = t_spp*r_spp_resp
equation    = t_spp + 6.625*t_o2 + 0.8125*h3oplus -> don_fraction*t_don + (1-don_fraction)*t_nh4 + rfr_p*t_po4 + rfr_c*t_dic + 7.4375*h2o
***********************
name        = p_cya_resp_nh4
turnover    = t_cya*r_cya_resp
equation    = t_cya + 6.625*t_o2 + 0.8125*h3oplus -> (1-don_fraction)*t_nh4 + don_fraction*t_don + rfr_p*t_po4 + rfr_c*t_dic + 7.4375*h2o
***********************
name        = p_zoo_resp_nh4
equation    = t_zoo + 6.625*t_o2 + 0.8125*h3oplus -> don_fraction*t_don + (1-don_fraction)*t_nh4 + rfr_p*t_po4 + rfr_c*t_dic + 7.4375*h2o
***********************
name        = p_don_rec_nh4
description = mineralization of DON
turnover    = t_don*r_don_rec
equation    = t_don -> t_nh4
***********************
