1 Introduction
Modeling the water quality of a freshwater system (river, lake, or reservoir) is critical to understanding and managing its functioning. The functioning of a freshwater system is the result of complex interrelated biogeochemical processes. The first water quality model developed by describes the degradation of organic matter (OM) in a river. The organic matter, measured globally by biochemical oxygen demand in 5 d (BOD5), is considered to be degraded according to first-order kinetics. Although dating back more than a century (the study was completed in 1915, but publication was delayed to 1925 due to World War I; ), this model is still widely used to represent the dynamics of organic matter in water quality modeling .
While the role of microorganisms in the degradation of organic matter has been acknowledged since the end of the 19th century, there is an important limitation of this type of representation. The microbiological nature of the organic matter degradation process and the bacterial population dynamics intrinsically involved are completely obscured. They are implicitly taken into account only through a biodegradability constant of organic matter and its dependence on temperature. Microbial biogeochemical work in the 1980s–1990s led to the elucidation of the detailed mechanisms of the organic matter degradation process and the associated heterotrophic bacterial activities . This new corpus of knowledge led to the development and the formulation of the biogeochemical model RIVE . It is capable of simulating the degradation of OM in freshwater systems and the associated oxygen consumption by bacterial activities, which is more realistic than the model of . In the RIVE model, the HSB model is used to represent the degradation of organic matter and heterotrophic bacterial activities. This model simulates the exoenzymatic hydrolysis of particulate and dissolved organic matter (split into biodegradable and refractory pools), including high-weight polymers, into small monomeric substrates. These substrates are subsequently assimilated by bacteria for their growth and respiration.
Apart from the degradation of organic matter, the AQUAPHY model is used to simulate the dynamics of phytoplankton in the RIVE model . The model explicitly simulates photosynthesis of phytoplankton, growth, mortality, and respiration processes. In addition to water temperature, the photosynthesis depends on the light intensity, while growth is controlled by nutrient availability and small organic metabolites. The small organic metabolites are formed either directly by photosynthesis or by catabolysis of reserve products. This conceptualization allows for the growth of phytoplankton during dark periods. In addition, the model also introduces a limiting factor of nutrients in the growth of phytoplankton and considers the cycling of nutrients during the life cycle of phytoplankton.
Since its initial development by , the RIVE model has co-existed within several software packages (Table ) developed for different aquatic compartments and supported by the PIREN-Seine program (
Based on the above implementations, different versions of the RIVE model code have successfully simulated a large variety of freshwater systems (lake or reservoirs, river systems) across the world. The parameter values were determined through laboratory experiments or calibrated with observation data . These applications (Table ) were carried out for different networks and scales as well as various degrees of anthropogenic impacts in a wide climatic gradient using either Riverstrahler (possibly with its Seneque or pyNuts environments) or
After 30 years of research, the parallel evolutions of these codes, the numerical adaptations inherent in programming languages (QBasic, Visual Basic, Fortran, Python, and ANSI C), and the addition of new formalisms raise the question of their comparability. The identification of a unified version of the RIVE model is then necessary. A project aiming at unifying these RIVE implementations was undertaken. The unified version brings together all recent developments, especially the ones achieved with Python and ANSI C programming languages. This action will strengthen the collaboration of the research teams involved in the development of the model. This paper presents a unified version of RIVE for the water column (called unified RIVE v1.0) with a presentation of the formalisms for the biogeochemical cycles. That integrates the bacterial communities (heterotrophic and nitrifying), primary producers, zooplankton, and fate of detritic organic matter either particulate or dissolved and as biodegradable and refractory, as well as the associated nutrients and dissolved oxygen cycles. The most recent developments in modeling inorganic forms of carbon are also presented. The unified RIVE v1.0 included in pyRIVE 1.0 (tested with Python 3 versions up to 3.10 release) and C-RIVE 0.32 is open-source and therefore available to the scientific community. A numerical experiment is then introduced to evaluate the comparability of the pyRIVE 1.0 and C-RIVE 0.32 through a systematic comparison of simulations produced under controlled conditions. We thus establish a reference framework to evaluate different implementations (programming languages, performance – comparability) of the unified RIVE v1.0 formulation that continues to evolve in several water quality models.
2 Model description
The unified RIVE v1.0 model simulates the cycling of carbon, nutrients, and oxygen within a freshwater system (river, lake, reservoir). Biogeochemical cycles are simulated with a community-centered or agent-based model. That means that the freshwater system functioning is explicitly modeled, taking into consideration the activities of microorganisms such as phytoplankton, zooplankton, heterotrophic bacteria, and nitrifying bacteria. Additionally, it accounts for physical processes like oxygen re-aeration and dilution. This modeling approach is developed in relation to water temperature, macronutrients, and organic matter, (particulate, dissolved, and biodegradable fractions). The organic matter degradation, nitrifying bacteria dynamics, primary producer dynamics, zooplankton dynamics, nutrients, and inorganic carbon cycling are described subsequently. A high number of model parameters are used to characterize the microorganisms' properties and most of them have been determined through field or laboratory experiments under controlled conditions. This paper presents a focus on the conceptualization of the unified RIVE v1.0 model in the water column exclusively. While the RIVE model does have applications for sediment dynamics and its interaction with the water column , relevant community-centered efforts need to be made in future work, which is not the focus of this study.
2.1 Organic matter degradation
The mechanisms of organic matter degradation by the activity of heterotrophic bacteria are represented using the HSB model . It contains three variables: H represents high-weight polymers (large molecules), which form the majority of dissolved and particulate organic matter but must be exoenzymatically hydrolyzed to be accessible to heterotrophic bacteria; S represents small monomeric substrates (SMSs), directly accessible to microbial uptake; and B represents heterotrophic bacteria that absorb the substrates for their growth and respiration (Fig. ). In diagrams of this paper (for instance the HSB model, Fig. ), the state variables are shown as circles and represent either concentrations or stocks entering and leaving the (biogeochemical) processes. The biogeochemical processes are represented by squares.
The high-weight polymer (total organic carbon) is conceptually divided for each phase (dissolved – HD; particulate – HP) into three pools. Each pool is characterized by a specific biodegradability: (1) rapidly biodegradable in 5 d (HD and HP), (2) slowly biodegradable in 45 d (HD and HP), and (3) refractory (HD and HP).
Figure 1
Flowchart of the HSB model. HD: dissolved high-weight polymer; HP: particulate high-weight polymer; SMS: small monomeric substrate; HB: heterotrophic bacteria; PHY: phytoplankton; ZOO: zooplankton; nitr. bact.: nitrifying bacteria; extr. excretion of phytoplankton; sink.: sinking. respi.: respiration; and : proportion to convert dead biomass to HP and HD.
[Figure omitted. See PDF]
2.1.1 Heterotrophic bacteria dynamicsThe dynamic of heterotrophic bacteria is explicitly simulated, including growth, mortality, and respiration. The growth of heterotrophic bacteria depends on water temperature and the availability of small monomeric substrate (SMS). The dependence is represented by the Monod equation . A maximal substrate uptake rate at 20 C () and a bacterial growth yield () are used to calculate the growth rate of heterotrophic bacteria () (Eq. ). The fraction of uptake not used for growth () is respired. Here, is the effective substrate uptake rate of the th species of heterotrophic bacteria [h], is the maximal substrate uptake rate of the th species of heterotrophic bacteria at 20 C [h], [SMS] is the small monomeric substrate concentration [mgC L], is the half-saturation constant for small monomeric substrate of the th species of heterotrophic bacteria [mgC L], is the water temperature weight of the th species of heterotrophic bacteria at C [–], is the optimal temperature of the th species of heterotrophic bacteria for its growth [C], is the range of temperature for the th species of heterotrophic bacteria [C], is the bacterial growth yield of the th species of heterotrophic bacteria [–], and is the effective growth rate of the th species of heterotrophic bacteria [h]
A sinking velocity () is associated with each particulate species to represent particulate sinking by gravity. The mortality of heterotrophic bacteria is simulated by first-order kinetics (Eq. ). The dead biomass of living species is converted into varying types of organic matter content, including both dissolved and particulate forms, based on specified proportions ( and , Fig. ).
4 Here, is the effective growth rate of the th species of heterotrophic bacteria [h], is the mortality rate of the th species of heterotrophic bacteria at 20 C [h], is the sinking rate of the th species of heterotrophic bacteria [h], is the biomass concentration of the th species of heterotrophic bacteria [mgC L], is the water temperature weight at C defined by Eq. () [–], is the sinking velocity of the th species of heterotrophic bacteria [m h], and “depth” represents the water depth [m].
2.1.2 Hydrolysis of high-weight polymerThe particulate biodegradable high-weight polymer (HP and HP) is firstly hydrolyzed to the dissolved biodegradable high-weight polymer (HD and HD). The dissolved biodegradable high-weight polymer is then hydrolyzed exoenzymatically to small monomeric substrate (Fig. ). The hydrolysis of HP is represented by first-order kinetics (Eq. ), while a Michaelis–Menten function is used to express the exoenzymatic hydrolysis of HD (Eq. ).
5 Here, is the concentration of particulate high-weight polymer [mgC L], is the hydrolysis rate of () [h], is the water temperature weight of the th living species at C defined as in Eq. [–], is the mortality rate of the th living species (such as phytoplankton, zooplankton, bacteria) at 20 C [h], is the concentration of the th living species [mgC L], is the proportion to convert the dead biomass to () [–], and is the sinking rate for () [h]. 6 Here, is the concentration of dissolved high-weight polymer () [mgC L], is the maximum hydrolysis rate of at 20 C related to and [h], is the water temperature weight of the th species of heterotrophic bacteria at C (Eq. ) [–], is the half-saturation constant for related to and [mgC L], is the concentration of the th species of heterotrophic bacteria [mgC L], is the mortality rate of the th living species (such as phytoplankton, zooplankton, bacteria) at 20 C [h], is the water temperature weight of the th living species at C defined as in Eq. () [–], is the concentration of the th living species [mgC L], and is the proportion to convert the dead biomass to and [–].
Figure 2
Nitrifying bacteria dynamics. AOB: ammonia-oxidizing bacteria; NOB: nitrite-oxidizing bacteria; mort.: mortality; sink.: sinking.
[Figure omitted. See PDF]
2.2 Nitrifying bacteria dynamicsThe unified RIVE v1.0 model includes the description of the nitrification microbial process, mediated by two types of nitrifying bacteria. They are respectively responsible for the production of nitrite () and nitrate (). The nitrifying bacteria get energy by oxidizing NH (ammonium) and NO (nitrite) for their growth. These two bacteria are named AOB (ammonia-oxidizing bacteria) and NOB (nitrite-oxidizing bacteria) . The growth of nitrifying bacteria is limited by the availability of ammonium, nitrite, and oxygen, which is represented with Monod functions (Eq. ). The effect of water temperature is also taken into account. Here, and are the effective growth rates of AOB and NOB [h], and are the maximal growth rates of AOB and NOB at 20 C, respectively [h], and are the water temperature weight at C defined as in Eq. () [–], and are the half-saturation constants for NH (AOB) and for NO (NOB) [mgN L], and and are the half-saturation constants for oxygen (AOB and NOB) [mgO L].
The mortality and sinking of nitrifying bacteria are simulated the same way as for other living species. Here, and are the effective growth rates of AOB and NOB defined by Eqs. () and () [h], and are the mortality rates of AOB and NOB at 20 C [h], and are the sinking rates of AOB and NOB [h], and are the water temperature weights at C defined as in Eq. () [–], and [AOB] and [NOB] are the concentrations of AOB and NOB [mgC L].
2.3 Primary producer dynamics
The behavior of primary producers is represented using the AQUAPHY model . Biomass of a phytoplankton species is composed of three different cellular constituents (Fig. ):
a.
the structural and functional macromolecules of the cell, F, mainly proteins, chlorophyll, and structural lipids (such as membranes);
- b.
polysaccharides playing the role of reserve products, R;
- c.
monomeric (amino acids) and oligomeric precursors for macromolecular synthesis, S.
Figure 3
Description of the AQUAPHY model. F: functional macromolecules of the cell; R: reserve products; S: monomeric (amino acids) and oligomeric precursors for macromolecular synthesis. Phytoplankton biomass equals the sum of the three cellular constituents (F, R, S). SMS: small monomeric substrate. photos.: photosynthesis; respi.: respiration; excr.: excretion; synth.: synthesis; catab.: catabolysis; sink.: sinking
[Figure omitted. See PDF]
At any time, the biomass of the th phytoplankton species (mgC L), , is equal to the sum of the three internal constituents (Eq. ), [F], [R], and [S] : 11
The most common way of measuring phytoplankton biomass is using the chlorophyll concentration (g chl L). A carbon to chlorophyll ratio of 35 mgC g chl is therefore considered to convert experimental data into phytoplankton biomass. The initial proportions of different constituents (F, R, S) are fixed . They are only used to determine the initial concentrations of the three cellular constituents and their concentrations in incoming water fluxes for each phytoplankton species. According to , the structural and functional macromolecules of the cell ([F]) account for about 85 % of the phytoplankton biomass (), while the reserve products ([R]) account for about 10 % of the biomass. The remainder (5 %) of the biomass constitutes the small precursors for macromolecules synthesis ([S]). These proportions of F, S, and R are updated at each time step for each phytoplankton species.
2.3.1 PhotosynthesisThe photosynthesis process forms small precursors (S) by fixing carbon dioxide. Its rate is determined by the photosynthesis–irradiance relationship including three parameters (Eq. ) and the active irradiance (, E m s).
12 Here, is the photosynthesis rate of the th phytoplankton species at water depth m [h], is the maximal photosynthesis rate of the th phytoplankton species at 20 C [h], is the water temperature weight of the th phytoplankton species at C defined as in Eq. () [–], is the photosynthetic efficiency of the th phytoplankton species [h (E m s)], is the photoinhibition capacity of the th phytoplankton species [h (E m s)], and is photosynthetically active radiation (PAR) or active irradiance in the water column at depth m [E m s] or [W m].
The averaged photosynthesis rate of the th phytoplankton species over water column is obtained by integrating : 13 where depth is the water height [m] and is the averaged photosynthesis rate over the water column [h].
The active irradiance at water depth m () follows the Beer–Lambert law (Eq. ). The decrease in active irradiance from the water surface to water bottom is represented by the light extinction coefficient (). The extinction coefficient is composed of three parts: pure water (), suspended solid (), and algal self-shading (). 14 Here, is the active irradiance at water depth [E m s or W m], is photosynthetically active radiation (PAR) or active irradiance at the water surface measured by the photosynthetic photon
Photons within the range of visible light between 400 and 700 nm.
flux density (PPFD) [E m s or W m], is the light extinction coefficient [m], is the light extinction coefficient related to pure water [m], is the linear algal self-shading light extinction coefficient [m (g chl L)], is the light extinction coefficient related to suspended solid [m (mg L)], [chl ] is the total chlorophyll concentration [g chl L], and [SS] is the suspended solid concentration [mg L]. 2.3.2 GrowthThe growth of phytoplankton involves the transformation of small precursors (S) into structural and functional macromolecules (F), which also requires the uptake of dissolved inorganic nutrients (nitrogen – N, phosphorus – P, silicon – Si) from the environment (Fig. ). The nutrients can potentially limit phytoplankton growth if their quantities are insufficient. The limitation of nutrients is represented using multiple Monod functions (Eq. ). The maximum growth rate () is itself weighted by a limitation based on the availability of small precursors (S). The limitation by dissolved silica (DSi) is applied only for diatoms (DIA). Here, is the effective growth rate of functional macromolecules for the th phytoplankton species [h], is the maximal growth rate of functional macromolecules for the th phytoplankton species at 20 C [h], is the water temperature weight of the th phytoplankton species at C defined as in Eq. () [–], and are the concentrations of small precursors and functional macromolecules for the th phytoplankton species [mgC L], is the half-saturation constant for small precursors of the th phytoplankton species [–], is the nutrient-limiting factor [–], [DIN], [DIP], and [DSi] are the concentrations of dissolved inorganic nitrogen (, mgN L), dissolved inorganic phosphorus (, mgP L), and dissolved silica (DSi, mgSi L), and are the half-saturation constants for dissolved inorganic nitrogen and phosphorus of the th phytoplankton species [mgN L and mgP L], and is the half-saturation constant for dissolved silica in the case of diatoms [mgSi L].
2.3.3 Respiration
The respiration rate of phytoplankton () is divided into two components (Eq. ): one () ensuring the survival of the cell (maintenance process) and the other () corresponding to the energetic cost of growth.
17 Here, is the respiration rate of the th phytoplankton species [h], is the maintenance respiration rate of the th phytoplankton species at 20 C [h], is the water temperature weight of the th phytoplankton species at C defined as in Eq. () [–], is the respiration for the energetic cost of the th phytoplankton species [–], and is the effective growth rate of the th phytoplankton species (Eq. ) [h].
2.3.4 ExcretionIncluded later by , the phytoplankton excretion () includes two terms: a constant excretion rate () and another that depends on the photosynthesis rate (). The product of excretion is the small monomeric substrate (SMS), assimilated directly by heterotrophic bacteria for their growth and respiration (Fig. ).
18 Here, is the excretion rate of the th phytoplankton species [h], is the basic excretion rate of the th phytoplankton species [h], is the excretion of the th phytoplankton species related to photosynthesis [–], and is the photosynthesis rate of the th phytoplankton species (Eq. ) [h].
The variation of small monomeric substrate (SMS) can then be established (Eq. ). 19 Here, hydr is the hydrolysis of the dissolved high-weight polymers HD and HD (Eq. ) [mgC L h], is the effective rate of substrate uptake by the th heterotrophic bacteria species (Eq. ) [h], is the biomass concentration of the th species of heterotrophic bacteria [mgC L], is the effective excretion rate of the th phytoplankton species (Eq. ) [h], and is the concentration of functional macromolecules for the th phytoplankton species [mgC L].
2.3.5 Synthesis and catabolysis of reserve productsThe carbon fixed in the cell by photosynthesis forms small precursors (S) that can be transformed, either into functional macromolecules (F) or into reserve products (R). The synthesis of reserve products is limited by the ratio based on a Michaelis–Menten-like function (Eq. ).
20 Here, is the synthesis rate of reserve products of th phytoplankton species [h], is the maximal synthesis rate of reserve products of th phytoplankton species at 20 C [h], is the water temperature weight of th phytoplankton species at C defined as in Eq. () [–], and are the concentrations of small precursors and functional macromolecules for the th phytoplankton species [mgC L], and is the half-saturation constant for small precursors of the th phytoplankton species [–].
Reserve products (R) are likely to be catabolized to produce small precursors (S). A first-order kinetic (, h) is used to represent catabolysis of a reserve product.
2.3.6 Extinction of phytoplanktonThree ways of phytoplankton extinction are implemented in the unified RIVE v1.0: lysis, sinking, and grazing by zooplankton (Sect. ). The phytoplankton lysis is represented by first-order kinetics using a mortality rate (, h). For ease of presentation, all three processes are assumed in an overall extinction rate (h).
21 Here, is the extinction rate of the th phytoplankton species [h], is the mortality rate of the th phytoplankton species at 20 C [h], is the water temperature weight of th phytoplankton species at C defined as in Eq. () [–], is the sinking rate of the th phytoplankton species [h], is the grazing rate of the th zooplankton species (Eq. , Sect. ) [h], is the zooplankton concentration of the th zooplankton species [mgC L], and is the total phytoplankton concentration (with NS the number of phytoplankton species grazed by zooplankton) [mgC L].
2.3.7 Phytoplankton budgetsAccording to the processes related to phytoplankton (photosynthesis, growth, mortality, etc.), different budgets can be established for the th phytoplankton species as follows. Here, is the photosynthesis rate of the th phytoplankton species (Eq. ) [h], is the respiration rate of the th phytoplankton species (Eq. ) [h], is the growth rate of the th phytoplankton species (Eq. ) [h], is the synthesis rate of reserve products of the th phytoplankton species (Eq. ) [h], is the catabolysis rate of reserve products of the th phytoplankton species [h], is the excretion rate of the th phytoplankton species (Eq. ) [h], is the extinction rate of the th phytoplankton species (Eq. ) [h], , , and are the concentrations of , , and for the th phytoplankton species [mgC L], and is the biomass concentration of the th phytoplankton species [mgC L].
2.4 Zooplankton dynamics
The zooplankton dynamics include grazing on phytoplankton as well as growth, respiration, mortality, and sinking (Fig. ).
Figure 4
Dynamics of zooplankton. PHY: phytoplankton species; ZOO: zooplankton species; respi.: respiration; sink.: sinking.
[Figure omitted. See PDF]
2.4.1 Grazing and growthGrazing on phytoplankton by zooplankton and growth of zooplankton are expressed based on a maximal grazing rate at 20 C () limited by the phytoplankton biomass based on a Monod function (Eq. ). The grazing of zooplankton takes place only when the total phytoplankton biomass exceeds a certain threshold (). No specific preference for grazing on particular phytoplankton species is considered among zooplankton species. Instead, the phytoplankton biomass grazed by the th species of zooplankton is divided proportionally among each species of phytoplankton (Eq. ). The growth rate of zooplankton is considered proportional to the grazing rate using a growth yield factor (Eq. ). Here, is the effective grazing rate of the th zooplankton species [h], is the maximal grazing rate of the th zooplankton species at 20 C [h], is the water temperature weight of the th zooplankton species at C defined as in Eq. () [–], is the total phytoplankton biomass with NS the number of phytoplankton species grazed by zooplankton [mgC L], is the phytoplankton biomass threshold above which grazing takes place for the th zooplankton species [mgC L], is the half-saturation constant for phytoplankton biomass of the th zooplankton species [mgC L], is the growth rate of the th zooplankton species [h], and is the growth yield of the th zooplankton species [–].
2.4.2 Respiration and mortality
Grazed phytoplankton not used for zooplankton growth is respired (Fig. ). The rate of respiration is then obtained by . The mortality of zooplankton is simulated by first-order kinetics (). Here, is the respiration rate of the th zooplankton species [h], is the growth yield of the th zooplankton species [–], is the effective grazing rate of the th zooplankton species (Eq. ) [h], is the mortality rate of the th zooplankton species at 20 C [h], is the water temperature weight of the th zooplankton species at C defined as in Eq. () [–], is the sinking rate of the th zooplankton species [h], and is the biomass concentration of the th zooplankton species [mgC L].
2.5 Nutrient cycling
As shown above, several processes related to nutrients are taken into account: uptake by phytoplankton, mineralization, nitrification, and denitrification (Figs. and ).
2.5.1 Uptake of nutrients (N, P, Si) by phytoplankton
The Redfield–Conley stoichiometry ( ; – ) is used to determine the composition of carbon, nitrogen, and phosphorus in organic matter. Constant , , and mass ratios are considered to calculate the uptake of nutrients associated with phytoplankton growth. Here, is the effective growth rate of the th phytoplankton species (Eq. ) [h], is the excretion rate of the th phytoplankton species (Eq. ) [h], represents the functional macromolecule concentration of the th phytoplankton species [mgC L], and are the concentrations of ammonium and nitrate [mgN L], uptN is the uptake of nitrogen for phytoplankton growth [mgN L], is the uptake of NH for phytoplankton growth [mgN L], is the uptake of NO for phytoplankton growth [mgN L], uptP is the uptake of phosphorus for phytoplankton growth [mgP L], is the carbon to nitrogen mass ratio [mgC mgN], is the carbon to phosphorus mass ratio [mgC mgP], is the carbon to silica mass ratio [mgC mgSi], uptSi is the uptake of silica for diatom growth [mgSi L], is the effective growth rate of diatoms [h], and is the functional macromolecule (F) concentration of diatoms [mgC L]
Figure 5
Cycling of nitrogen. PHY: phytoplankton species; HB: heterotrophic bacteria; ZOO: zooplankton species; AOB: ammonia-oxidizing bacteria; NOB: nitrite-oxidizing bacteria; respi.: respiration; excr.: excretion; denit: denitrification.
[Figure omitted. See PDF]
2.5.2 Release of nutrients by mineralizationThe mineralization of organic matter by heterotrophic bacteria and zooplankton is achieved by its oxidation through respiration (Fig. ). The process consumes organic matter and releases nitrogen and phosphorus from the fraction that is not assimilated for growth of heterotrophic bacteria and zooplankton. Here, respHB is the respiration of heterotrophic bacteria species [mgC L h], is the growth yield of the th heterotrophic bacteria species [–], is the effective rate of substrate uptake by the th heterotrophic bacteria species (Eq. ) [h], is the concentration of the th heterotrophic bacteria species [mgC L], respZOO is the respiration of zooplankton species [mgC L h], is the growth yield of the th zooplankton species [–], is the effective grazing rate of the th zooplankton species (Eq. ) [h], is the concentration of the th zooplankton species [mgC L], relN is the release of nitrogen [mgN L h], is the carbon to nitrogen mass ratio [mgC mgN], relP is the release of phosphorus [mgP L h], and is the carbon to phosphorus mass ratio [mgC mgP].
2.5.3 Nitrification and denitrification
As mentioned in Sect. , the nitrification process (Figs. and ) is related to the growth of AOB (ammonia-oxidizing bacteria) and NOB (nitrite-oxidizing bacteria). Growth yields ( and ) are used to describe the amount of nitrogen consumed by nitrifying bacteria (Eqs. and ). Denitrification occurs when dissolved oxygen is not present in sufficient quantity (Fig. ). Here, and are the effective growth rates of the th AOB species (Eq. ) and the th NOB species (Eq. ) [h], and are the growth yields of the th AOB species and the th NOB species [mgC mgN], is nitrification calculated as [mgN L h], is nitrification calculated as [mgN L h], and and are the biomass concentrations of the th AOB species and the th NOB species [mgC L].
The budgets of , , and can then be established. Here, denit is denitrification [mgN L h], is nitrification by NOB (Eq. ) [mgN L h], is nitrification by AOB (Eq. ) [mgN L h], is the uptake of NO by phytoplankton growth (Eq. ) [mgN L h], relN is the release of nitrogen by respiration of heterotrophic bacteria and zooplankton (Eq. ) [mgN L h], and is the uptake of NH by phytoplankton growth (Eq. ) [mgN L h].
2.5.4 Phosphate adsorption desorption
Orthophosphate (PO) is released by mineralization and taken up by phytoplankton exactly as inorganic nitrogen (Fig. ). Once released in the water column, however, orthophosphates are subject to a process of adsorption–desorption on mineral suspended solids (MSSs) to form PIP (particulate inorganic phosphorus). In addition, the impact of sediment dynamics on P fluxes should be considered in future work with unified RIVE. showed that P fluxes are mainly driven by hydrological conditions and sediment-related processes in the Seine River system.
Figure 6
Phosphorus and silica dynamics. HD: dissolved high-weight polymer; PHY: phytoplankton; PIP: particulate inorganic phosphorus; MSS: mineral suspended solids; BSi: biogenic silica; DSi: dissolved silica; adsorp.: adsorption; desorp.: desorption; sink.: sinking; disso. dissolution.
[Figure omitted. See PDF]
The process is represented according to an instantaneous hyperbolic equilibrium relationship of the form 44 with the inorganic P content of MSS [mgP mgMSS], [PIP] and [MSS] the concentrations of PIP and MSS [mgP L and mgMSS L], the maximum adsorption capacity of MSS [mgP mgMSS], the concentration of orthophosphate [mgP L], and the half-saturation adsorption constant [mgP L].
Considering this equilibrium to be instantaneously reached implies that a relationship exists between the variables PIP, MSS, PO, and TIP (total inorganic phosphorus): 45 This equilibrium relationship can be written as 46 with the concentration of orthophosphate [mgP L], [TIP] and [MSS] the concentrations of TIP and MSS [mgP L and mgMSS L], the maximal adsorption capacity of MSS [mgP mgMSS], and the half-saturation adsorption constant [mgP L].
2.5.5 Silica dynamicsDissolved silica (DSi) is produced by the dissolution of dead frustules of diatoms (designated as biogenic silica, BSi). Rock weathering contributes also dissolved silica, while it is considered null in unified RIVE v1.0. DSi is taken up by the growth of diatoms (Fig. ). Biogenic silica is produced by the lysis and grazing of diatoms; it settles down and dissolves according to first-order kinetics, dependent on water temperature : with Kb the dissolution rate of biogenic silica at 20 C [h], [BSi] the concentration of biogenic silica [mgSi L], and the water temperature [C].
2.6 Dissolved oxygen
Dissolved oxygen is especially influenced by photosynthesis and respiration. Re-aeration at the water–air interface is also included in the unified RIVE v1.0 model. Sediment dynamics are important for sediment oxygen demand (not shown here). showed that benthic respiration accounts for one-third of the total Seine River respiration. Relevant efforts toward sediment dynamics need to be made in future work, which is not the focus of this study. An oxygen budget can then be established (Eq. ). Here, is the re-aeration coefficient [m h], “depth” indicates water height [m], is the saturated concentration of dissolved oxygen in water [mgO L], is the concentration of dissolved oxygen in water [mgO L], is the molar mass ratio between dissolved oxygen and carbon [mgO mgC], is the photosynthesis rate of the th phytoplankton species (Eq. ) [h], is the respiration rate of the th phytoplankton species (Eq. ) [h], is the functional biomass concentration of the th phytoplankton species [mgC L], respHB is the respiration of all heterotrophic bacteria species (Eq. ) [mgC L h], is the respiration rate of the th zooplankton species (Eq. ) [h], is the biomass concentration of the th zooplankton species [mgC L], is the molar mass ratio between dissolved oxygen and nitrogen [mgO mgN], nitr is nitrification to produce nitrite by oxidizing (Eq. , with the stoichiometric coefficient) [mgN L h], and nitr is nitrification to produce nitrate by oxidizing (Eq. , with the stoichiometric coefficient) [mgN L h].
2.7 Inorganic carbon
An inorganic carbon module is implemented in unified RIVE v1.0. The carbonate system is described by a set of equations (named the CO module) based on a previous representation provided by and adapted for freshwater environments . In this module, four state variables are defined: dissolved inorganic carbon – DIC, total alkalinity – TA, acidity – pH, and aqueous carbon dioxide – CO((aq)).
2.7.1
CO flux at the air–water interface
The DIC is defined as the sum of three dissolved carbonate species: 52
The calculation of pH is derived from using TA and DIC. Then the aqueous carbon dioxide (CO (aq)) is derived from the carbonate chemical equilibrium using DIC and pH . 53 Here, and are the equilibrium constants of carbonate equilibrium reactions [mol L], is the concentration of hydrogen ions with pH [mol L], and [DIC] is the concentration of dissolved inorganic carbon [mgC L].
The flux of CO at the water–air interface (, gC m h) is calculated based on Fick's first law with a gas transfer velocity of CO (). 54 Here, is the gas transfer velocity of CO [m h], is the solubility of CO in water calculated based on Henry's law [mgC L], and is the aqueous carbon dioxide concentration [mgC L].
The gas transfer velocity of CO () depends on water temperature and (gas transfer velocity of CO for a Schmidt number of 600, corresponding to a temperature of 20 C in freshwater). According to , , and , the gas transfer velocity of CO () at water temperature (C) can be calculated as 55 where (m h) is the gas transfer velocity of CO for a Schmidt number of 600, and is the Schmidt number (dimensionless) calculated with the water temperature in degrees Celsius (C). The can be determined as,= 56
2.7.2 Budgets of TA and DICProcesses such as respiration, photosynthesis, nitrification, denitrification, and input flows affect TA and DIC. The unified RIVE v1.0 considers these processes explicitly. Here, TA (mol L h) and DIC (mgC L h) are the net input fluxes. The respiration of all phytoplankton, bacteria, and zooplankton species (respPHY, respHB, respZOO; mgC L h) transforms organic carbon to CO by full oxidization. The denitrification (denit, mgN L h) is also considered in the calculation of TA and DIC. (gC m h) is the CO flux at the air–water interface, and “depth” is the water depth (m). , and are the stoichiometry coefficients of biogeochemical processes .
2.8 Kinetic parameters in the unified RIVE model
A total of 120 parameters are used to describe the aforementioned processes considering three phytoplankton species and two heterotrophic bacteria species. Some of them depend on water temperature and are calculated with a water temperature function (Eq. ). Their definitions and reference values are provided in Appendix .
3 Results
3.1 Digital implementation with Python 3 (pyRIVE 1.0) or ANSI C (C-RIVE 0.32)
The above unified governing equations are implemented in Python 3 to create pyRIVE 1.0 (10.48579/PRO/Z9ACP1; ) and in ANSI C to create C-RIVE 0.32 (10.5281/zenodo.7849609; ), respectively. A Jupyter Notebook is used for pedagogical exercises with pyRIVE 1.0, while C-RIVE 0.32 needs to be compiled with gcc under a Linux or a MAC OS operating system. In addition, the user interface of C-RIVE 0.32 uses its own parser based on flex and bison, which allows the software to read ASCII files.
In practice, the number of living species is predefined in pyRIVE 1.0, while we have the ability to define as many species as desired in C-RIVE 0.32 (Table ). For instance, three communities of phytoplankton (DIA: diatoms; GRA: green algae; CYA: cyanobacteria), two populations of heterotrophic bacteria distinct in their growth rate and size (small one SHB and large one LHB; ), and two zooplankton communities (ZOR: rotifer and ZOC, micro-crustaceans; ) are predefined in pyRIVE 1.0.
In addition, the TIP (total inorganic phosphorus) is considered to be a state variable in pyRIVE 1.0. PO and PIP are derived from it according to Eqs. () and (). TIP is subject to release by heterotrophic bacteria and zooplankton respiration (Eq. ), uptake by phytoplankton, and settling of PIP together with MSS. However, the PO is treated as a state variable and released by respiration (Eq. ) in C-RIVE 0.32 and only PIP (particulate inorganic phosphorus) is derived from the Eq. ().
Table 1
Number of living species defined in pyRIVE 1.0 and C-RIVE 0.32 which implement the unified RIVE v1.0.
Species | PHY | HB | AOB | NOB | ZOO |
---|---|---|---|---|---|
pyRIVE 1.0 | 3 | 2 | 1 | 1 | 2 |
C-RIVE 0.32 | User-defined | User-defined | User-defined | User-defined | User-defined |
Initial concentrations and boundary conditions.
Species | Description | Unit | ||
---|---|---|---|---|
SHB | Small heterotrophic bacteria | 0.005 | 0.005 | [mgC L] |
LHB | Large heterotrophic bacteria | 0.004 | 0.004 | [mgC L] |
AOB | Ammonia-oxidizing bacteria | 0.001 | 0.001 | [mgC L] |
NOB | Nitrite-oxidizing bacteria | 0.0002 | 0.0002 | [mgC L] |
DIA | Diatoms | 0.447 | 0.447 | [mgC L] |
GRA | Green algae | 0.539 | 0.539 | [mgC L] |
CYA | Cyanobacteria | 0.662 | 0.662 | [mgC L] |
ZOR | Rotifer | [mgC L] | ||
ZOC | Micro-crustaceans | [mgC L] | ||
SMS | Small monomeric substrate | 0.036 | 0.036 | [mgC L] |
DOM | Rapidly biodegradable dissolved organic matter | 0.022 | 0.022 | [mgC L] |
DOM | Slowly biodegradable dissolved organic matter | 0.174 | 0.174 | [mgC L] |
DOM | Dissolved refractory organic matter | 1.625 | 1.625 | [mgC L] |
POM | Rapidly biodegradable particulate organic matter | 0.005 | 0.005 | [mgC L] |
POM | Slowly biodegradable particulate organic matter | 0.021 | 0.021 | [mgC L] |
POM | Particulate refractory organic matter | 0.107 | 0.107 | [mgC L] |
NH4 | Ammonium | 1.5 | 1.5 | [mgN L] |
NO2 | Nitrite | 0.016 | 0.016 | [mgN L] |
NO3 | Nitrate | 0.941 | 0.941 | [mgN L] |
TIP | Total inorganic phosphorus | 0.2 | 0.2 | [mgP L] |
DSi | Dissolved silica | 3.090 | 3.090 | [mgSi L] |
MSS | Mineral suspended solids | 2.611 | 2.611 | [mgMSS L] |
OXY | Dissolved oxygen | 9.446 | 9.446 | [mgO L] |
TA | Total alkalinity | 5291 | 5291 | [mol L] |
DIC | Dissolved inorganic carbon | 62.728 | 62.728 | [mgC L] |
CO(aq) | Aqueous carbon dioxide | 0.343 | 0.343 | [mgC L] |
pH | Acidity | 8.659 | 8.695 | [–] |
Figure 7
Simulation by the HSB model (unified RIVE v1.0) of the dynamics of heterotrophic bacteria in a filtered and reinoculated sample from drainage pond water (Seine basin, France) taken in February 2021 . DOM: dissolved organic matter; SHB: small heterotrophic bacteria.
[Figure omitted. See PDF]
3.2 Modeling the organic matter degradation by unified RIVE v1.0 (HSB model)The ability of the HSB model (Fig. ) to simulate organic matter degradation has been verified by modeling two batch experiments conducted by . Two water samples were used in the study. One sample was obtained from a drainage pond in the Seine basin, France, in February 2021 (Fig. ). The other sample was taken from an urban sewage collector in Rosny-sur-Seine, France, in February 2021 (Fig. ). These samples were incubated in the dark at a temperature of 21 C for a period of 45 d, during which aerobic bacteria consumed organic matter . Only DOM and bacterial biomass are measured during batch experiments and then used to show validation. The HSB model is able to effectively reproduce the concentrations of dissolved organic matter and bacterial biomass with a trial–error adjustment of its parameter values (Figs. and ). The parameter values are kept the same for both water samples.
Figure 8
Simulation by the HSB model (unified RIVE v1.0) of the dynamics of heterotrophic bacteria in a filtered and reinoculated sample from urban sewage water (Rosny-sur-Seine, France) taken in February 2021 . DOM: dissolved organic matter; SHB: small heterotrophic bacteria; LHB: large heterotrophic bacteria.
[Figure omitted. See PDF]
Figure 9
Geometric and hydraulic description of a river stretch.
[Figure omitted. See PDF]
3.3 A river stretch simulated with unified RIVE v1.0: pyRIVE 1.0 vs. C-RIVE 0.32A river stretch with a Strahler order of 8 (Fig. ) is designed to compare the results simulated by two versions of unified RIVE v1.0 implemented in pyRIVE 1.0 and C-RIVE 0.32. The case study allows us to compare the two versions of unified RIVE v1.0 under transient contrasting conditions (i) between species communities and (ii) temporally for each species community.
3.3.1 River stretch morphology and hydraulic conditions
The stretch measures 10 000 m long and 300 m in width. To simplify the boundary conditions, the upstream inflow and downstream outflow are fixed at 25 m s, which corresponds to a residence time of 7 d. The water height is fixed at 5 m.
3.3.2 Simulation settings and evaluation strategy
The concentrations of all water quality variables of inflow are defined as their initial concentrations in the stretch and remain constant during the simulation (Table ). Since this paper focuses on the conceptualization of the unified RIVE v1.0 in the water column, no exchange between the benthic layer and water column is considered. The time step of the simulation is 6 min and a simulation period of 365 d is considered. To compare the results of the two digital implementations of unified RIVE v1.0, daily concentrations at 00:00 are plotted. Three statistical criteria (PBIAS: percent bias, %; MAD: mean absolute difference; MaAD: maximum absolute difference) are calculated to evaluate the similarity of the two sets of results. The closer the criteria are to 0, the more similar the concentrations simulated by the two software packages are (pyRIVE 1.0 and C-RIVE 0.32). Here, represents the concentrations simulated by C-RIVE 0.32 (in ANSI C) and those simulated by pyRIVE 1.0 (in Python 3). is the number of values.
Figure 10
Simulated concentrations of main species by pyRIVE 1.0 and C-RIVE 0.32. See Table for their definitions.
[Figure omitted. See PDF]
Table 3Statistical criteria for comparing the simulated variables by pyRIVE 1.0 and C-RIVE 0.32 which implement the unified RIVE v1.0. PBIAS: percent bias [%]; MAD: mean absolute difference; MaAD: maximum absolute The unit of MAD and MaAD depends on the species. It can be [mgC L], [mgN L], [mgP L], [mgSi L], or [mol L].
Species | PBIAS | MAD | MaAD | Species | PBIAS | MAD | MaAD |
---|---|---|---|---|---|---|---|
SHB | LHB | ||||||
AOB | 0 | NOB | 0 | ||||
DIA | GRA | ||||||
CYA | ZOR | ||||||
ZOC | 0 | SMS | |||||
DOM | 0.1 | DOM | |||||
DOM | 0 | OXY | 0 | ||||
POM | POM | ||||||
POM | 4 | NH4 | 0 | ||||
NO2 | 0 | NO3 | 0 | ||||
TIP | 0 | DSi | 0 | ||||
TA | 0 | pH | 0 | ||||
DIC | 0 | CO(aq) | 0 |
The concentrations simulated by pyRIVE 1.0 and C-RIVE 0.32 are very similar (and superimposed) for all water quality variables (Fig. ). A maximum absolute difference (MaAD) of 0.0307 mgO L, which is relatively low, is obtained for dissolved oxygen concentration. The mean absolute difference (MAD) for dissolved oxygen concentration is 0.00678 mgO L (Table ) and the corresponding percent bias (PBIAS) is 0 %. The MaAD of 0.0307 mgO L for dissolved oxygen is the cause of the depletion of CYA S (small precursors S of cyanobacteria, Fig. ) at the beginning of the simulation (not shown here). To correct this depletion of CYA S, the growth of functional macromolecules (CYA F) is reduced according to the availability of CYA S in C-RIVE 0.32. This is why the simulated concentrations of CYA (cyanobacteria) depict a MaAD of 0.0321 mgC L between pyRIVE 1.0 and C-RIVE 0.32. Due to this auto-correction in C-RIVE 0.32, the simulated concentrations of CYA by C-RIVE 0.32 are slightly smaller than those simulated by pyRIVE 1.0 (PBIAS ). The values of PBIAS also indicate the similarity between the concentrations simulated by pyRIVE 1.0 and C-RIVE 0.32. Except for CYA, the discrepancies of other variables are extremely low compared to their concentrations (PBIAS ). More than half of simulated variables have a PBIAS of 0 %.
4 Discussion
The results show the ability of the unified RIVE v1.0 to correctly simulate the organic matter degradation and the similarity of its two digital implementations (pyRIVE 1.0 and C-RIVE 0.32). Here, we discuss the biogeochemical cycling simulated by unified RIVE v1.0 in the water column (Sect. ), the model limitations, and the future developments (Sect. ), as well as its benefits for the scientific community (Sect. ).
Figure 11
Budget fluxes of DIA (ton C d). Grazing: zooplankton grazing fluxes; net production: Eq. (); net input: input flux–output flux; net change: daily variation of DIA in the river stretch.
[Figure omitted. See PDF]
Figure 12
Simulated water temperature, active irradiance, and zoom of active irradiance for days 111–114.
[Figure omitted. See PDF]
4.1 Biogeochemical cycling in water column simulated by unified RIVE v1.0The unified RIVE v1.0 simulates the dynamics of microorganisms involving biogeochemical cycling, although the boundary conditions are defined as constant for modeling a river stretch (Fig. ). Here we interpret the dynamics of diatoms (DIA) and large heterotrophic bacteria (LHB). For this purpose, the budget fluxes of DIA and LHB are calculated.
Figure 13
Large heterotrophic bacteria (LHB) dynamics and simulated concentrations of small monomeric substrate (SMS). Net change: daily variation of LHB in river stretch; net input: input flux–output flux.
[Figure omitted. See PDF]
The decrease in DIA biomass from day 1 to day 15 is related to the low water temperature and low active irradiance, which limit its photosynthesis (Figs. , ). The optimal temperature for the growth of DIA is 21 C, while the water temperature is lower than 3 C (Fig. ). The low photosynthesis rate leads to negative net production (Fig. , green line), which is the difference between the fluxes of photosynthesis and the combined fluxes of respiration, mortality, and excretion. During this period, while the input factors play a positive role, the net change in DIA is still negative (Fig. , black line). Over the following days, as the water temperature and active irradiance increase (Fig. ), the net production shows an increase. However, it still remains negative. The net change in DIA shifts to a positive direction due to a combination of net input and net production, leading to a simulated increase in DIA biomass. This trend continues until day 130 when the maximum DIA biomass is reached (Fig. ). The decline in DIA biomass simulated from day 130 onwards is due to a combination of factors. Firstly, the input factor could be contributing to the decrease when the DIA biomass exceeds the concentration of DIA in input flow (0.447 mgC L, Table , Fig. ). Additionally, the net production rate also plays a role (Fig. ). Although the photosynthesis rate increases with water temperature and active irradiance until day 179 (not shown here), it is not enough to compensate for the other processes occurring in the diatom population (days 150–170), resulting in an overall decrease in biomass. Despite the positive contributions of net input and net production to DIA biomass around day 175, a significant decrease in biomass occurred due to zooplankton grazing (Fig. , red line). Two factors impact the zooplankton dynamics: water temperature and the half-saturation constant of grazing (Eq. ). The optimal temperature for zooplankton is 25 C and the half-saturation constant of grazing for zooplankton is set to 0.4 mgC L. Then, equilibrium of DIA biomass is simulated until day 260 (Fig. ), which means that the net production and net input in DIA biomass are balanced by the grazing of zooplankton. The input in DIA biomass primarily contributes to the increase in DIA biomass from day 260 (Fig. ). As the water temperature and active irradiance decrease during this time, the net production of DIA decreases and changes to negative by day 292.
The growth rate of large heterotrophic bacteria (LHB) increases (Fig. ) with the increase in water temperature, causing a rise in LHB biomass until day 170 (Fig. ). The fast decrease in small monomeric substrate (SMS) around day 175, synchronized with the grazing of zooplankton (Fig. ), causes a decrease in growth rate of LHB. Its mortality rate is not impacted (not shown here). Consequently, this leads to a significant reduction in LHB biomass around day 175 (Fig. ). The biomass of LHB remains stable until day 260. After that, it increases in conjunction with the rise in SMS concentration, which is synchronized with the increase in phytoplankton biomass.
4.2 Complexity and strengths of the RIVE modelComplexity can be understood in terms of the large number of variables represented and interacting with each other. The RIVE model is a multi-element, multi-form model and the kinetics it represents inevitably incorporate a large number of parameters. This is especially true as the RIVE model has opted for an explicit representation of the living communities (bacteria, phytoplankton, zooplankton, etc.) involved in the carbon and nutrient cycles. The model has thus become more complex over time and the addition of new processes (and therefore new parameters) has, as far as possible, been systematically based on experimental work in the laboratory or in the field to reduce the ranges of uncertainty around the kinetic parameters.
The RIVE model is designed as a tool for generating knowledge about the functioning of freshwater ecosystems, and therefore it documents a large number of biogeochemical processes, whether they are expressed weakly or strongly in a given freshwater ecosystem. The underlying hypothesis is that environmental factors control the intensity with which the various processes involved in the overall functioning of a hydrosystem are expressed.
Nevertheless, some work has specifically focused on analyzing the influence of RIVE parameters, particularly those controlling oxygen levels . This work identified key physical and physiological parameters. Based on the result of sensitivity analysis, a continuous oxygen data assimilation scheme has been developed (Prose-PA, ). The data assimilation allows determining the physiological properties of microorganisms by integrating the associated uncertainties over time. The recent work of has also helped to better quantify the sensitivity of oxygen to bacterial kinetics parameters as well as those relating to the composition of organic matter with the aim of parsimonious simplification of the number of parameters.
In these two examples, RIVE (C-RIVE) biogeochemical modeling is implemented in much more complex modeling platforms (particle filter, data assimilation, etc.) and the various analyses (sensitivity, uncertainties, etc.) are also supported by an overall assessment of the performance of the model applied to the Seine River.
4.3 Model limitations and future developments of unified RIVE
Currently, the unified RIVE v1.0 presented in this paper describes only the biogeochemical processes in the water column. Comparison of benthic processes and simulations have not been investigated yet. Previous studies showed that sediment plays an important role in the metabolism of river and lakes . A unified sediment module should be further elaborated based on existing modules and implemented into unified RIVE. This sediment module will have to take into account not only the dissolved exchanges between the water column and the sediment but also the resuspension of particulates.
In addition, the unified RIVE v1.0 simulates phytoplankton dynamics, but periphyton or macrophyte development is not implemented in current versions. showed that periphyton plays a major role in carbon cycling (primary productivity) in small rivers, not only in the carbon stock fixed at the bottom of the river but also in the carbon enrichment downstream of the river. These limitations should be considered in future developments.
4.4 Benefit of the unified RIVE model
The unified RIVE provides a set of governing equations of freshwater biogeochemical processes across different software platforms, such as pyNuts-Riverstrahler ,
Open science has become increasingly popular and even indispensable in the scientific community as it allows for easier accessibility and the reproduction of scientific results. The unified RIVE project, as an open-source project, allows for the dissemination and wider use of the RIVE biogeochemical model by creating a public repository with different programming languages.
5 Conclusions
This paper presents a conceptual freshwater biogeochemistry model: unified RIVE v1.0, programmed in Python 3 and ANSI C. The degradation of organic matter by heterotrophic bacteria and the dynamics of primary producers (phytoplankton) and zooplankton including carbon cycling and nutrient cycling are described exhaustively. In unified RIVE v1.0, organic matter is degraded via bacteria activity, which is simulated by an HSB model. According to the results, the HSB model is able to model the organic matter degradation and bacterial dynamics in batch experiments. A case study is designed to compare the simulations of the two digital implementations (Python 3 for pyRIVE 1.0 and ANSI C for C-RIVE 0.32). These implementations simulate similar concentrations of all state variables including microorganisms, organic carbon, nutrients, and inorganic carbon.
The river stretch case study allows us to compare the two implementations of unified RIVE V1.0 under transient contrasting conditions involving complex biogeochemical cycles. The specific dynamics of each simulated species depend on different limiting factors. The calculation of photosynthesis of phytoplankton (diatoms, Chlorophyceae, cyanobacteria) takes into account the light that naturally presents a day–night variation. The development of diatoms specifically takes into account the dissolved silica in the simulated environment. The growth of microorganisms depends on the quantity of nutrients (primary producer, nitrifying bacteria) and the small monomeric substrate (heterotrophic bacteria). In addition, the effect of water temperature is also taken into account for the physiology of the simulated microorganism communities (photosynthesis, growth, respiration, mortality).
Finally, unified RIVE being an open-source project, contributions from the freshwater biogeochemistry community are strongly encouraged to achieve a better understanding of freshwater ecosystem functioning and further investigate the future of river systems in a changing world.
Appendix A Various implementations of the RIVE model and its applications in different freshwater systems
Table A1
Various implementations of the RIVE model and its applications in different freshwater systems.
Freshwater systems | Climates | Software platforms | References |
---|---|---|---|
Danube River (Romania and Bulgaria) | Continental | Riverstrahler | |
Day–Nhue River (Vietnam) | Tropical | Seneque-Riverstrahler | |
Grand Morin River (France) | Temperate | ||
Loire River (France) | Temperate | Grafs-Seneque/Riverstrahler | |
Lot River (France) | Temperate | Grafs-Seneque/Riverstrahler | |
Lule and Kalix rivers (Sweden) | Subarctic | Riverstrahler | |
Mosel River (Germany) | Temperate | Riverstrahler | |
Orgeval watershed (France) | Temperate | Seneque-Riverstrahler | |
Red River (China and Vietnam) | Tropical | Seneque-Riverstrahler | |
Scheldt River (Belgium and Netherlands) | Temperate | Seneque-Riverstrahler | |
Somme River (France) | Temperate | Seneque-Riverstrahler | |
Seine River (France) | Temperate | Seneque-Riverstrahler | |
Seine River (France) | Temperate | pyNuts-Riverstrahler | |
Seine River (France) | Temperate | ||
Zenne River (Belgium) | Temperate | Seneque-Riverstrahler | |
Sand-pit lake, reservoirs (France) | Temperate | Barman |
The 120 parameter values necessary for running unified RIVE v1.0 are provided hereafter.
Table B1Parameters related to heterotrophic bacteria.
Parameter | Description | Value | Unit |
---|---|---|---|
Maximal hydrolysis rate of DOM at 20 C related to LHB | 0.75 | [h] | |
Maximal hydrolysis rate of DOM at 20 C related to SHB | 0.75 | [h] | |
Maximal hydrolysis rate of DOM at 20 C related to LHB | 0.25 | [h] | |
Maximal hydrolysis rate of DOM at 20 C related to SHB | 0.25 | [h] | |
Maximal substrate (SMS) uptake rate of LHB at 20 C | 0.6 | [h] | |
Maximal substrate (SMS) uptake rate of SHB at 20 C | 0.16 | [h] | |
Growth yield of LHB | 0.25 | [–] | |
Growth yield of SHB | 0.25 | [–] | |
Mortality rate of LHB at 20 C | 0.05 | [h] | |
Mortality rate of SHB at 20 C | 0.02 | [h] | |
Sinking velocity of LHB | 0.0 | [m h] | |
Sinking velocity of LHB | 0.02 | [m h] | |
Optimal temperature of SHB | 20 | C | |
Optimal temperature of LHB | 22 | C | |
Range of temperature for SHB | 17 | C | |
Range of temperature for LHB | 12 | C | |
Half-saturation constant of LHB for small monomeric substrate | 0.1 | [mgC L] | |
Half-saturation constant of SHB for small monomeric substrate | 0.1 | [mgC L] | |
Half-saturation constant for DOM hydrolysis related to SHB | 0.25 | [mgC L] | |
Half-saturation constant for DOM hydrolysis related to LHB | 0.25 | [mgC L] | |
Half-saturation constant for DOM hydrolysis related to SHB | 2.5 | [mgC L] | |
Half-saturation constant for DOM hydrolysis related to LHB | 2.5 | [mgC L] |
Parameters depend on water temperature and are multiplied by , where is water temperature in C.
Table B2Parameters related to nitrifying bacteria.
Parameter | Description | Value | Unit |
---|---|---|---|
Maximal growth rate of AOB at 20 C | 0.07 | [h] | |
Maximal growth rate of NOB at 20 C | 0.05 | [h] | |
Half-saturation constant of AOB for O | 0.64 | [mgO L] | |
Half-saturation constant of NOB for O | 1.088 | [mgO L] | |
Half-saturation constant of AOB for NH | 0.75 | [mgN L] | |
Half-saturation constant of NOB for NO | 0.05 | [mgN L] | |
Growth yield of AOB | 0.07 | [mgC mgN] | |
Growth yield of AOB | 0.02 | [mgC mgN] | |
Mortality rate of AOB at 20 C | 0.005 | [h] | |
Mortality rate of NOB at 20 C | 0.005 | [h] | |
Sinking velocity of AOB | 0.005 | [m h] | |
Sinking velocity of NOB | 0.005 | [m h] | |
Optimal temperature of AOB | 23 | [C] | |
Range of temperature for NOB | 18 | [C] | |
Optimal temperature of NOB | 23 | [C] | |
Range of temperature for NOB | 18 | [C] |
Parameters depend on water temperature and are multiplied by , where is water temperature in C.
Table B3Parameters related to primary producer dynamics.
Parameter | Description | Value | Unit |
---|---|---|---|
Maximal photosynthesis rate of diatoms at 20 C | 0.2 | [h] | |
Maximal photosynthesis rate of green algae at 20 C | 0.25 | [h] | |
Maximal photosynthesis rate of cyanobacteria at 20 C | 0.1 | [h] | |
Photosynthetic efficiency of diatoms | 0.0012 | [h (E m s)] | |
Photosynthetic efficiency of green algae | 0.0012 | [h (E m s)] | |
Photosynthetic efficiency of cyanobacteria | 0.0012 | [h (E m s)] | |
Photoinhibition capacity of diatoms | 0.0 | [h (E m s)] | |
Photoinhibition capacity of green algae | 0.0 | [h (E m s)] | |
Photoinhibition capacity of cyanobacteria | 0.0 | [h (E m s)] | |
Light-extinction-related coefficient for pure water | 0.2 | [m] | |
Light algal self-shading light extinction coefficient | 0.02 | [m (g chl L)] | |
Light extinction coefficient related to suspended solid | 0.042 | [m (mg L)] | |
Maximal growth rate of diatoms at 20 C | 0.05 | [h] | |
Maximal growth rate of green algae at 20 C | 0.05 | [h] | |
Maximal growth rate of cyanobacteria at 20 C | 0.025 | [h] | |
Half-saturation constant for small precursors of diatoms | 0.06 | [–] | |
Half-saturation constant for small precursors of green algae | 0.06 | [–] | |
Half-saturation constant for small precursors of cyanobacteria | 0.06 | [–] | |
Half-saturation constant for nitrogen of diatoms | 0.014 | [mgN L] | |
Half-saturation constant for nitrogen of green algae | 0.014 | [mgN L] | |
Half-saturation constant for nitrogen of cyanobacteria | 0.014 | [mgN L] | |
Half-saturation constant for phosphorus of diatoms | 0.0155 | [mgP L] | |
Half-saturation constant for phosphorus of green algae | 0.062 | [mgP L] | |
Half-saturation constant for phosphorus of cyanobacteria | 0.062 | [mgP L] | |
Half-saturation constant for silica of diatoms | 0.196 | [mgSi L] | |
Maintenance respiration coefficient of diatoms at 20 C | 0.002 | [h] | |
Maintenance respiration coefficient of green algae at 20 C | 0.002 | [h] | |
Maintenance respiration coefficient of cyanobacteria at 20 C | 0.002 | [h] | |
Energetic cost of growth of diatoms | 0.5 | [–] | |
Energetic cost of growth of green algae | 0.5 | [–] | |
Energetic cost of growth of cyanobacteria | 0.5 | [–] | |
Basic excretion rate of diatoms | 0.006 | [h] | |
Basic excretion rate of green algae | 0.006 | [h] | |
Basic excretion rate of cyanobacteria | 0.006 | [h] | |
Excretion constant of diatoms related to photosynthesis | 0.001 | [–] | |
Excretion constant of green algae related to photosynthesis | 0.001 | [–] | |
Excretion constant of cyanobacteria related to photosynthesis | 0.001 | [–] | |
Maximal rate of reserve product synthesis for diatoms at 20 C | 0.15 | [h] | |
Maximal rate of reserve product synthesis for green algae at 20 C | 0.2 | [h] | |
Maximal rate of reserve product synthesis for cyanobacteria at 20 C | 0.075 | [h] | |
Maximal rate of reserve product catabolism for diatoms at 20 C | 0.2 | [h] | |
Maximal rate of reserve product catabolism for green algae at 20 C | 0.2 | [h] | |
Maximal rate of reserve product catabolism for cyanobacteria at 20 C | 0.2 | [h] | |
Rate of diatom mortality at 20 C | 0.025 | [h] | |
Rate of green algae mortality at 20 C | 0.025 | [h] | |
Rate of cyanobacteria mortality at 20 C | 0.015 | [h] | |
Sinking velocity of diatoms | 0.006 | [m h] | |
Sinking velocity of green algae | 0.001 | [m h] | |
Sinking velocity of cyanobacteria | 0.006 | [m h] | |
Optimal temperature of diatoms | 21 | [C] | |
Optimal temperature of green algae | 37 | [C] | |
Optimal temperature of cyanobacteria | 37 | [C] | |
Range of temperature for diatoms | 13 | [C] | |
Range of temperature for green algae | 15 | [C] | |
Range of temperature for cyanobacteria | 12 | [C] |
Parameters depend on water temperature and are multiplied by , where is water temperature in C.
Table B4Parameters for organic matter dynamics.
Parameter | Description | Value | Unit |
---|---|---|---|
DOM fraction in lysis products | 0.2 | [–] | |
DOM fraction in lysis products | 0.2 | [–] | |
DOM fraction in lysis products | 0.1 | [–] | |
POM fraction in lysis products | 0.2 | [–] | |
POM fraction in lysis products | 0.2 | [–] | |
POM fraction in lysis products | 0.1 | [–] | |
POM hydrolysis rate constant at 20 C | 0.005 | [h] | |
POM hydrolysis rate constant | 0.00025 | [h] |
Parameters depend on water temperature and are multiplied by , where is water temperature in C.
Table B5Zooplankton parameters.
Parameter | Description | Value | Unit |
---|---|---|---|
Maximal growth rate of ZOR at 20 C | 0.025 | [h] | |
Maximal growth rate of ZOC at 20 C | 0.015 | [h] | |
Maximal grazing rate of ZOR at 20 C | 0.1 | [h] | |
Maximal grazing rate of ZOC at 20 C | 0.05 | [h] | |
Half-saturation constant for grazing phytoplankton of ZOR | 0.1 | [mgC L] | |
Half-saturation constant for grazing phytoplankton of ZOC | 0.1 | [mgC L] | |
PHY | Threshold phytoplankton concentration for grazing of ZOR | 0.1 | [mgC L] |
PHY | Threshold phytoplankton concentration for grazing of ZOC | 0.1 | [mgC L] |
Mortality rate of ZOR at 20 C | 0.007 | [h] | |
Mortality rate of ZOC at 20 C | 0.007 | [h] | |
Optimal temperature of ZOR | 25 | [C] | |
Optimal temperature of ZOC | 25 | [C] | |
Range of temperature for ZOR | 10 | [C] | |
Range of temperature for ZOC | 10 | [C] | |
Sinking velocity of ZOR | 0.02 | [m h] | |
Sinking velocity of ZOC | 0.02 | [m h] |
Parameters depend on water temperature and are multiplied by , where is water temperature in C.
Table B6Phosphate- and silica-related parameters.
Parameter | Description | Value | Unit |
---|---|---|---|
Phosphate adsorption desorption | |||
Maximal adsorption capacity of mineral suspended solids (MSSs) | 0.00558 | [mgP mgMSS] | |
Half-saturation adsorption constant | 0.682 | [mgP L] | |
Silica dynamics | |||
Kb | Biogenic silica dissolution rate at 20 C | 0.0001 | [h] |
Code and data availability
C-RIVE 0.32 implements the unified RIVE v1.0 in ANSI C. It is available under Eclipse Public License 2.0 in the following Zenodo repository: 10.5281/zenodo.7849609 . pyRIVE 1.0 implements the unified RIVE v1.0 in Python 3 and is available under Eclipse Public License 2.0 in the InDoRES repository: 10.48579/PRO/Z9ACP1 . The dataset used in this paper is available in the following Zenodo repository: 10.5281/zenodo.10490669 ().
Author contributions
SW: conceptualization, methodology, software, validation, formal analysis, investigation, visualization, writing (original draft). VT: conceptualization, methodology, software, formal analysis, writing (review and editing), supervision. GB: conceptualization, methodology, data curation, formal analysis, writing (review and editing). JG: conceptualization, data curation, formal analysis, writing (review and editing). MS: software, writing (review and editing). AM: conceptualization, software. XY: software. NF: conceptualization, methodology, formal analysis, software, writing (review and editing), supervision, funding acquisition.
Competing interests
The contact author has declared that none of the authors has any competing interests.
Disclaimer
Publisher's note: Copernicus Publications remains neutral with regard to jurisdictional claims made in the text, published maps, institutional affiliations, or any other geographical representation in this paper. While Copernicus Publications makes every effort to include appropriate place names, the final responsibility lies with the authors.
Acknowledgements
This work was carried out under the PIREN-Seine program (
Particularly, we would like to dedicate this paper to the memory of Pierre Servais: his knowledge, expertise, and passion for this field of study will continue to guide us in the pursuit of our scientific work.
Review statement
This paper was edited by Vassilios Vervatis and reviewed by two anonymous referees.
You have requested "on-the-fly" machine translation of selected content from our databases. This functionality is provided solely for your convenience and is in no way intended to replace human translation. Show full disclaimer
Neither ProQuest nor its licensors make any representations or warranties with respect to the translations. The translations are automatically generated "AS IS" and "AS AVAILABLE" and are not retained in our systems. PROQUEST AND ITS LICENSORS SPECIFICALLY DISCLAIM ANY AND ALL EXPRESS OR IMPLIED WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES FOR AVAILABILITY, ACCURACY, TIMELINESS, COMPLETENESS, NON-INFRINGMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Your use of the translations is subject to all use restrictions contained in your Electronic Products License Agreement and by using the translation functionality you agree to forgo any and all claims against ProQuest or its licensors for your use of the translation functionality and any output derived there from. Hide full disclaimer
© 2024. This work is published under https://creativecommons.org/licenses/by/4.0/ (the “License”). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.
Abstract
Research on mechanisms of organic matter degradation, bacterial activities, phytoplankton dynamics, and other processes has led to the development of numerous sophisticated water quality models. The earliest model, dating back to 1925, was based on first-order kinetics for organic matter degradation. The community-centered freshwater biogeochemistry model RIVE was initially developed in 1994 and has subsequently been integrated into several software programs such as Seneque-Riverstrahler, pyNuts-Riverstrahler,
This paper presents a unified version of the RIVE model for the water column, including formalisms for bacterial communities (heterotrophic and nitrifying), primary producers, zooplankton, nutrients, inorganic carbon, and dissolved oxygen cycles. The unified RIVE model is open-source and implemented in Python 3 to create pyRIVE 1.0 and in ANSI C to create C-RIVE 0.32. The organic matter degradation module is validated by simulating batch experiments. The comparability of the pyRIVE 1.0 and C-RIVE 0.32 software is verified by modeling a river stretch case study. The case study considers the full biogeochemical cycles (microorganisms, nutrients, carbon, and oxygen) in the water column, as well as the effects of light and water temperature. The results show that the simulated concentrations of all state variables, including microorganisms and chemical species, are very similar for pyRIVE 1.0 and C-RIVE 0.32. This open-source project highly encourages contributions from the freshwater biogeochemistry community to further advance the project and achieve common objectives.
You have requested "on-the-fly" machine translation of selected content from our databases. This functionality is provided solely for your convenience and is in no way intended to replace human translation. Show full disclaimer
Neither ProQuest nor its licensors make any representations or warranties with respect to the translations. The translations are automatically generated "AS IS" and "AS AVAILABLE" and are not retained in our systems. PROQUEST AND ITS LICENSORS SPECIFICALLY DISCLAIM ANY AND ALL EXPRESS OR IMPLIED WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES FOR AVAILABILITY, ACCURACY, TIMELINESS, COMPLETENESS, NON-INFRINGMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Your use of the translations is subject to all use restrictions contained in your Electronic Products License Agreement and by using the translation functionality you agree to forgo any and all claims against ProQuest or its licensors for your use of the translation functionality and any output derived there from. Hide full disclaimer
Details




1 CNRS, EPHE, UMR Metis, Sorbonne Université, 75005 Paris, France
2 CNRS, FR3020 FIRE, Sorbonne Université, 75005 Paris, France
3 Mines Paris, PSL University, Center for geosciences and geoengineering, 77300 Fontainebleau, France