Ecological ReGional Ocean Model with vertically resolved sediments ( ERGOM SED 1 . 0 ) : Coupling benthic and pelagic biogeochemistry of the south-western Baltic Sea

Sediments play an important role in organic matter mineralisation and nutrient recycling, especially in shallow marine systems. Marine ecosystem models, however, often only include a coarse representation of processes beneath the sea floor. While these parametrisations may give a reasonable description of the present ecosystem state, they lack predictive capacity for possible future changes, which can only be obtained from mechanistic modelling. This paper describes an integrated benthic-pelagic ecosystem model developed for the German Exclusive Economic Zone 5 (EEZ) in the Western Baltic Sea. The model is a hybrid of two existing models: the pelagic part of the marine ecosystem model ERGOM and an early diagenetic model by Reed et al. (2011). The latter one was extended to include the carbon cycle, a determination of precipitation and dissolution reactions which accounts for salinity differences, an explicit description of adsorption of clay minerals and an alternative pyrite formation pathway. We present a one-dimensional application of the model to seven sites with different sediment types. The model was calibrated with observed pore water profiles and validated 10 with results of sediment composition, bioturbation rates and bentho-pelagic fluxes gathered by in situ incubations of sediments (benthic chambers). The model results generally give a reasonable fit to the observations, even if some deviations are observed, e.g. an overestimation of sulphide concentrations in the sandy sediments. We therefore consider it a good first step towards a three-dimensional representation of sedimentary processes in coupled pelagic-benthic ecosystem models of the Baltic Sea.

1 Introduction 1.1 Importance of the bentho-pelagic coupling Shallow coastal waters are the most dynamic part of the ocean due to the various effects of natural forcing and anthropogenic activities; they are characterised by the processing and accumulation of land-derived discharges (nutrients, pollutants, etc.), which influence not only the coastal ecosystem but also the adjacent deeper sea areas.Shallow marine ecosystems often differ significantly from those in the deeper parts of the sea (Levinton, 2013).One important reason for this is the influence of sedimentary processes on the pelagic ecosystem.This influence can take place in a number of different functional ways, including the following.
-Remineralisation of organic matter produced in the water column fuels the subsequent release of nutrients and enhances the productivity of these regions (Berner, 1980).
-At the same time, nutrients can be buried in the sediment in a particulate form (Sundby et al., 1992) or be removed by denitrification (Seitzinger et al., 1984).
-Sulfate reduction in the sediments may lead to a release of toxic hydrogen sulfide (Hansen et al., 1978).
-Benthic biomass and the primary production of benthic microalgae exceeds that of the phytoplankton in the overlying waters (Glud et al., 2009;Pinckney and Zingmark, 1993;Colijn and De Jonge, 1984) and represents a major food source for benthic organisms (Cahoon et al., 1999).In shallow regions, benthic primary production oxygenates the water column and competes with the pelagic one for nutrients (Cadée and Hegeman, 1974).
-Sediments serve as habitats for the zoobenthos, thereby affecting the overlying waters mainly via bioturbation or filtration (Gili and Coma, 1998).
-Other benthic organisms are food for opportunistic benthic-pelagic predator species, whose presence influences the pelagic system as well (Rudstam et al., 1994).
-Organisms typically inhabiting the pelagic may have benthic life stages and therefore rely on sediment properties for reproduction (Marcus, 1998).
This list, which could be continued, illustrates the importance of bentho-pelagic coupling for the functioning of shallow marine ecosystems.

Mechanistic sediment representation
In spite of this importance, the representation of sediments in marine ecosystem models is often strongly oversimplified.This is understandable, since these models are constructed to answer specific research questions, and if these focus on pelagic processes, it can be desirable to represent sediment functions by the simplest possible parameterisations.The drawback of using simple parameterisations is that they are mostly obtained from the present-day state.An example for such a parameterisation could be a percentage of organic matter which is remineralised in the sediments after its deposition and returned to the water column as nutrients.
When ecosystem models are used not only to understand the present, but also to estimate future ecosystem changes in response to external drivers, this causes a problem: the use of such simple parameterisations means an implicit no-change assumption.In other words, the quantitative relationships described by the parameterisation will remain unchanged in future conditions, e.g. after the construction of a fish farm or in a changing climate.It is not straightforward to estimate the error introduced into the model system if this assumption is not valid.An alternative to empirical parameterisations is the use of mechanistic models which try to derive the functionality of the subsystem from process understanding.For nutrient recycling in the sediments, this could be an early diagenetic model which estimates the final nutrient fluxes from a set of individual diagenetic processes.
Our aim is to construct a three-dimensional fully coupled model of pelagic and sediment biogeochemistry which does not make the no-change assumption.Specifically, we want to understand the following.
-How do changes in early diagenetic processes affect the reaction of a shallow marine ecosystem to climate change?
-Can pelagic ecosystem modelling provide realistic deposition of particulate organic matter to reproduce the local variability in early diagenetic processes?
In this paper, we report the first successful approaches of this goal: the construction of a combined benthic-pelagic biogeochemical model formulated in a one-dimensional, vertically resolved domain.The model is calibrated and applied to a specific area of interest, the south-western Baltic Sea.It provides the basis for the development of a three-dimensional framework.

Combining models of sedimentary and pelagic biogeochemistry
Marine biogeochemical models and process-resolving sediment models are very similar to each other in terms of their approach.They both try to describe a complex biogeochemical system with a limited set of state variables.Transformation processes are formulated as a parallel set of differential equations (e.g.van Cappellen and Wang, 1996).These have to obey the principle of mass conservation for any chemical element whose cycle is part of the model system.But in spite of these similarities, and even though both types of models have been extensively applied at least since the 1990s, there have not been many attempts, at least published ones, to combine them into one single benthic-pelagic model system.The review of Paraska et al. (2014), which compares existing sediment model studies, lists 83 publications of which 10 include a coupling to the water column.
In the simplest case, this coupling is only one-way: water column biogeochemistry is calculated first and then used as input for a sediment model.This type of model has been applied, for example, to the North Sea (Luff and Moll, 2004) and Lake Washington (Cerco et al., 2006).In these studies, full three-dimensional models were used for pelagic biogeochemistry investigations.The models aimed to explain regional patterns in sediment biogeochemistry.
To the best of our knowledge, the first fully coupled benthic-pelagic model system with vertically resolved benthic processes was published by Soetaert et al. (2001).They presented a modelling approach in which the biogeochemistry of the Goban Spur shelf ecosystem (north-east Atlantic) was described in a horizontally integrated, one-dimensional model.In the present communication we present a similar approach, adapted to understand the role of sediments for the ecosystem of the south-western Baltic Sea.
A number of fully coupled benthic-pelagic models have been published for different regions, each differing in the way the compartments are vertically resolved.In our study, we use several fixed-depth vertical layers both in the water column and in the sediment (Soetaert et al., 2001;Soetaert and Middelburg, 2009;Meire et al., 2013).Other studies use a two-layer sediment, for which the boundary between the layers is defined by the oxic-anoxic transition rather than a fixed depth (Lee et al., 2002;Lancelot et al., 2005).The opposite is true in the model of Reed et al. (2011), in which the water column is resolved with two layers only, while the sediment processes, which are clearly the focus of the study, are resolved on a fine vertical grid.These one-dimensional model studies also differ in the complexity of the biogeochemical reactions involved.One of the most complex early diagenetic models was recently published by Yakushev et al. (2017).This is integrated into the Framework for Aquatic Biogeochemical Models (FABM; http://www.fabm.net,last access: 10 January 2019).This generic interface allows for coupling to any biogeochemical model within its framework, from one-dimensional set-ups (as we described before) to three-dimensional applications.Our one-dimensional approach presented here can also be seen as an intermediate step towards a fully coupled three-dimensional ecosystem model, with a vertically resolved sediment model coupled under each grid cell.The way to go from the current model to the 3-D version is already pointed out in the model description.
There are a few successful regional applications of threedimensional set-ups with coupled water column and sediment biogeochemistry.Sohma et al. (2008) present such a model for Tokyo Bay, wherein they use it to explain the oc-currence of hypoxia and to understand the carbon cycle in the bay (Sohma et al., 2018).Brigolin et al. (2011) developed a fully coupled 3-D model for the Adriatic Sea and use it to estimate the seasonal variability of N and P fluxes.The ERSEM (Butenschön et al., 2016) is another example of two-way coupling of complex benthic and pelagic biogeochemical models which treats sediments in a different way: here, they are vertically resolved into three different layers (oxic, anoxic, sulfidic), and the pore water exchange among them follows a near-steady-state assumption.Another recent example is a Black Sea study by Capet et al. (2016), in which the authors apply a hybrid approach with a vertically integrated early diagenetic model.The partitioning between different oxidation pathways, typically determined by the vertical zonation, is obtained by running a one-dimensional, vertically resolved model (OMEXDIA; Soetaert et al., 1996a) over a range of different boundary values and fitting a statistical meta-model through its output.
Our region of interest is the Baltic Sea, particularly its south-western part where coastal marine sediments play an important role in the transformation and removal of nutrients from the water column.We combine two existing models which have already been successfully applied in the Baltic Sea, namely the pelagic ecosystem model ERGOM (Neumann et al., 2017) and the early diagenetic model by Reed et al. (2011), to obtain a full benthic-pelagic model of the south-western Baltic Sea.In the latter, several modifications were implemented as will be described.

The German part of the Baltic Sea and the SECOS project
The Baltic Sea is a marginal sea with only narrow and shallow connections to the adjacent North Sea.The small cross sections of these channels, the Danish Straits, and the correspondingly constrained water exchange have several implications for the Baltic Sea system.
-It is essentially a non-tidal sea.
-It is brackish due to mixing between episodically inflowing North Sea water with Baltic river waters, which causes an overall positive freshwater balance.
-It shows a pronounced haline stratification.
-It is prone to eutrophication due to the accumulation of mostly river-derived nutrients.
The German Exclusive Economic Zone (EEZ) in the Baltic Sea is situated to the south of the Danish Straits.It consists of different bights, islands and peninsulas and exhibits a strong zonal gradient and a strong temporal variability in salinity.This varies from 12 to over 20 g kg −1 north of the Fehmarn island to 7 to 9 g kg −1 in the Arkona Sea (IOW, 2017).Even lower salinities occur in river-influenced nearcoastal areas.Most of the sediment area is characterised by erosion or transport bottoms which only intermittently store deposited material before it is transported further into the central basins of the Baltic Sea (Emeis et al., 2002).Still, during this storage period, organic material is already partly mineralised and inorganic nitrogen is partly removed from the ecosystem by denitrification processes (Deutsch et al., 2010).This transformation of a bioavailable substance into a non-reactive form and its subsequent removal is one example of the type of ecosystem services (e.g.Haines-Young and Potschin, 2013) that coastal sediments can perform.
Understanding and quantifying the scope and scale of such sedimentary services in the German Baltic Sea has been the aim of the SECOS project (The Service of Sediments in German Coastal Seas, 2013-2019).The project contained a strong empirical part, including several interdisciplinary research cruises focused on sediment characterisation.Seven study sites were selected based on different granulometric parameters, each of them representative of a larger area.These were sampled several times in order to capture the effect of seasonality on biogeochemical functioning (see Fig. 1).The sampled stations include three sandy sites at Stoltera (ST), Darss Sill (DS) and Oder Bank (OB), three mud sites at Lübeck Bight (LB), Mecklenburg Bight (MB) and Arkona Basin (AB), and a silty site at Tromper Wiek (TW).The TW site has both an intermediate grain size and an intermediate organic matter content compared to the sandy and muddy sites.In this work, we focus on the development of our coupled one-dimensional benthic-pelagic model system for the German Baltic Sea.We use empirical data obtained from repeated sampling of the SECOS stations to calibrate and validate our early diagenetic model.Further work, discussing the fully coupled three-dimensional application of the model to assessing sedimentary services in the German Baltic Sea, will be described in a forthcoming paper.

Differences in biogeochemistry between permeable and impermeable sediments
In the study area, different types of sediments dominated by varying grain size fractions are found ranging from sand to mud.This implies differences in the biogeochemical processes associated with organic matter mineralisation and physical processes that are responsible for pore water and elemental transport in the sediment and across the sedimentwater interface.Due to its relatively larger grain sizes, sand acts as a permeable substrate, which means that lateral pressure variations may induce the advection of interstitial water.These pressure variations may be caused by waves or by the interaction between horizontal near-bottom currents and ripple formation.In muddy sediments, in contrast, molecular diffusion often controls the transport of dissolved species, which may be superimposed by the bioirrigating activity of macrozoobenthos (Boudreau, 1997;Meysman et al., 2006).These substantial differences cause differences in the biogeochemical properties of the substrate types.Pore water ad-vection in permeable sediments not only transports solutes but also particulate material.Fresh and labile organic matter (POC and DOC) from the fluff layer can be quickly transported into permeable sediments, the latter in this way acting as a kind of bioreactor.The typically low contents of reactive organics in sand led for a long time to the consideration of sands as "geochemical deserts" (Boudreau et al., 2001).In parallel, the low content of clay minerals and associated organic matter is often accompanied by lower microbial cell numbers when compared to muddy substrates (e.g.Llobet-Brossa, 1998;Böttcher et al., 2000).It has, however, been shown that microbial turnover rates in sands may also be high (Werner et al., 2006;Al-Raei et al., 2009).Actually, the supply of fresh organic material may lead to fast microbial degradation rates comparable to those of the organic-rich muddy sediments where more refractory organic material is accumulating at depth.The high mixing rates of pore water in the sands then bring together reactants for secondary reactions like coupled nitrification-denitrification, which makes these areas an effective biological filter, even if pore water concentrations are low compared to impermeable sediments.In our area of investigation, oxygen fluxes and sulfate reduction rates are comparable between sandy and muddy sites, while the organic content differs by an order of magnitude (Lipka et al., 2018a).

Fluff layer representation
As mentioned earlier, the transport of fluffy layer material from coast to basin areas is an important process in our region of interest.Previous studies with a pelagic ecosystem model (Radtke et al., 2012), which includes fluff layer dynamics, support this experimental finding and highlight the role of this mechanism for the overall nutrient exchange between coasts and basins.For this reason, we explicitly include the fluff layer in our model as a third compartment in addition to the water column and sediment.This approach, which is similar to Lee et al. (2002), is in contrast to most other coupled bentho-pelagic models.We see the explicit representation of fluff layer dynamics as one of the major advantages of our model.

Article structure
This article is structured as follows.In Sect. 2 we present a description of the model and the processes which are included.In Sect.3, we summarise which empirical data were used and give a brief explanation of how they were obtained.In Sect.4, we describe how these data were used to fit the model to the different stations, since the seven stations mentioned before serve as the test case for our model.The model results are shown and discussed in Sect.5, in which we provide a summary of the scope of model application and its limitations.The paper ends with Sect.6, in which conclusions and an outlook toward the model's future application

Model description
In this section, we give a description of the combined benthic-pelagic model.We start in Sect.2.1 with a brief introduction to the two ancestor models it descended from.The model is a purely biogeochemical model, not a physical model, so Sect.2.2 describes how the physics affecting the biogeochemical processes are prescribed.We then explain the model compartments and state variables in Sect.2.3.Before giving the full model equations in Sect.2.5, we first explain the vertical transport processes which occur in these equations in Sect.2.4.
The core of the model is obviously the biogeochemical processes represented within it.Their description therefore forms the major part of this paper.Biogeochemical processes in the water column are described in Sect.2.6 and those in the sediment follow in Sect.2.7.The carbonate system is the same in both compartments and is described separately in Sect.2.8.Since most of the biogeochemical processes included in our model are already contained in preceding models in exactly the same way, we decided to only give a qualitative description of them in the main text.The quantitative details, including the values of the model constants we used, are presented in a separate, complete description in the Supplement.In contrast, we give a detailed and quantitative description of the "new" processes in the main text, i.e. those that are less common or those that differ from the ancestor models, since we assume that this will be the most interesting part for the majority of readers.The Supplement also contains a table of the model constants and the sensitivities of the model results to changes in the individual parameter values.
The model description is completed by details on numerical aspects given in Sect.2.9.Finally, in Sect.2.10, we give a short note on the procedure by which we automatically generate the model code from a formal description of the model processes.

Ancestor models
The combined benthic-pelagic model is based on two ancestors.
-The water column part is based on ERGOM, an ecological model developed originally for the Baltic Sea (Neumann, 2000).It has been continuously developed since its first publication, and the latest improvements include introducing refractory dissolved organic nitrogen (Neumann et al., 2015) and transparent exopolymers (Neumann et al., 2017).From the start, ERGOM contained three functional groups of phytoplankton representing large-cell (diatom) and small-cell (flagellate) primary producers as well as diazotroph cyanobacteria and the ability to simulate hypoxic-anoxic conditions.
ERGOM is typically used in a three-dimensional context as a part of marine ecosystem models.With some modifications, it has been applied for different ecosystems such as the North Sea (Maar et al., 2011) and the Benguela upwelling system (Schmidt and Eggert, 2016).It is an intermediate-complexity model for the lower trophic levels up to zooplankton and has been applied for a broad range of scientific questions.
-The sediment part is based on a model developed for a study on the effect of seasonal hypoxia on sedimentary phosphorus accumulation in the Arkona Sea (Reed et al., 2011).This model is, as many others of its kind, a descendant of the van Cappellen and Wang (1996) model, which focused on the sedimentary iron and manganese cycle and the mineralisation pathways of oxic mineralisation, denitrification and sulfate reduction.An extensive literature survey (combined with model fitting to observations) allowed for the estimation of a large quantity of model constants such as solubility products and half-saturation constants.These were later on inherited by several early diagenetic models, including the one presented in this article.These models solve the diagenetic equations typically applied at a well-defined single site as a one-dimensional set-up.
Like the present one, the model by Reed et al. (2011) is a prognostic model and solves the time-dependent equations rather than making a steady-state assumption.

Physical parameters used in the model simulations
Since our model is a purely biogeochemical model, it requires a physical environment in which it is embedded.In a final, three-dimensional application, this will be a hydrodynamic host model, and the biogeochemical model described in this communication will be coupled into it.These are prescribed by forcing files1 which need to be provided in order to run the one-dimensional model.We obtain these data from a three-dimensional model simulation of the Baltic Sea ecosystem (Neumann et al., 2017).This simulation was performed using the Modular Ocean Model (MOM) version 5.1 (Griffies, 2018).The model had a horizontal resolution of 3 nm and a vertical resolution of 2 m, covering the entire Baltic Sea.Open boundary conditions were applied in the Skagerrak at the transition to the North Sea.
The model was driven by atmospheric forcing data from the coastDat dataset (Weisse et al., 2009), which were extended in time using data from the German Weather Service (Schulz and Schattler, 2014).The ERGOM ecosystem model, as described in the previous section, was implemented in the physical host model, so it produced a hindcast simulation of both the physics and biogeochemistry of the Baltic Sea ecosystem.We extracted model output from the simulated year 2015 at the different locations as input for the 1-D model.Since we run the 1-D model for a longer period, the physical forcing is repeated every year.

Model compartments and state variables
The one-dimensional model consists of four compartments as shown schematically in Fig. 2: 1. the water column, 2. a fluff layer deposited on the sediment surface, 3. the sedimented solids and 4. the pore water between them.
The water column and sediment are vertically resolved, with the former in layers of 2 m depth such that their number depends on the water depth of the specific site and the latter in 22 layers increasing in depth from 1 mm at the sediment surface to 2 cm at the bottom of the modelled sediment at 22 cm of depth.These specific numbers are not intrinsic to the model but can be changed in the input files 2 .The current choice of 22 cm for the sediment depth was made according to the availability of pore water data.
The chosen vertical resolution must be seen as a compromise between speed and accuracy.Especially for the 3-D application, we want to keep the numerical effort of the calculations as small as possible.A comparison to a run with double resolution is shown in Appendix E, and it shows minor deviations among the resolutions.
Sediment porosity is prescribed 3 and site specific.As a simplifying assumption, accumulating organic material does not change the porosity.Similarly, the amount of material accumulated in the fluff layer does not change the remaining volume in the bottom water cell.
The tracers (model state variables) present in each of the compartments are listed in Table 1.All of the tracers have a fixed stoichiometric composition, which is shown in Appendix A. When stoichiometric ratios change, such as during detritus decomposition, more than one tracer is needed.This means we can check mass conservation at the design time of the model by formulating it in a process-based way as outlined in Radtke and Burchard (2015).To check this mass conservation, the chemical reaction equations need to be formulated in a complete way, which is why "virtual tracers" such as water may be included in the process formulation, even if they do not occur as state variables in the model.
Total alkalinity is a parameter describing the buffering capacity of a solution against adding acids; it describes the amount of a strong acid that needs to be added to titrate it to a pH of 4.3.In our model, it is represented as a "combined tracer", which means that its rate of change depends on 2 physics/cellheights.txt, physics/sed_cellheights.txt 3 physics/sed_inert_ratio.txt its constituents (OH − , H 3 O + , PO 3− 4 ) which are actively produced or consumed.The reasoning behind this is explained in Sect.2.8.
The state variables will not be discussed one by one here, but rather in the section about the biogeochemical processes (Sect.2.6 and 2.7) where their role in the ecosystem will be explained.

Transport processes
The processes which transport the tracers vertically are schematically shown in Fig. 2. Their detailed implementation is discussed here.
Horizontal exchange (transport) is neglected in our onedimensional model.This is obviously an inadequate approximation for the water column processes, as we do not consider basins, but rather single stations, some of which are situated in proximity to river mouths where lateral transport processes have a major impact (Schneider et al., 2010;Emeis et al., 2002;Christiansen et al., 2002).We solve this issue in the future application of the biogeochemical model in a three-dimensional model system (Cahill et al., 2019).
In this model, we are not specifically interested in the water column as such but rather see it as being responsible for delivering the right amount of sedimenting detritus at the right time.To obtain this, we relax the wintertime nutrients in the surface layer to a realistic value.This may be seen as a parameterisation of a lateral exchange process.In addition, transport of fluff layer material away from or towards the modelled location is a lateral process included in the model.The physical processes which are explicitly included in our model are described here.Vertical exchange due to turbulent mixing in the water column is prescribed externally 4 by a turbulent diffusivity.In our case, it is taken from a three-dimensional MOM5 model run (Neumann et al., 2017).In this model set-up, turbulent vertical mixing is estimated by the KPP turbulence scheme (K profile parameterisation; Large et al., 1994), which considers both local mixing and, in the case of unstable stratification, (non-local) convection.We only take into account the local part of the mixing and apply it to all tracers in the water column.

Particle sinking
In our model, suspended particulate matter sinks at a constant rate through the water column.We choose 4.5 m day −1 for detritus, 1 m day −1 for manganese and iron oxides, including the phosphate adsorbed by them, and 0.5 m day −1 for largecell phytoplankton and particulate organic carbon.In contrast, cyanobacteria are not sinking but, due to their positive buoyancy, they show an upward movement of 0.1 m day −1 .
In reality, the sinking rate differs among individual particles; the currently chosen average values are a result of fitting the previous ERGOM model with the simplified sediment representation to observations.

Sedimentation and resuspension
Shear stress at the bottom determines whether erosion or sedimentation takes place.We apply the combined shear stress of currents and waves calculated by the same MOM5 model as the turbulent mixing.If this shear stress τ is below a critical value of τ c = 0.016 N m −2 (Christiansen et al., 2002), the sinking suspended matter accumulates in the fluff layer compartment.If it is exceeded, the fluff layer material is resuspended into the lowest water cell at a constant relative rate r ero = 6 day −1 .In our model, no material will ever be resuspended from the sediment itself, which starts below the fluff layer.This means that our model is incapable of realistically capturing extreme events like storms or bottom trawling which winnow the upper layers of the sediment, removing organic material, which has a lower sinking velocity, by separating it from the heavier mineral components (Bale and Morris, 1998).It also neglects a washout, which is the removal of organic matter from the sediment pores by advective transport of pore water by strong bottom currents (Rusch et al., 2001).In our model, sediment reworking by currents and waves is not explicitly represented, but rather parameterised together with the bioturbation process.This process allows for a bi-directional exchange of particulate material between the sediment and the fluff layer; see Sect.2.4.5.The upward component of the 4 physics/diffusivity.txt transport represents winnowing of sediments (Bale and Morris, 1998).

Bioerosion
In environments with oxic bottom waters, we assume that in addition to waves and currents, macrofaunal animals or demersal fish can resuspend organic material from the fluff layer by active movements (Graf and Rosenberg, 1997).Therefore, under oxic conditions, we assume that r biores = 3 % day −1 of the fluff material is resuspended independently from the shear stress conditions.This number was estimated from the calibration of a three-dimensional Baltic Sea ecosystem model (Neumann and Schernewski, 2008) in which the process proved to be critical for transporting organic matter to the deep basins below a depth of approx.60 m.In these depths, a resuspension due to wave-induced shear stress is no longer possible.

Bioturbation
Bioturbation describes the movement and mixing of particles inside the sediment caused by the zoobenthos. 5In fact, it is difficult to discriminate what causes the vertical mixing of particles; physical effects like bottom shear may also have the same effect.We therefore include them in our "bioturbation" process.
We consider bioturbation to act as a vertical diffusivity D B,solids (z) on the concentrations of the different solid species in the sediment.This implies that we exclude nonlocal mixing processes, even if they may be important in nature (Soetaert et al., 1996b), and try to represent them by local mixing.We only take intraphase mixing into account, which means we assume that the porosity (z) remains constant over time.
The diffusivity D B,solids (z) is also applied to describe the transport between the uppermost sediment layer and the fluff, which is caused by benthic organisms.In reality, the fluff layer may strongly differ in its compaction (porosity) depending on the turbulence conditions.However, we assume it to be perfectly compacted (φ = 0) to be able to apply the above equation to describe the exchange process and therefore assume a thickness of 3 mm.This is not a physical assumption but rather a numerical trick which we use to transport the fluff material into the sediments.In reality, the fluff layer may be up to a few centimetres thick, and the incorporation of organic matter is done by macrofaunal activities (e.g.van de Bund et al., 2001).
The value 3 mm describes a volume estimate of SPM (suspended particulate matter) taken from this region: typical SPM concentrations in the lowermost 40 cm of the water col-H.Radtke et al.: ERGOM with vertically resolved sediments umn are about 8 mg L −1 higher compared to the value 5 m above the sea floor (Christiansen et al., 2002).As the density of these particles is just slightly higher than that of the surrounding water, we can estimate their volume at approximately 3 L m −2 , which gives 3 mm of height if perfectly compacted.We see this explicit treatment of the fluff layer as a major advantage compared to the deposition of sinking particles directly into the surface sediments.We regard it as essential for the application of the model in a three-dimensional setting.
The vertical structure of bioturbation intensity, D B,solids (z), is parameterised vertically as follows.
In the uppermost part of the sediment, we assume a constant bioturbation rate.Below that, it decays exponentially with depth until it reaches a maximum depth, which may be below the bottom of our model.So, we externally prescribe (a) the maximum mixing intensity6 and (b) three length scales describing the vertical structure of bioturbation7 , which are the depth down to which the maximum mixing rate is applied (z full ), the length scale of the exponential decay of the mixing rate below this depth (z decay ) and the maximum depth of mixing (z max ).
The present formulation of the model has no explicit dependence of bioturbation depth on the availability of oxidants, i.e. bioturbation will take place in oxic as well as in sulfidic environments; adding this dependence should be essential if the model is applied to sulfidic areas.

Bioirrigation
Bioirrigation describes the mixing of solutes within the pore water and the exchange with the bottom water.We describe it as a mixing intensity D B,liquids (z).The vertical profile of bioirrigation intensity is assumed identical to that of bioturbation.The maximum bioirrigation rate is assumed constant in time and prescribed externally8 .

Molecular diffusion
Molecular diffusion in the sediment can be described by the equation (Boudreau, 1997).Here, D 0 describes the molecular diffusivity in a particle-free solution, which is effectively reduced by the effect of hydrodynamic tortuosity θ .This describes the effect that the solutes need to travel a longer path as the direct way may be obstructed by solid particles.It is estimated from porosity by θ 2 = 1 − 2.02 ln(φ) (Boudreau, 1997).A diffusive exchange between the pore water and the overlying bottom water is controlled by the thickness of a diffusive boundary layer.While in reality this relates to the viscous sublayer thickness and is therefore inversely related to the velocity of the bottom water (Boudreau, 1997), for simplicity we assume a constant diffusive boundary layer thickness of 3 mm.
In reality, the diffusive boundary layer thickness is on the order of 1 mm at low-bottom-shear situations and becomes even shallower if the bottom shear increases (e.g.Gundersen and Jorgensen, 1990).We choose a larger value because we need to account for the transport through the fluff layer as well.A future model version might include a dependence of this parameter on the bottom shear stress.
Molecular diffusivities for the different solute species are calculated from water viscosity following Boudreau (1997).The water viscosity is determined from salinity and temperature (assumed to be identical to that in the bottom water cell).A problem occurs with the combined tracers DIC and total alkalinity, as they do not represent a specific ion but rather a set of different species with different molecular diffusivities.For simplicity, we approximate DIC diffusivity to be that of the HCO − 3 ion, the most common one at the pH values we expect.For total alkalinity, we take a two-step approach: in the first step, we also take the diffusivity of the HCO − 3 ion.But this is an underestimate, especially for the OH − ions, which increase in concentration as the solution becomes alkaline.To take their higher diffusivity into account, we introduce two additional tracers, t_ohm_slowdiff and t_ohm_quickdiff.Before the molecular diffusion is applied during a model time step, they are both set equal to the OH − concentrations.During the diffusion time step, the former diffuses with the reduced HCO − 3 diffusion rate, the latter with the OH − diffusivity.So afterwards, total alkalinity is corrected by adding the difference of the two, t_ohm_quickdiff-t_ohm_slowdiff.This results in a smoothed alkalinity profile.

Sediment accumulation
In nature, sediments grow upwards as new particulate matter is deposited onto them.In our model, this process is taken into account, but represented as the downward advection of material in the sediment.So, our coordinate system moves upward with the sediment surface.We assume that the sediment growth is supplied by terrigenous, bioinert material and prescribe9 a growth rate from the literature for the mud stations only (Table 7).We do not assume sediment growth for the sand and silt stations.
We use a simple Euler-forward advection to move the material from each grid cell into the cell below.Material leaving the model through the lower boundary is lost.Except for organic carbon, we assume that a part of it is mineralised, as will be explained in Sect.2.7.1.In the top cell, new organic material from the fluff layer enters by sediment growth.

Parameterisation of lateral transport
The Baltic Sea sediments can be classified as accumulation, transport and erosion bottoms (Jonsson et al., 1990).The lateral transport of matter is characterised by the advection of fluff layer material from the transport and erosion bottoms in the shallower areas to the accumulation bottoms in the deep basins (Christiansen et al., 2002).As this process is not represented in our 1-D model set-ups, we need to parameterise it.
For the sandy and silty sediments, we assume transport away from the site.This is described by a constant removal rate for all material deposited in the fluff layer.For the mud stations, we assume transport of organic material towards the site.This is described by a constant input of detritus.Our model contains six detritus classes which degrade at different rates, as will be explained later in Sect.2.6.4.We assume that the quickest-degradable part of the detritus is already mineralised in the shallow coastal areas before its lateral migration to the mud stations and therefore exclude the first two classes from this artificial input.
In the 3-D version of the model, these processes are no longer required, as the material is dynamically removed from the shallow sites and transported to deeper ones by advection.

Equations of motion
In this subsection, we will describe the equations of motion solved by the model.The equations in the water column can be derived from the assumption that the vertical (upward) flux of a tracer can be described by an advective and a diffusive flux, which follows Fick's law: where c wat (z, t) denotes the tracer concentration and D wat is the turbulent diffusivity given as external forcing 10 .For particulate matter, the constant w describes its vertical velocity relative to the water, which is negative if the particles are sinking.For dissolved tracers, w is set to zero.We further assume that the water itself does not move vertically.In this case, conservation of mass yields an advection-diffusion equation: where q wat c (z, t) describes the biogeochemical sources minus sinks of the considered state variable.
The equations in the sediment are different because we need to take porosity into account and treat dissolved tracers (in the pore water) and solid tracers differently.For the pore water tracers, the upward flux is given by where φ(z) is the porosity of the sediment (the ratio between pore water volume and total volume), which we assume as constant in time.The concentration c pw (z, t) relates to the pore water volume only.The effective diffusivity D pw is the sum of two contributions, the effective molecular diffusivity θ 2 and the effective (bio)irrigation diffusivity D B,liquids (z).
The advection-diffusion equation is then given by which is a well-known early diagenetic equation (Boudreau, 1997).For the solid-state tracers, their concentration c sed (z, t) relates to the volume of the solids only, and the flux is given by where w(z) is the velocity for virtual vertical downward transport.It results from sediment growth due to the deposition of particulate material, but as we keep the sedimentwater interface at a constant position in our model, we need to describe the increasing depth in which we find individual sediment particles as downward advection.Volume conservation of the particulate material requires that we write w(z) as such that the vertical velocity gets smaller in depths at which the sediment is more compacted, and w 0 describes a theoretical velocity which would occur at perfect compaction (φ = 0)11 .The advection-diffusion equation then reads Practically, we do not store the concentration c sed (z, t) (mol m −3 ) as a state variable but rather the quantity of the tracer per area in a specific layer, C sed (k, t) (mol m −2 ), where k is a vertical index.The transformation is straightforward: For particulate tracers, we also consider storage in the fluff layer, C fluff (t), which is measured in mol m −2 .The equation for C fluff (t) is derived in the following subsection.

Boundary conditions
Boundary conditions are required for the partial differential equations given above.We give two boundary conditions for the water column concentrations: one at the sea surface, z surf , and one at the sediment-water interface, z 0 .We also give two boundary conditions for the sediment concentrations: one at the sediment-water interface, z 0 , and one at the lower model boundary, z bot .We start describing the boundary conditions from bottom to top for the dissolved tracers and then continue describing them from top to bottom for the particulate and solid-phase state variables.
The pore water tracers have a zero-flux boundary condition at the bottom of the model: An exception to the zero-flux boundary is the parameterisation of sulfide production in the deep, which will be discussed later.
At the sediment-water interface, we assume that the dissolved tracers are exchanged between pore water and the water column via a diffusive boundary layer of a depth z bbl .So, our upper boundary condition for the pore water tracers is given by This flux can be directed into or out of the sediment, depending on where the concentration is larger.
To satisfy mass conservation, the vertical flux applied as the lower boundary condition for the dissolved species concentrations in the water column depends on the upward flux from the sediment: The additional term Q fluff (t) represents the sources minus sinks of the dissolved state variable, which are caused by biogeochemical transformations of the fluff layer material.
At the sea surface, we apply a zero-flux condition, both for dissolved and particulate state variables: An exception is only made for tracers which are modified by gas exchange with the atmosphere, e.g.oxygen.Now the boundary conditions for the particulate state variables are different.The reason is that the water column and the sediment do not directly interact, but we consider the fluff layer as an intermediate layer between the two.Particulate material which sinks to the bottom is deposited in the fluff layer, from which it is incorporated into the sediments.
At the bottom of the water column, there can be two possible situations.
-If the bottom shear stress is lower than the critical shear stress, we assume a deposition of particulate material.This sinking material (w < 0) vanishes from the water column because of sedimentation.It appears in the fluff layer.
-If the bottom shear stress exceeds the critical shear stress, particulate material from the fluff layer is eroded and enters the water column.
In both cases, we additionally consider the bioresuspension process which was described above in Sect.2.4.4.We can therefore formulate the boundary condition for particulate material as The fluff interacts with the surface sediment layer in two ways.Firstly, sediment growth means an incorporation of fluff layer material into the surface sediments.Secondly, bioturbation, which is considered diffusion-analogue mixing, leads to an exchange of particulate material between the fluff layer and surface sediment.So, the boundary condition for solids at the sediment surface is given by Here, z fluff represents a virtual thickness of the fluff layer assuming it was perfectly compacted; see the discussion in Sect.2.4.5.In this way, the benthofaunal processes of incorporating fluff layer material into the surface sediments can be simply described as a diffusion-analogue flux of particulates.
The opposite processes which cause removal of fine-grained material from the sediments, winnowing or washout, can be described in the same way as a diffusion process, in this case upward.This occurs in the model, especially when the fluff layer material is resuspended during periods of high bottom shear and the concentration C fluff (t) is correspondingly low.The concentration change in the fluff layer is then defined by mass conservation and is simply given by for all particulate state variables.Here, Q pw c (t) describes the sources minus sinks term from the biogeochemical transformations of the considered state variable.
Finally, the burial of particulate material at the lower model boundary can be described by the following boundary condition: So, we assume the particulate material to be buried forever when it leaves the model domain.An exception, as mentioned before, is the parameterisation of deep sulfide formation, which is described in Sect.2.7.

Biogeochemical processes in the water column
In this section, we describe the biogeochemical processes acting in the water column.These are mostly identical to previously published ERGOM versions (e.g.Neumann and Schernewski, 2008;Neumann et al., 2015), which contained a more simple, vertically integrated sediment model.As in the previous section, we provide a quantitative description including the model constants in the Supplement.
A reaction network table giving the reaction equations, including their stoichiometric coefficients, is given in Table 2.

Primary production and phytoplankton growth
There are three classes of phytoplankton in the model, representing large-cell and small-cell microalgae as well as diazotroph cyanobacteria.Their growth is determined by a class-specific maximum growth rate, but contains two limiting factors for nutrients and light.The light limitation is a saturation function with optimal growth at a class-specific optimum level or at 50 % of the surface radiation.The shortwave light flux at the surface is taken from a dynamically downscaled ERA40 atmospheric forcing (Uppala et al., 2005) using the regional Rossby Centre Atmosphere model (RCA).Nutrient limitation is a quadratic Michaelis-Menten term for DIN (nitrate + ammonium) or phosphate, depending on which one is limiting, based on Redfield stoichiometry.Diazotroph cyanobacteria are only limited by phosphate and not by DIN, but they are only allowed to grow in a specific salinity range.Cyanobacteria and small-cell algae also require a minimum temperature to grow (Wasmund, 1997;Andersson et al., 1994).
However, according to Engel (2002), although nutrients are limiting an enhanced polysaccharide exudation could be the result of a cellular carbon overflow whenever nutrient acquisition limits biomass production but not photosynthesis.These transparent exopolymers are included in our model, and they are assumed to have a constant sinking velocity.

Phytoplankton respiration and mortality
We assume a constant respiration of phytoplankton which is proportional to its biomass.As the model maintains the Redfield ratio, the degradation of biomass (catabolism) goes along with the excretion of ammonium and phosphate.This simplified description of phytoplankton growth does not describe day-night metabolism or temperature dependence.A small fraction of the nitrogen is released as dissolved organic nitrogen (DON).In the model, this represents the DON fraction which is less utilisable by phytoplankton, while the fraction with high bioavailability is considered to be part of the ammonium state variable.
Due to simplification, in our model phytoplankton experiences a constant background mortality, although we know this is far away from reality in which it is species specific and depends on abiotic (e.g.nutrient, light, etc.) and biotic conditions.An additional mortality is generated by the grazing of zooplankton as described next.

Zooplankton processes
Zooplankton is only represented as one bulk state variable.It grows by assimilating any type of phytoplankton; however, it has a smaller food preference for the cyanobacteria class compared to the other classes.The uptake becomes limited by a Michaelis-Menten function if the zooplankton's food approaches a saturation concentration.Feeding can only take place in oxic waters and is temperature dependent.It shows a maximum at an optimum temperature and a doubleexponential decrease when this temperature is exceeded.
Both zooplankton respiration and mortality represent a closure term for the model.They are meant to include the respiration and mortality of the higher trophic levels (fish) which feed on zooplankton, and therefore we use a quadratic closure.Mortality is additionally enhanced under anoxic conditions, which do not occur in our study area.

Mineralisation processes
The description of detritus12 differs from the previous ER-GOM versions.We have split the detritus into six classes, depending on its degradability.This degradability is described as a decay rate constant, which ranges from 0.065 day −1 for the first class to 1.6×10 −5 day −1 for the fifth class, while the last one is assumed to be completely bioinert.This type of model is known as a "multi-G model" (Westrich and Berner, 1984).
Details on the specific choice of the classes are given in Appendix B.
The mineralisation is, however, temperature dependent by a Q 10 rule (Thamdrup et al., 1998;Sawicka et al., 2012), as it is realised by microbial processes; the values given above are valid at 0 • C. The 0 • C choice is somewhat arbitrary.Actually, the model is not very sensitive to this choice, as an enhanced baseline temperature, meaning a lower decomposition rate of each class, would be compensated for by a shift in the class composition, leaving higher concentrations of quickly degradable detritus classes, which overall means a very similar total decomposition rate; see Appendix B.
When organic detritus is created by plankton mortality, it is partitioned into the different classes in a constant ratio.This ratio was determined from a fit of the multi-G model to an empirical relation between detritus age and its relative decay rate, which was proposed by Middelburg (1989).The fraction of non-decaying detritus was estimated from empirically determined carbon burial rates in the Baltic Sea (Leipe et al., 2011).
The chemical composition of detritus is, in contrast to phytoplankton and zooplankton, not determined by the Redfield ratio.It is enriched in carbon and phosphorus by 50 % such that it has a C : N : P ratio of 159 : 16 : 1.5.This resembles detritus compositions as they were determined in sediment traps and by investigating fluffy layer material in the Baltic Sea (Heiskanen and Leppänen, 1995;Emeis et al., 2000;Emeis et al., 2002;Struck et al., 2004).
In the water column, detritus can be mineralised by three different oxidants: oxygen, nitrate and sulfate.They are utilised in this order; if the preferential oxidant's concentration declines, the specific pathway is reduced by a Michaelis-Menten limiter and the next pathway takes over such that the total mineralisation is held constant.In all pathways, DIC, ammonium and phosphate are released.Nitrate reduction also produces molecular nitrogen (heterotrophic denitrification), while sulfate reduction generates hydrogen sulfide.
Mineralisation of particulate organic carbon in transparent exopolymers takes place via the same pathways, but only releases DIC.DON is also mineralised after some time and decays to ammonium (which may represent the transformation to bioavailable DON compounds).

Reoxidation of reduced substances
In the presence of oxygen, ammonium is nitrified to nitrate (e.g.Guisasola et al., 2005).The intermediate step, the formation of nitrite, is omitted in the model.Hydrogen sulfide can be reoxidised by oxygen or by nitrate (chemolithoautotrophic denitrification) (e.g.Bruckner et al., 2013).This takes place as a two-step process via the formation of elemental sulfur (Jørgensen, 2006).All reoxidation processes exponentially increase their rates with temperature.
In the sediments, we additionally assume that Fe 2+ can be produced as a reduced substance.If it is released from the sediments and enters the water column, it can be reoxidised by oxygen, creating suspended iron oxyhydroxides.

Adsorption and desorption reactions
Dissolved phosphate can be adsorbed to iron oxyhydroxide particles suspended in the water column.In the same way, phosphate adsorbed to iron oxyhydroxide particles can be released if the ambient concentration of phosphate is low.The process is identical to the one in the sediments and is discussed in Sect.2.7.5 in detail.

Biogeochemical processes in the fluff layer, sediment and pore water
In this section, we qualitatively describe the sedimentary biogeochemical processes contained in the model.For a quantitative description including the model constants, we refer to the Supplement.Figure 3 gives a schematic overview of the processes considered in the sediment model.As with every model, the chosen set of biogeochemical processes and variables does not aim at completeness in its representation of reality, but rather at the strongest possible simplification which still retains the required complexity to describe the processes we are interested in.For this reason, we do not, for example, consider methane formation explicitly.
The stoichiometry of the processes included in the model is shown in three reaction network tables.
-Primary redox reactions are given in Table 3.
-Secondary redox reactions are given in Table 4.
-Adsorption-desorption and precipitation-dissolution reactions are given in Table 5.

Mineralisation in general
The mineralisation of detritus is the dominant biogeochemical process in the sediments, as the oxidation of the carbon therein is the major supply of chemical energy for microbes.
As in the water column, oxidants are utilised in a specific order, and a smooth transition to the next mineralisation pathway occurs when the preferred one gets exhausted.However, the number of possible oxidants is increased in the sediment, as here solid components may also act as electron acceptors.The order in which they are utilised is (Boudreau, 1997) 1. oxygen, 2. nitrate, 3. manganese oxide, 4. iron oxyhydroxide, 5. Fe (III) contained in clay minerals and 6. sulfate.
After sulfate is exhausted, typically the formation of methane would start.This process is omitted in the current model, as we designed our model for the top 22 cm of the south-western part of the Baltic Sea, where we do not expect sulfate to be www.geosci-model-dev.net/12/275/2019/Geosci.Model Dev., 12, 275-320, 2019 limiting.This depth restriction is based on the limited length of the sediment cores taken in the empirical part of our research project.We do, however, describe the process implicitly, since we assume that a part of the organic carbon which leaves the model domain through the lower boundary will be transformed to methane, which as it diffuses upward will be oxidised by sulfate and generate H 2 S. Therefore, we parameterise this process by a conversion from sulfate to hydrogen sulfide at the lower boundary.
As in the water column, we distinguish six different classes of detritus with different basic mineralisation rates.
Details on the specific choice of the classes are given in Appendix B.
These rates are only controlled by temperature, not by the specific oxidant which is available.There is an ongoing controversy as to what determines the rate of sedimentary carbon decay and whether it is the oxidant (and therefore the accessible energy per mole of carbon) or the degradability of the detrital carbon itself (Kristensen et al., 1995;Arndt et al., 2013).In leaving out the explicit dependence of the oxidant, we do not favour the latter theory; we chose to adopt the decay rates proposed by Middelburg (1989), which may implicitly take the effect of the oxidant into account 13 .
Sedimentary organic phosphorus (OP) may degrade faster than the corresponding nitrate and carbon, an effect known as preferential P mineralisation (Ingall and Jahnke, 1997).We include this by introducing additional state variables t_detp_n for each class n of detritus, describing the OP concentration, as well as a constant factor pref_remin_p, 13 Middelburg's equation states that material which is decomposed later will be decomposed slower.This may be because the material itself is different or because the oxidant is different.The Middelburg model includes both effects, and splitting them in a mechanistic model would mean preferring one theory or the other.So what we do assume if we just apply the Middelburg model is that the time which a particle spends in the oxic zone, the anoxic zone and the sulfidic zone is similar in our setting to Middelburg's experiments.In this case, the Middelburg model will include the correct slowing-down of degradation caused by the less efficient oxidant.
which describes a redox-dependent ratio between the mineralisation speeds of OP and organic carbon and nitrogen.This factor is set equal to 1 under oxic conditions and greater than 1 under anoxic conditions (Jilbert et al., 2011).This approach follows Reed et al. (2011).

Specific mineralisation processes
Here, we describe the implementation of the primary redox reactions, indicated by the red numbers in Fig. 3.
Oxic mineralisation and heterotrophic denitrification are formulated in the same way as in the water column; see Sect.2.6.4.
The next pathway is the reduction of Mn (IV) to Mn (II), which produces dissolved manganese.
The reduction of iron oxyhydroxides should produce dissolved Fe (II).This, however, may precipitate very quickly, especially where hydrogen sulfide is present.So for numerical reasons, we combine these reactions, and the reduced Fe (III) is directly converted into iron monosulfide or considered as adsorbed by clay minerals, as we describe below in Sect.2.7.3.Some clay minerals, especially sheet silicates which are abundant in the German part of the Baltic Sea (Belmans et al., 1993), contain structural iron which is available for redox reactions (e.g.Jaisi et al., 2007).We prescribe a station-specific content of these minerals given in Table 7 and assume that they contain a small amount (0.1 mass-%) of reducible iron; this is because a particle analysis of sheet silicates from the area of interest (Leipe, unpublished data) showed slightly lower iron contents in the sulfidic zone compared to the surface area.
The primary redox reaction follows process 32 in Table 3; we describe it in detail since it is a new process added to our model.Mineralisation of organic carbon under the reduction of structural iron in sheet silicates takes place at a rate of www.geosci-model-dev.net/12/275/2019/Geosci.Model Dev., 12, 275-320, 2019 where t_sed_k is the amount of detritus per area in a specific sediment layer, r k is a basic reactivity for this class (see Appendix B), τ = 0.15 K −1 is a temperature sensitivity constant for the mineralisation and T is the temperature in • C. The limitation functions l ?are of Ivlev type, e.g.Sulfate reduction produces hydrogen sulfide.As discussed above, it represents the terminal mineralisation process in our model.This process, described by processes 33 and 34 in Table 3, follows the formulation by Reed et al. (2011) in our model.Organic material leaving the lower boundary of our model because of sediment growth will also be mineralised by this process.We assume that a fraction of the buried material will be mineralised by either sulfate reduction or methanogenesis, the rest being buried.For the methane produced, we assume that it will not enter the model domain but rather be oxidised by sulfate, producing H 2 S below the model domain.We assume for simplicity that all these reactions happen instantaneously, which results in the same net reaction as the sulfate reduction.

Precipitation and dissolution reactions
Solids can precipitate from a solution when it becomes supersaturated.This happens in an aqueous solution when the actual ion activity product exceeds the respective solubility product and a critical degree of supersaturation is reached (e.g.Sunagawa, 1994;Böttcher and Dietzel, 2010).
Diagenetic models often simplify the calculation by multiplying the concentrations rather than the activities (e.g.van Cappellen and Wang, 1996).The resulting product is then proportional to the actual solubility product as long as the ionic strength of the solution does not change.As the ionic strength of seawater is almost completely defined by its salinity (Millero and Leung, 1976), this assumption is well justified for most marine environments.The Baltic Sea, however, is a brackish sea with strong spatial and temporal changes in bottom salinity, especially in the western part (e.g.Leppäranta and Myrberg, 2009).For this reason, we take the activity coefficients, which transform concentrations to activities, into account.This is done by using the Davies equation (Davies, 1938), which determines the individual activity coefficient a i as (Stumm and Morgan, 2012) where I is the ionic strength expressed in mol L −1 , z i is the ion charge and A is the Davies parameter calculated after Kalka (2018): Here, is the dielectric constant of water calculated after Gadani et al. ( 2012)14 , and T K is the temperature in K. Ca-rhodochrosite precipitates at elevated concentrations of manganese and carbonate.Its solubility product is composition dependent, as the Ca : Mn ratio varies (Böttcher, 1997;Böttcher and Dietzel, 2010).For Baltic Sea muds in which ratios around 0.6 occur, an effective solubility product (including the effect of oversaturation) of 10 −9.5 to 10 −9 M 2 can be deduced from Jakobsen and Postma (1989).In our model, the reaction follows process 53 in Table 5. 10 % of the dissolved manganese will precipitate per day if the solution is undersaturated.Saturation is calculated by the formula (Jakobsen and Postma, 1989) where CO 2− 3 is the concentration of carbonate ions, which depends on DIC concentration and pH; see the description of the carbon cycle in Sect.2.8.The term a 2 is the activity coefficient for ions with a charge of 2; see Eq. ( 21).The term in the denominator is the solubility product for rhodochrosite (Jakobsen and Postma, 1989).
If the solution becomes undersaturated, rhodochrosite will be dissolved again.Then, process 53 is reversed, and a fixed amount of 10 −6 mol kg −1 day −1 of manganese (II) is released until saturation is reached.
Iron monosulfide precipitates on contact with dissolved Fe (II) and sulfide, depending on pH, with a solubility product taken from Morse et al. (1987).But, as stated in Sect.2.7.2, we assume for numerical reasons that this process takes place directly after Fe (III) reduction.The solubility product is then used in an inverse way to determine the equilibrium concentration of dissolved Fe (II) at the current pH, sulfide concentration and salinity: where a i represents the Davies activity coefficients (see Eq. 21), and 10 −2.95 mol L −1 is the solubility product for iron monosulfide (Morse et al., 1987;Theberge and Iii, 1997).
We then assume a precipitation or dissolution of iron monosulfide, which relaxes the present concentration of Fe (II) against this equilibrium.This is in agreement with a pore water chemistry model for the central Baltic Sea (Kulik et al., 2000), which states that dissolved iron concentrations in the pore water are buffered by iron sulfides (mackinawite and greigite).The dissolution of iron monosulfide also takes place if clay minerals in the same grid cell are capable of adsorbing additional Fe (II).This process is described in Sect.2.7.5.
As a simplification, we neglect the change in porosity which would be caused by precipitation (or dissolution) of any solids.

Pyrite formation
Pyrite (FeS 2 ) is a crystalline compound formed in early diagenesis (Rickard and Luther, 2007).Its formation from iron monosulfide is included in most early diagenetic models.This process is not a simple precipitation process, but rather a redox process.While both sulfide and iron monosulfide contain sulfur of oxidation state −2, the redox state of S in pyrite is −1.This implies that an electron acceptor is required to create pyrite.A generally accepted mechanism for pyrite creation is the use of zero-valent sulfur from polysulfides; this may be created by the oxidation of sulfate with Fe (III).However, this process alone cannot explain the high degrees of pyritisation in Baltic deep sediments (Boesen and Postma, 1988).
An additional pathway which does not rely on elemental sulfur, but instead reduces hydrogen sulfide to hydrogen gas, has been proposed by Drobner et al. (1990), Rickard andLuther (1997), andRickard (1997).Similar to how it was done in early diagenetic models (e.g.Wijsman et al., 2002), we include this pathway and therefore assume that whenever iron monosulfide and H 2 S are present, pyrite is formed from them.The generated H 2 will be consumed by sulfatereducing bacteria (Stephenson and Stickland, 1931), so in the net reaction, sulfate acts as the electron acceptor.
In our model, the reaction therefore follows process 39 in Table 4.The speed of the transformation process is determined by where t_ims is the concentration of iron monosulfide, t_h2s is the concentration of hydrogen sulfide and k pyr is a kinetic constant for conversion of iron monosulfide to pyrite.Its value of 8.9 kg mol −1 day −1 was adopted from Wijsman et al. ( 2002) and Rickard and Luther (1997), which use 8.9 L mol −1 day −1 .

Adsorption balances
Adsorption in our model takes place on the surfaces of two particle types: iron oxyhydroxides and clay minerals.Adsorption on silicate particles is not explicitly represented in the model, but parameterised by a reduction of the effective diffusivity of phosphate and ammonium, following Boudreau (1997).
Iron oxyhydroxides adsorb dissolved phosphate.This is a well-known process responsible for the sedimentary retention of phosphate derived from mineralisation processes (e.g.Sundby et al., 1992).As both phosphate and hydroxide ions can occupy the adsorption sites at the surface, adsorption is less efficient in alkaline environments.In our model, we use a formula from Lijklema (1980) which describes the adsorbed P : Fe ratio at a given phosphate concentration and pH.Here, DIP gives the dissolved phosphate concentration.But we use it inversely.We calculate an equilibrium concentration for dissolved phosphate at the current P : Fe ratio and pH.
DIP eq = max 1 0.201 If the current concentration of dissolved phosphate is above this equilibrium concentration, adsorption takes place and PO 4 in the pore water is decreased.If it is below the equilibrium concentration, desorption takes place.The maximum function is added to treat situations when both pH and the amount of adsorbed phosphate get so low that the formula by Lijklema (1980) gives no real solution for DIP.In this case, we assume that all currently dissolved phosphate will become adsorbed.The model processes p_po4_ads_ips and p_ips_diss_po4 will change the phosphate concentration in the pore water by where k_ips_dissolution = 0.1 day −1 is a reaction rate constant we assume.We chose this probably unrealistically low value for reasons of numerical stability.Following Reed et al. (2011), we define two classes of iron oxyhydroxides.The first one is fresh, amorphous and adsorbs phosphate.The second one is a more crystalline phase, for which we assume no adsorption.The first phase is transformed to the second one with a constant rate in time, implying continuous phosphate release.
Clay minerals, due to their large surface area, can also adsorb pore water species.We allow for an adsorption of phosphate, ammonium and Fe (II).For simplicity, we assume that the ratio of adsorbed species to clay mass is proportional to the pore water concentration until a saturation threshold is exceeded.For Fe (II), this proportionality constant is derived from Jaisi et al. (2007), for ammonium from Raaphorst and Malschaert (1996), and for phosphate from Edzwald et al. (1976).In all three cases, we calculate a pore water concentration which is in equilibrium with the current ratio of adsorbed species to clay mineral mass.Then adsorption or release processes take place to relax the present pore water concentration towards the equilibrium value.
To calculate Fe 2+ eq,clay , we first determine the mass of clay minerals present in a specific model layer per square metre.This is done by the formula Here, ρ clay = 2.7 × 10 3 kg m −3 gives the density of montmorillonite (Osipov, 2012), z (m) gives the thickness of the layer, (1 − φ) gives the ratio between the volume of the solids and the total volume of the sediments, and r clay is the volume fraction of clay minerals among the total volume of solids.So, m clay has a unit of kg m −2 .In the next step, we find out how much iron gets adsorbed to clay depending on the dissolved concentration.For Fe (II) concentrations much smaller than 1 mmol L −1 as we observe in our sediments, we can linearise the adsorption isotherms given by Jaisi et al. ( 2007) and obtain Fe 2+ ads,clay = αq mass max Fe 2+ m clay , where q mass max is a mass-specific sorption capacity (mol kg −1 ), α is a binding energy constant (L mol −1 ) and [Fe 2+  ] is the concentration of iron in the pore water (mol L −1 ).We can rearrange the equation to obtain the equilibrium concentration of dissolved Fe (II): For the product α • q mass max , Jaisi et al. (2007) find values between 500 and 3000 L kg −1 for different types of clay, which means 1 kg of clay added to 0.5 to 3 m 3 of water would adsorb the same amount of Fe 2+ as would remain in the solution.We adopt a value of 1000 L kg −1 for our model.
For numerical reasons, we allow for an immediate precipitation of the desorbed Fe (II) as iron monosulfide in the case of oversaturation, leaving out the intermediate transformation to dissolved Fe (II).The inverse is also true: if iron monosulfide is dissolved, the released Fe (II) may directly be adsorbed by the clay minerals instead of being released to the pore water first.This is described by process 52 in Table 5.
For the adsorption isotherm of phosphate on clay minerals, we follow the study by Edzwald et al. (1976).They give maximum adsorption capacities m P,ads,max /m clay between 0.09 mg g −1 for P on kaolinite and 2.58 mg g −1 for illite.These values were obtained at a pH close to 7.5, and the pH dependence of adsorption differs among the different clay minerals.Since the composition of the clay minerals is unknown to us, we choose a conservative value of 0.2 mg g −1 ; this could be adapted when such data are available.In contrast to Fe (II) adsorption, a half-saturation of P adsorption is already reached at concentrations around 1 mg L −1 , which corresponds to approx.0.03 mmol L −1 .We model this saturation in a very simple way by a linear dependency of dissolved and adsorbed phosphate below a threshold concentration of dissolved phosphate and a constant amount of adsorbed phosphate if the threshold is exceeded: where M P = 31 g mol −1 is the molar mass of phosphate, m clay is the mass of clay per square metre in the given grid cell (see Eq. 29), m P,ads,max /m clay = 0.2 mg g −1 is the assumed maximum adsorption capacity and PO 3−,sat 4 = 0.03 mmol L −1 is the concentration of dissolved phosphate at which we assume this saturation is reached.We then define an adsorption and a desorption reaction following process 49 in Table 5.The adsorption process is assumed to happen instantaneously, but for numerical reasons we limit the process rate by demanding that at maximum (a) 10 % of the dissolved phosphate is removed per day or (b) 10 % of the lack of adsorbed phosphate with reference to the equilibrium concentration is precipitated.This artificial deceleration of the precipitation process had to be included to avoid numerical difficulties.The desorption process works in a similar way.At maximum, 10 % of the adsorbed phosphate which exceeds the equilibrium concentration is released per day or 10 % of the saturation concentration PO 3−,sat 4 , whichever is less.
For ammonium adsorption to clay minerals, the processes are in principle identical to those of phosphate.Since the adsorption is weak compared to that of phosphorus (in the range below 1 µmol g −1 ; Raaphorst and Malschaert, 1996), we neglect the effect by setting the maximum amount of adsorbable ammonium to zero in our present set-up.So while the model is able to include the dynamics of ammonium adsorption to clay minerals, we make no use of it in the present application.

Reoxidation of reduced substances
Reduced substances can be reoxidised if the appropriate oxidant is present in a sufficient concentration.Table 6 gives a summary of the redox reactions implemented in our model, which will be described one by one in this section.
Ammonium is oxidised to nitrate in the presence of oxygen.The rate of this process is proportional to both the ammonium and the oxygen concentration and, as in the water column, increases exponentially with temperature.
Dissolved manganese (II) will be oxidised in the presence of oxygen and precipitates as manganese oxide.This is also assumed to be a second-order process proportional to both precursor concentrations.
Dissolved Fe (II) is oxidised by oxygen in a pH-dependent way.The rate of this process is proportional to the Fe (II) and oxygen concentration, as well as to the square of the hydronium ion concentration.It is also influenced by temperature and ionic strength, as described by Millero et al. (1987).For numerical reasons, we also allow for the direct oxidation of Fe (II) adsorbed to clay minerals.Alternatively, dissolved Fe (II) can be oxidised by reducing manganese.This process follows Reed et al. (2011).The generated Fe (III) immediately precipitates as iron oxyhydroxide.
Structural iron in clay minerals can be reoxidised as well.We only allow this process in the presence of oxygen, when it transforms back to Fe (III), which is kept bound in the clay minerals.
This reaction follows process 43 in Table 4.The process runs at the speed of p_i2i_oxo2_i3i = max(i3i_max − t_i3i, 0) The oxidation occurs only until the maximum amount of reducible Fe (III) in the clay material, i3i_max, is reached.It occurs at a rate of r_i2i_ox = 0.1 day −1 , a somewhat arbitrary value indicating that the process is typically fast compared to the vertical transport of clay minerals.It is Ivlevlimited by a factor O 2,min with O 2,min = 2.0× 10 −5 mol kg −1 , consistent with the concentration at which carbon oxidation becomes limited.
Hydrogen sulfide can reduce any of the previously mentioned oxidants being converted to sulfate.The reaction with oxygen or nitrate is carried out as a two-step reaction.The intermediate species formed in these reactions is elemental sulfur, which can be further oxidised to sulfate.These processes follow the same kinetics as in the water column; see Sect.2.6.5.Hydrogen sulfide can alternatively react with manganese oxides or iron oxyhydroxides, producing dissolved Mn (II) or Fe (II).For the generated Fe (II), however, we assume either an immediate precipitation to iron monosulfide or an immediate absorption to clay minerals, whichever is more favourable.We assume these reactions to be proportional to both the concentration of sulfide and the → Fe(OH) 3 + + Fe 2+(ads-clay)  → Fe(OH) 3 + Fe 2+(in-clay)  → Fe 3+(in-clay) + H 2 S → SO 4 metal oxides.Hydrogen sulfide can also reduce structural Fe (III) in the clay minerals, and the Fe (II) will in this case remain in the clay.This reaction follows process 47 in Table 4.The process runs at a speed of p_i3i_redh2s_i2i = max(i3i_max − t_i3i, 0) The model parameter r_i2i_ox describes a relative speed of 0.1 day −1 at which H 2 S is reoxidised by this process, a somewhat arbitrary value just expressing our assumption that the process is fast compared to vertical transport of the clay minerals.The model shows low sensitivity to this rate parameter, as shown in the Supplement.The process is Ivlevlimited by the factor l i3i .Iron monosulfide is typically not directly oxidised but dissolves at low sulfide concentrations.However, if it is exposed to oxygen, we assume complete oxidation to Fe (III) and sulfate.
Finally, pyrite can be oxidised in the presence of oxygen or manganese (IV), but in marine environments not by Fe (III) (Schippers and Jørgensen, 2002).We assume complete oxidation to sulfate and iron oxyhydroxides.

Carbon cycle
The carbon cycle in this model is included, following Millero (1995) and Dickson et al. (2007).Four parameters describe the state of the dissolved carbonate system in the water: -pH, total alkalinity (TA), dissolved inorganic carbon concentration (DIC) and -CO 2 partial pressure (pCO 2 ).
Knowledge of any two of them allows for the determination of the other two parameters.We use TA and DIC as state variables.The reason for this is that both pH and pCO 2 can be changed by quick equilibrium reactions with a proton transition, which occurs faster than our model time step allows, while TA and DIC cannot.For details on these reactions, see Dickson et al. (2007).
The DIC concentration can increase by the mineralisation of organic carbon and decrease when DIC is assimilated by phytoplankton.Also, it can be modified by CO 2 exchange with the atmosphere.Calcification and carbonate dissolution are not considered in our model.Total alkalinity changes if acidic or alkaline substances are added or removed.The substances occurring in our model approach which change alkalinity are OH − , H 3 O + and PO 3− 4 ions.The effect of dissolved organic matter on total alkalinity (Kuliński et al., 2014;Ulfsbo et al., 2015) is neglected in the present model, but it may be included in a future version.
The tracer value changes by 1 unit if (see Table 1) ohminus is changed by 1 unit, -h3oplus is changed by −1 unit or -t_po4 is changed by 0.5 units.
As the pH (for adsorption and precipitation reactions) and pCO 2 (for gas exchange with the atmosphere) are of particular importance, we need to derive these from the state variables.This is done in an iterative procedure.Starting with a guessed pH value (from the last model time step), we aim to correct it until it is consistent with the given values of t_alk and t_dic.To perform this correction, we calculate the fractionation of DIC into the different species (CO 2 , HCO − 3 , CO 2− 3 ).From this, we determine a carbonate alkalinity as where square brackets denote a concentration.This can be determined by (Dickson et al., 2007) where H 3 O + = 10 −pH and k 1,CO 2 and k 2,CO 2 are the acid dissociation constants for carbonates as taken from Dickson et al. (2007).We do the same for other substances taking part in acid-base dissociation reactions (water, boron, sulfide, phosphate): .
The dissociation constants k are taken from Dickson et al. (2007), and the total boron concentration is calculated from salinity as (Moberg and Harding, 1933) where S denotes salinity.
The sum of all their alkalinities should then match the total known alkalinity, but a difference occurs because the approximated pH was incorrect.
So, we do a Newton iteration to find an improved pH estimate.
This is done by calculating the derivative and obtaining the new pH estimate as We use a fixed number of 10 iteration steps for a better parallel performance of the code.Finally, we can calculate pCO 2 as

Numerical aspects
The equations which determine the temporal evolution of the state variables are solved by a mode-splitting method; i.e. concentration changes due to physical and biogeochemical processes are applied alternately in separate sub-time steps.
For a discussion of this method and alternatives we refer to Butenschön et al. (2012).

Numerics of physical processes
Vertical diffusion is done explicitly by multiplying each vertical tracer vector by a diffusion matrix.This includes turbulent mixing in the water column as well as pore water diffusion, bioturbation (faunal solid transport) and bioirrigation (faunal solute transport).This diffusion matrix is tridiagonal, and for a small time step, which is in our case limited by the thin layers at the top of the sediment, a Euler-forward method can be applied.Larger time steps could be split into smaller Euler-forward steps, which means a repeated multiplication by the tridiagonal matrix.We instead use an efficient algorithm to calculate powers of the tridiagonal matrix (Al-Hassan, 2012) and perform the multiplication only once.
Geosci The sources and sinks for the different tracers are calculated from the process rates.These include not only biogeochemistry, but also parameterisations for lateral transport processes as well as sedimentation and resuspension.
To calculate the changes in a tracer concentration with time, we form the sum of the processes consuming or producing it (Radtke and Burchard, 2015): Here, T i represents the concentration of tracer i, p k is the rate at which process k runs and q ik (and s ik ) is the stoichiometric ratio in which process k produces (or consumes) tracer i.In order to ensure both non-negativity of the tracer concentrations and mass conservation, we apply the positive Euler-forward method from Radtke and Burchard (2015).It is a clipping method which, in the case that a tracer concentration becomes negative during one Euler-forward time step, first executes a partial time step until this tracer is zero.Then the rest of the time step is continued without the processes consuming this tracer, i.e. they are switched off.More than two partial time steps may be needed if more than one tracer is exhausted.

Automatic code generation
The model code is not handwritten.Instead, the model is described in a formal way in terms of its tracers, constants and processes in a set of text files.The model code is then generated by a code generation tool (CGT) which fills this information into a code template file.The advantage is that the same biogeochemical equations can in this way be integrated into different models.While the current version is written in Pascal, the three-dimensional version in MOM5 has been created as a Fortran code.The CGT is open-source software and can be downloaded at http://www.ergom.net(last access: 10 January 2019).

Observed data used for model applications
We use four different observational datasets for model calibration and validation.The data used are (a) pore water profiles for different dissolved species, (b) sediment elemental composition, (c) estimates of bioturbation intensity and (d) bentho-pelagic fluxes measured in benthic chamber lander incubations.

Selected stations
All data were collected at seven different stations in the southern Baltic Sea (see Fig. 1; we always present the stations from west to east).The mud stations LB and MB are situated in the Mecklenburg Bight, a trough-like bay in the south-western Baltic Sea where salinities are up to 20 g kg −1 .
Stations ST and DS are on sandy substrate, and the latter one is situated in only 22 m of depth near the major sill, which impedes the transport of the more saline North Sea water into the inner part of the Baltic Sea.Station AB is situated in the central Arkona Basin in 45 m of depth.The Arkona Basin is the most western basin of the inner Baltic Sea.It accumulates organic matter not only from local primary production, but also laterally imported particles from coastal areas experiencing strong eutrophication, especially from the Oder River (Christiansen et al., 2002).Station TW is a silt station with a median grain size around 40 µm.The last station, the sandy station OB on the Oder Bank, is not a place of organic matter deposition, but rather of transformation before the detritus is transported to deeper locations.The Oder Bank is a shallow sandy area strongly influenced by the Oder River plume (Voss and Struck, 1997).
All the stations were sampled during 12 cruises which took place between July 2013 and January 2016 to cover different seasons (Lipka, 2018).However, not every station was sampled during every cruise.The calibration of the model occurred in parallel with the sampling campaign such that only data from the first seven cruises (until January 2015) were used for model fitting.

Pore water analyses
Short sediment cores with intact sediment-water interfaces were taken by a multicorer, a device which simultaneously extracts eight sediment cores from the sea floor.Pore water was extracted at different depths by rhizones.For a detailed description of the analytical methods used, we refer to Lipka et al. (2018a).Here, we just give a short summary: ammonium concentrations were measured onboard using standard photometric methods (e.g.Winde et al., 2014).The quantification of major and trace elements was done on land, following the ICP-OES method (Kowalski et al., 2012).Dissolved inorganic carbon was measured by a mass spectrometer in the gas phase after treatment of the pore water sample with phosphoric acid.Total alkalinity was determined colorimetrically after Sarazin et al. (1999).Dissolved sulfide was determined spectrophotometrically by the methylene blue technique (Cline, 1969).
Instead of directly comparing sulfate concentrations between model and reality, which change over time with salinity, we use the sulfate deficit defined as

Sediment composition
Parallel sediment cores from the same multicorer casts as used for the pore water analysis were subsampled in 1 cm steps, freeze-dried under vacuum and homogenised for geochemical analyses.Total carbon (TC) as well as nitrogen (TN) and sulfur (TS) contents were measured by combustion, chromatographical separation of the released gases and their determination with a thermal conductivity detector.The total inorganic carbon (TIC) content was measured by acidic removal of carbonates and analysis of the released CO 2 with a nondispersive infrared detector.The total organic carbon (TOC) content was then calculated by the subtraction of TIC from TC values.At the sand stations (ST, DS and OB), the mass fractions were measured in the fine fraction (< 63 µm) of the sediment only, assuming that the coarse fraction does not contain these elements in a significant amount.Thus, the percentage in the whole sediment was calculated by multiplying with the fine fraction ratio that was determined by laser diffractometry.Analytical details related to the devices used, their calibration, and precision and accuracy can be obtained from Bunke (2018).

Bioturbation intensity estimates
In order to analyse bioturbation intensities (D B ), 6 to 24 cores per station were sliced onboard immediately after retrieval at 0.5 cm intervals to 3 cm of depth and at 1 cm intervals to 10 cm for vertical chlorophyll a (Chl a) profiles.All samples were deep-frozen (−18 • C) and stored until extraction (Sun et al., 1991).In the laboratory, the defrosted sediment samples were homogenised and three parallel subsamples of 1 cm 3 volume were taken from each slice.After adding 9 mL of 96 % ethanol and an incubation period of 24 h in the dark, the samples were centrifuged at 4000 rpm for 5 min and measured photometrically (663 and 750 nm); chlorophyll was calculated based on HELCOM (1988).The vertical chlorophyll profiles were interpreted using the biomixing model developed by Soetaert et al. (1996b).Experimentally derived chlorophyll decay constants of 0.01 day −1 for mud and 0.02 day −1 for sand (Morys, 2016), and an artificially small sedimentation rate ω of 0.00001 cm day −1 , were used, the latter just reflecting the fact that chlorophyll decay is much faster than sedimentation.The model applied may distinguish between diffusive and non-diffusive mixing.The latter mode of bioturbation was neglected in our study despite the fact that it may be the dominant particle transport process in certain areas (e.g.AB).

Bentho-pelagic fluxes
Total oxygen uptake (TOU) and bentho-pelagic nutrient fluxes (NO − 3 , NH + 4 , PO 3− 4 ) of the sediments were measured in situ with two identical benthic lander systems, each a "mini benthic chamber" courtesy of Stefan Sommer and Pe-ter Linke (GEOMAR Kiel, Germany) during cruises AL434, EMB076, POS475, EMB100 and EMB111 (Lipka, 2018).All systems were equipped with a Plexiglas ® chamber (diameter 19 cm), an electronically driven glass syringe water sampler and oxygen optodes (Aanderaa Instruments, Norway; no.4831) inside and outside of the chamber.The oxygen concentration trend was used as the main parameter for gas fluidity and tightness.Each respective chamber covers a sediment area of 284 cm 2 and the chamber water volume was in the range of 5-8 L depending on sediment penetration depth.Incubation times at the sea floor ranged from 9 to 48 h.Discrete chamber water samples were gathered by up to eight glass syringes (volume approx.45 mL) in intervals of 1-7 h, depending on total deployment time.Photo lights (So-laDive 1200) and a photo camera (GoPro Hero Black Edition 3+) were used for the observation of the chamber deployment, particularly to check for sediment disruption.The start of incubation was defined if initial concentrations inside the chamber were close to bottom water concentrations.Nutrient concentrations were measured with a QuAAtro multianalyser system (Seal Analytical, Southampton, UK) onboard using standard photometric methods (Grasshoff et al., 2009).Nutrient fluxes were calculated from the linear increase or decrease in concentration versus time, corrected for the surface-area-to-volume ratio of each chamber.A robust linear regression method which is tolerant to outliers was applied (Huber, 1981;Venables and Ripley, 2002), and the uncertainties of the fluxes were obtained by an ordinary bootstrapping approach (Canty and Ripley, 2017;Davison and Hinkley, 1997).The regression analysis to determine their fluxes was performed in the same way as for the nutrients.TOU was calculated by standard linear regression of O 2 concentration versus time (with R 2 values above 0.98) within a period, while O 2 concentration did not sink below 15 % of the initial concentration (Glud, 2008).Calibrations of O 2 optodes were performed in ambient seawater aerated for 30 min (100 % atmospheric saturation) and in saturated seawater -sodium dithionite solution (0 % oxygen), regularly cross-checked by Winkler titration (Winkler, 1888).

Model set-up and optimisation
There are three ways in which observations feed into our model: 1. model constants which were derived in earlier studies and which our model adopted from previous models; 2. initial and boundary conditions determining tracer concentrations at the beginning and throughout the model run; and 3. calibration data which help to confine uncertain model parameters during a repeated model calibration process.and Wang (1996), a thorough confinement of model constants based on observations was achieved.We add to that by supplying site-specific observations for porosity for all seven stations, set to a homogeneous value per substrate type estimated from measurements within the SECOS project (Lipka et al., 2018b).The assumption of a homogenous value is a first approximation motivated by the future aim to use the model in a three-dimensional context.While detailed spatial maps of surface porosity exist, vertical profiles are rare.The effect of this simplification is discussed in Appendix D. Sediment growth estimations for the three muddy sites are taken from different sources, as shown in Table 7.

Initial and boundary conditions
The initial conditions for most biogeochemical state variables in the water column are taken from the previous run of a three-dimensional ERGOM model as described in Sect.2.2 (Neumann et al., 2017), which contained a simplified sediment model as described e.g. in Radtke et al. (2012).Concentrations of sulfate and calcium were set to salinitydetermined values as described by the standard composition of sea salt (Turekian, 1968).Dissolved dinitrogen was initialised at 100 % saturation (Hamme and Emerson, 2004).
In contrast, fluff and sediment were initialised empty.We allowed them to fill up with material derived from the water column during the simulated period of 100 years.While this period of 100 years is not sufficient to fill the considered 22 cm of sediment by accumulation, it is sufficient to almost reach a steady state in the pore water concentrations.While the sixth class of detritus, which is considered nonbiodegradable, continues accumulating in the sediments after 100 years, those classes which affect the pore water concentrations decay on smaller timescales.
Since the model conserves nitrogen and phosphorus, the filling of the sediments would have led to a depletion in the water column.To overcome this, we relax the winter concentrations of dissolved inorganic nitrogen and phosphorus (DIN and DIP) against values obtained from the previous 3-D model run.This relaxation is applied every winter, so the nutrients required to fill the model domain are provided from an artificial external source.Their input is large at the beginning of the model run and decreases over time as the sediment reaches a state which is almost in equilibrium with the organic matter supply from the water column above.

Model fit to observed data
Pore water profiles from Lipka (2018) were then used to calibrate the model.The calibration included optimising model parameters for individual stations, as well as parameters for the whole model domain.Typically, this type of calibration is done manually by the modeller.But due to the large number of parameters to optimise (115 in total), we decided to do a systematic, algorithm-based optimisation.
Please note that the physical input data and initial conditions used during the model optimisation phase were taken from a preliminary, unpublished 3-D model run.It differs from the cited model version (Neumann et al., 2017) by using a less realistic light model.Furthermore, dissolved organic nitrogen is not included as a state variable.These improvements were made to the ERGOM model during the development phase of the sediment model, and the results of the sediment model show only small differences between the model versions.We use the data from the final, published 3-D model run for the results shown in this article for reasons of reproducibility.The preliminary forcing data used during the calibration phase are, however, also given in the Supplement.

Penalty function
The first step in such an optimisation is to define a metric or a penalty function quantifying the misfit between model and observations.Our aim is then to minimise this function.
We chose to penalise the relative deviation between model and measurement and define the penalty function by Here, i max is the number of state variables we compare and j max (i) is the number of observations of this state variable at all depths and at all stations.The expression r i,j is a measure for the relative deviation between model value m i,j and observation o i,j : The term i15 is included to avoid huge relative errors between values which are close to zero.It denotes the random deviation in this parameter, quantified from duplicate or triplicate measurements of the same parameter in different sediment cores of the same sampling.Obviously r i,j becomes zero if the model and observations match.Finally, the weight w i assigned to each comparison in Eq. ( 48) is defined as the ratio between the average observed value of the variable and the random deviation.The weight is applied to make sure that fitting the most certain variables has the highest priority.The pore water species fitted are ammonium, phosphate, silicate, sulfide, iron, manganese, the total alkalinity and the relative sulfate deficit16 .

Optimisation strategies
After we defined a penalty function, the second step is to choose an algorithm to minimise it.Several such algorithms exist; however, our choice of methods was restricted by the relatively long runtime of a single model iteration.Since it took about 8 min to run a single station for 100 years, we had to choose methods which 1. needed a relatively small number of iteration steps and therefore 2. allowed for a high degree of parallelism in the individual optimisation step in order to effectively search the 115-dimensional parameter space.
Our first choice was the Adaptive Hierarchical Recombination-Evolutionary Strategies (AHR-ES) algorithm implemented in the R package calibraR (Oliveros-Ramos and Shin, 2016).We were, however, not satisfied with the optimisation result.Possibly we just failed to find out the optimal settings for the algorithm, such as the survival rate.
Therefore, our second choice was a simple alternative algorithm: our own extension of the generalised pattern search (GPS) algorithm (Hooke and Jeeves, 1961).Every optimisation step consists of two sub-steps.The first sub-step is the most simple "grid search" step in which all 115 parameters are varied by a predefined step width.We run 230 sets of seven models in parallel such that each parameter can be both increased and decreased.In the second sub-step, 230 combinations of the most successful changes are formed.Even if no single parameter change could improve the existing solution, sometimes combinations of them can, which is the basic idea of GPS.The parameter vector with the best score which was obtained in any of the two sub-steps is then chosen as the starting point for the next step.If neither of the two substeps leads to an improvement of the overall fit, the step size is reduced by a factor of 2.
The optimisation converged after 30 iteration steps and reduced the error function from 6363 (the value obtained by previous manual tuning) to 4797.
The algorithm obviously does not guarantee that we reach a global optimum, which can be seen as a drawback.The automatic method was started after manual calibration of the model.Since the optimisation method is deterministic, the local optimum is defined by this initial condition.However, in a vector space with a dimension as high as ours, it is anyway difficult to find a non-local point with a better score, no matter if it is by manual optimisation or a different search algorithm.

Manual correction of sand and silt stations
For the sand stations and the single silt station, the automatic optimisation resulted in an unrealistic set of parameters.The bioturbation rates were estimated as low as those of the mud stations.However, at these low bioturbation rates, the sediments failed to accumulate realistic amounts of organic matter.The pore water profiles we obtained, however, seemed to match the observations relatively well.This was due to the fact that the realistically low concentrations of solute species were obtained by an unrealistically low incorporation of degradable particulate material into the sediments.The model assumed relatively high rates of lateral removal of fluff such that only a small fraction of the locally produced detritus was actually processed in the sediments.
This illustrates the problem that if the diffusivity is unknown, very different transports can be caused by the same pore water gradient.We therefore decided to manually modify the solution.This modification meant raising bioturbation and bioirrigation intensity by a factor of 10 at each station.Afterwards we reduced the parameter r_fluffy_moveaway, which describes the rate at which fluff layer material is transported to the deeper areas until realistic concentrations in the pore water profiles were reached.This led to similar pore water profiles, but higher turnover rates and organic content in the sediments.

Comparison to measured pore water profiles
In this section, we compare and discuss the observed and simulated pore water profiles of several chemical species relevant for early diagenetic processes.Model results are taken from the last year of the 100-year simulation, which was driven by a repeated forcing every year.After this simulated period, the model almost reached a quasi-steady state, which means the annual cycle of pore water concentrations was nearly repeated year after year at each of the stations.The sixth class of detritus, in contrast, which we defined as nondegradable, did not reach a stable concentration, but continued to accumulate in the sediment during the period of 100 years, but this continued accumulation did not influence the pore water profiles due to the fact that it was assumed to be bioinert.

Pore water profiles at mud stations
Figure 4 shows a comparison of simulated and measured pore water profiles at the three mud stations.
In the left panels, we see that the rise of alkalinity with depth is captured well by the model, except for the AB site where observations show a higher alkalinity below 10 cm of depth.The decline in sulfate follows the lower range of the observations.
The panels in the second column show that the vertical profiles of ammonium and silicate are also represented relatively well by the model.However, especially at the Arkona Basin station, the observed range of both ammonium and sulfide shows strong variation (by an order of magnitude).The model does not capture that but rather sticks to the lower range of the observations.Most probably, the variability in the observations is not due to seasonality, but a consequence of spatial variability between sampling sites, since the samples were taken from two sites 23 km apart.
Surprisingly, the model is able to reflect the differently steep sulfide profiles between the stations LB and MB.While Lipka (2018) see the low sulfide concentrations which occur especially in March 2014 at MB as an indication for a preceding mixing event, our model cannot adopt this interpretation due to its limitation by a temporally constant vertical mixing.In contrast, our model suggests a higher deposition of iron oxyhydroxides at this site.
The right panels show that the modelled manganese concentrations match the observations quite well.The dissolved iron profiles show their maxima at the correct depths and a relatively large seasonal spread.The measurements show an even larger spread than the model.For the phosphate profiles, the model results mostly resemble the lowest of the measured values, except for station AB where we see a clear underestimation.This can be seen as an artefact of our fitting method, more precisely of the choice of our penalty function.Giving a penalty for the relative error means that the same absolute error is punished more heavily if the observation is smaller, making the model try harder to fit low values compared to high ones.
The model results for the mud stations fit quite well, considering the fact that the real pore water profiles may be shaped by very different temporal variations.These include, for example, mixing events, changing loads of organic matter, or temperature and salinity variations.Our model, not knowing the sediments' past, can only try to estimate the average conditions that might produce similar pore water concentrations.All of the sandy stations have one major error in common: sulfide concentrations are strongly overestimated at depths below 5 cm.We suppose that the precipitation or reoxidation of sulfide is underestimated.For all other pore water species, the agreement between measured and modelled ranges is reasonable.The rise of alkalinity with depth is especially well captured by the model.The sulfate deficit in the empirical data has a large uncertainty, as it is calculated as a small difference of similarly large quantities.

Pore water profiles at sand stations
In our model, the sandy sites show a more pronounced seasonal cycle in the pore water profiles compared to the muddy stations.Especially iron and manganese concentrations vary considerably due to the seasonally different supply of quickly degradable organic matter and corresponding differences in mixing intensity.While the variability in the supply of fresh organic matter is captured by the model, the variation in mixing is not.Still, the simulated ranges are supported by the variability in the observed pore water concentrations.

Pore water profiles at the silt station Tromper Wiek
For the station Tromper Wiek, we used data from two different cruises in April and June 2014.Even if the idea in the SECOS project was to repeatedly sample the same station, the locations were approximately 6 km apart for this station, and the substrate type at the station sampled in April was sand rather than silt.The amount of sulfide in the pore waters showed a large difference between the April and the June cruise, with the latter concentrations exceeding the former by a factor of 20.This reflects spatial rather than temporal variations.Some of the depth intervals were only sampled during the June cruise, which explains the different observed ranges at the different depths.The good agreement in the profiles of ammonium and phosphate (middle and right panel in Fig. 6) suggests that   total mineralisation is captured well.The left panel shows that the model estimates the sulfate deficit at the lower range of observations, but the rise of alkalinity with depth at the higher range.The model overestimates the vertical extent of Fe (II) in the pore waters.However, the model reasonably reproduced the range of iron concentrations and also the fact that dissolved manganese concentrations were always low compared to those of iron.

Comparison to sediment composition estimates
In Fig. 7, we compare the composition of the solid parts of the sediment between model and measurements.
For the mud stations LB and MB, the modelled element concentrations show a quantitative agreement with the measurements.The main difference is that the measured values show strong vertical fluctuations, which may be the result of the deposition history.Another difference is that the vertical gradients of sulfur are considerably steeper in the model than in reality.In the mud station AB (Arkona Basin), however, the actual concentrations of all three elements are heavily underestimated.Nonetheless, the depth gradients of the concentrations match quite well, so there is perhaps just a constant offset.This might be caused by the accumulation of bioinert organic material, possibly of terrigenous origin from the Oder River.
In all sand stations (ST, DS, OB), the amount of sulfur in the sediments is underestimated.The observed sulfur in the sediments varies with depth and shows a maximum at around 10 cm of depth.The fact that sulfide, in contrast, was overestimated in the pore waters, suggests that the precipitation of sulfur may be underestimated in the sandy cores.Particu-late N and TOC are present in realistic quantities at the OB station.At the other two sand stations, the N and TOC observations show maxima at the top (station DS) or bottom (station ST) of the profile, which are not captured by the model.These are most likely the traces of past sedimentation or bioturbation events.
Reproducing subsurface TOC maxima, as they occur in permeable sediments, represents a challenge for early diagenetic models.They can be caused by different processes, such as non-local, fauna-driven ingestion of fluff material into a specific depth, washout of organic material from the surface sediment e.g. during storm events or lateral relocation of sediments.

Comparison to measured bioturbation intensities
The empirically estimated bioturbation intensities span a large range at each station.A reason for this may be that while our model assumes a temporally constant bioturbation, in reality it is highly variable.Mixing events by animals or shear stress alternate with periods without mixing (Meysman et al., 2008).Investigations of individual cores can only give snapshots of this highly variable mixing rate.In Fig. 8a, we compare measured bioturbation diffusivities D B to those used in the model.Since the observed ranges are very large, they almost always contain the value assumed in the model.An exception is the Tromper Wiek site where exceptionally high D B values were measured.This may, however, be an artefact based on the method of calculating the diffusivities.While we assume diffusion-analogue mixing in the model, non-local mixing also occurs in nature.The two processes can be distinguished from the analysis of Chl a profiles (Soetaert et al., 1996b;Morys et al., 2016).Figure 8b shows how often the samples from a specific site supported the hypothesis of diffusion-analogue mixing.For the station TW, it was only one-fourth of the sediment cores that could be explained assuming local mixing, so non-local mixing was identified as a major process here.D B values were only calculated for cores in which the observed Chl a profiles could be explained by local mixing alone.
The automatic model calibration yielded diffusivities at the sand and silt stations which were as low as those at the mud stations.Such weak mixing, however, could not supply enough organic matter to the sediments to reach measured element compositions.Therefore, they were corrected upwards, resulting in higher mixing at the sandy than at the muddy sites.This agrees with recent estimates of the bioturbation potential (Gogina et al., 2017;Morys et al., 2017), an index describing the ability of macrofauna to displace sediment particles, resulting in a mixing effect.This potential was estimated to be higher in the more shallow sandy ar-eas than in the muds.Also, measured bioturbation rates in the SECOS project were higher in the sand than in the mud (Morys, 2019).However, the high variability of bioturbation rates within stations makes it difficult to prove a significant difference in D B between sandy and muddy areas empirically (Morys et al., 2016).

Comparison to measured bentho-pelagic fluxes
The net fluxes of selected pore water species (O 2 , NH + stations, the border between sediment and the fluff layer is a smooth transition rather than a discrete boundary.The comparison of annual average oxygen fluxes between the model and measurements shows a reasonable quantitative agreement.Taking the rather high fluctuations in the measurements into account, we cannot assume a perfect fit.The model correctly reproduces the fact that similar oxygen consumption occurs at sand and mud stations in spite of their order-of-magnitude differences in organic content and pore water concentrations (Boudreau et al., 2001).The strong seasonality in the model, with O 2 consumption being high during summer and low during winter, cannot be confirmed by the measurements, but we need to state that only two valid measurements exist during January and February when the modelled consumption rates are lowest.For the nutrients, we find highly variable fluxes in the observations, some of which show large relative uncertainties.The model results are in reasonable quantitative agreement with these fluxes, but again the clear seasonality in the model cannot be confirmed empirically.The peak values of the observed fluxes (more than 4 mmol m −2 day −1 for NH + 4 and 2 mmol m −2 day −1 for PO 3− 4 ) are also much larger than those in the model.Our model also does not show ammonium or phosphate fluxes directed into the sediments, as they occur in a small fraction of the observations.So, we can state that the modelled fluxes are more smooth than the observed ones.This may either reflect reduced spatio-temporal variability in the model or artificial variability introduced into the mea-surements by the sediment disturbance which our incubation method causes.

Scope of model applicability and model limitations
In this paper, we applied our model in a one-dimensional context.The aim was to reproduce early diagenetic processes taking place in the sediments at seven exemplary sites thought to be representative for the south-western Baltic Sea by a mechanistic model.In our fully coupled model, the pelagic biogeochemistry and an assumed lateral transport supplied the organic material which drove the early diagenetic processes in the sediments.A comparison to a variety of different observations showed that the model gives a reasonable reconstruction of sediment biogeochemistry.Still, we found differences in the details.For example, a strong overestimation of sulfide concentrations in sandy sediment pore waters most likely points to the underestimation of sulfide precipitation-reoxidation.
The analysis we show suggests that the processes most relevant for these observations are adequately represented in the model.This does not include all parts of the model.For example, the nitrogen cycle was not compared to observations, which is due to the fact that the project SECOS, in which this work was done, did not focus on it and so the required observations of nitrification or denitrification rates are missing.
The ultimate aim of the model is its application in a fully coupled three-dimensional framework.A fully coupled pelagic and benthic model could answer a wide range of questions such as the following.
-Are the strongly simplifying sediment parameterisations which we use in marine ecosystem models today consistent with our understanding of sediment biogeochemistry, or is there a mismatch between our assumptions in the pelagic models and the sediment-water fluxes in early diagenetic models, which are directly constrained by observational data?
-How might sedimentary services such as nutrient removal change under different conditions, and what feedbacks into pelagic biogeochemistry can be expected?
-On which timescales can organic material stored in the sediments affect the eutrophication status of the pelagic ecosystem, e.g. for how long will sedimentary nutrient release counteract nutrient abatement measures aimed at reducing the winter nutrient concentrations in the water column?
The applicability of the one-dimensional model is limited.There is little added value in using this coupled benthicpelagic model compared to a classical early diagenetic model, since in most cases a one-dimensional description of a pelagic ecosystem will be strongly oversimplified.One could, however, imagine that it can be useful for enclosed marine areas where the horizontal exchange is limited or well known.An application to an area other than the southwestern Baltic Sea will, however, require a new model calibration, since critical parameters like bioturbation intensity might differ.We strongly discourage the use of the model as it is by just applying it to derive estimates of benthic biogeochemical process rates from pelagic biogeochemistry unless there is a large set of benthic data available against which the model can be validated.
In cases in which these data are available, we think that the model system has high potential to serve as a starting point for detailed studies because it can be easily modified.Adding, removing or adapting processes is very easy because of the automatic code generation principle.Only a formal mathematical formulation of the process is required, and no coding skills are needed to e.g.add additional state variables to the model system.Reuse of parts of the model, e.g. the explicit representation of the fluff layer, is also possible.

Conclusions
In this paper, we describe an integrated model for ocean biogeochemistry.It simulates ocean biogeochemistry both in the water column and in the sediments.
The model was obtained by combining two ancestor models: the water column model ERGOM (Neumann et al., 2017) and the early diagenetic model used in Reed et al. (2011).A few modifications were made to the existing models, partly to include additional processes relevant for the area of interest, the south-western Baltic Sea.These model extensions include closing the carbon cycle in the sediments, which allows for the determination of pH, adding a specific numerical scheme for the diffusion of the tracer "total alkalinity", using ion activities rather than concentrations to determine precipitation and dissolution potentials, allowing us to account for salinity differences, the explicit description of adsorption to clay minerals considering their mineralogy, and an alternative pyrite formation pathway via H 2 formation.
An automated model calibration approach was used to fit the model to pore water observations at seven sites in the study area.It was successful for the mud stations, but underestimated bioturbation rates and consequently the organic content of the sediment at the sand and silt sites.Therefore, these model parameters were adjusted manually at the sand and silt sites.This issue illustrates a general problem related to models of this complexity.The large quantity of unknown model parameters results in many degrees of freedom, and different types of observations are needed to constrain them.Even so, a good fit to a constrained set of observations does not guarantee that the model dynamics are captured realistically.
Applying the model in a three-dimensional framework (Cahill et al., 2019) will reduce the degrees of freedom.For example, our model includes parameterisations for (a) lateral removal of fluff material from the sand stations and (b) lateral import of organic material at the mud stations.In a 3-D ocean model, these become intrinsically linked by the constraint of mass conservation.Other degrees of freedom arise from the supply of oxidised iron and manganese to the individual stations.In a 3-D model, the supply and distribution of these substances would be controlled by erosion and deposition and thus determined by the model physics.
Apart from these constraints, the implementation of the model in a 3-D framework is straightforward.Physically, the coupling between different locations would be controlled by the fluff layer and its erosion and redeposition.Technically, the coupling is simplified due to the use of automatic code generation.Describing the model processes and constants in a formal way, keeping them separate from code for specific models, means it is easy to switch between different "host models".The major difficulty in going 3-D is the limited amount of validation data, such as pore water profiles and sediment-water fluxes, compared to the strong spatial and temporal variability.A first step is the application of the model to the limited area of the German EEZ for which the model is calibrated.
In the long term, biogeochemical ocean models should aim at a process-resolving description of surface sediments.This is especially true for shallow ocean areas where the efflux of nutrients from the sediment strongly influences water column biogeochemistry, like in our study area.The magnitudes of denitrification and phosphate retention, or the spatial and seasonal patterns in which oxygen consumption occurs, may strongly influence marine ecosystems.
Very often, model studies discussing "what if" scenarios use a relatively simple sediment representation.This includes studies on nutrient abatement, human-induced stresses on ecosystems (e.g. by fish farming) and climate sensitivity analyses.But the use of a present-day parameterisation for future scenarios means a neglect of possible changes.In the context of limited data and process understanding, this implicit "no-change" assumption may be the best we can presently do.But we should be aware of the uncertainty introduced by this pragmatic choice.Studying the sensitivity of sediment functions to external drivers in a process-resolving sediment model can be a way to quantify these uncertainties and possibly derive an ensemble of alternative future parameterisations.
Code and data availability.A source code version of the model can be obtained from Radtke (2018) and is also provided in the Supplement to this article.The Supplement includes the initial conditions and physical forcing files required to reproduce the obtained results.
The code is not handwritten, but can be generated automatically from a set of text files describing the model biogeochemistry and a code template containing the physical and numerical aspects of the model code.All three ingredients required to obtain the model source code (the text files, the code template and the code generator program) are also included.
These components in their current and previous versions are GPLv3 licenced and can also be downloaded from our website at http://www.ergom.net.
For the calibration and validation data used in this study, we refer to the following publications: the pore water data can be found in Lipka (2018); the sediment composition data are published in Bunke (2018); and the bioturbation rate estimates are available in Morys (2016).
www.geosci-model-dev.net/12/275/2019/Geosci.Model Dev., 12, 275-320, 2019    where porosity is decreased in the realistic profile, we see enhanced pore water concentrations for the nutrients and for sulfide.This was to be expected because of the higher ratio between solid material and pore water volume.In contrast, iron concentrations are reduced in higher depths, while manganese concentrations remain constant.While we do not observe qualitatively different behaviour, the differences between the simplified and realistic porosity model are significant, which means the model might benefit from using realistic porosity profiles.We approximate the limit by choosing n = t/1 s and use the method of Al-Hassan (2012) to compute c new .This method allows for an efficient calculation of powers of tridiagonal matrices with positive entries, and it is easy to see that I + M B t n is of this shape if n is chosen large enough.An identical approach is used for the solids.

Figure 1 .
Figure 1.(a) Bathymetry of the western Baltic Sea and location of our area of interest.(b) The investigation area of the SECOS project.The map shows granulometry, redrawn from Tauber (2012) and Lipka (2018), and the seven stations considered in this model study.Sediment type: Cl -clay, vfU -very fine silt, fU -fine silt, mU -medium silt, cU -coarse silt, vfS -very fine sand, fS -fine sand, mS -medium sand, cS -coarse sand, vcS -very coarse sand, G -gravel.Sorting: vws -very well sorted, ws -well sorted, ms -moderately sorted, pspoorly sorted, vps -very poorly sorted.

Figure 2 .
Figure 2. Schematic view of the compartments and vertical exchange processes in the model.Compartments: (I) water column, (II) fluff layer, (III) pore water, (IV) solid sediment.Both the water column and sediment consist of several vertically stacked grid cells.Vertical transport processes: a -turbulent mixing, b -particle sinking, c -sedimentation, d -resuspension, e -bioirrigation combined with molecular diffusion, f -bioturbation, g -sediment growth, h -burial.Bioactive solid material is shown in orange, bioinert solid material in grey and water in blue.

Figure 3 .
Figure 3. Simplified sketch of state variables and processes in the sediment model.Boxes to the left and right indicate sediment and pore water state variables, respectively.pH is not a state variable but calculated from DIC and total alkalinity.Red arrows show primary redox processes driven by the oxidation of organic carbon.The red numbers indicate the order in which the oxidants are utilised.Black arrows show secondary redox reactions, which means reoxidation of reduced substances.Blue arrows show adsorption-desorption or precipitation-dissolution reactions, which may depend on pH.Abbreviations: det -detritus, Rhodoc.-rhodochrosite, tot.Alk.-total alkalinity, DIC -dissolved inorganic carbon.
298 − 0.0316 pH + 0.201 DIP/1 mmol L −1 (26) where[SO 4  ] and[K]  are the measured concentrations of sulfate and potassium (the latter regarded as a passive tracer) in the pore water, and [SO 4 298 H. Radtke et al.: ERGOM with vertically resolved sediments

Figure 5
Figure5illustrates the model fit at the sandy stations.All of the sandy stations have one major error in common: sulfide concentrations are strongly overestimated at depths below 5 cm.We suppose that the precipitation or reoxidation of sulfide is underestimated.For all other pore water species, the agreement between measured and modelled ranges is reasonable.The rise of alkalinity with depth is especially well captured by the model.The sulfate deficit in the empirical data has a large uncertainty, as it is calculated as a small difference of similarly large quantities.In our model, the sandy sites show a more pronounced seasonal cycle in the pore water profiles compared to the muddy stations.Especially iron and manganese concentrations vary considerably due to the seasonally different supply of quickly degradable organic matter and corresponding differences in mixing intensity.While the variability in the supply of fresh organic matter is captured by the model, the variation in mixing is not.Still, the simulated ranges are supported by the variability in the observed pore water concentrations.

Figure 4 .
Figure 4. Pore water concentrations of several dissolved species at the three mud stations Lübeck Bight (a), Mecklenburg Bight (b) and Arkona Basin (c).Points and horizontal lines indicate the range of measurements.For station AB, open triangles indicate the range of observations from the January 2015 cruise, which were taken at a different location in the same area 23 km apart.Curves and shading present the model results and indicate year-average concentrations and the seasonal range.Please note the different horizontal scales.

Figure 5 .
Figure 5. Pore water concentrations of several dissolved species at the three sand stations Stoltera (a), Darss Sill (b) and Oder Bank (c).Points and horizontal lines indicate the range of measurements.Curves and shading present the model results and indicate year-average concentrations and the seasonal range.Please note the different horizontal scales.

Figure 6 .
Figure 6.Pore water concentrations of several dissolved species at the silt station Tromper Wiek.Points and horizontal lines indicate the range of measurements.Curves and shading present the model results and indicate year-average concentrations and the seasonal range.

Figure 7 .
Figure 7. Mass fractions of nitrogen (blue), sulfur (yellow) and organic carbon (black) in the dry sediment: model results (curves and shading for seasonal range) versus measurements (vertical segments).Please note that the scales on the horizontal axes differ by a factor of 40.
Figure 8.(a) Model estimations of bioturbation intensity (blue dots) manually corrected for sand and silt stations (red dots) and Chl abased estimates (black crosses); data from Morys et al. (2016).Black crosses represent averages over all cores from a single month when the Chl a profiles in the sediment support the assumption of diffusion-analogue mixing.So, variation can be interpreted as temporal variability.(b) The percentage of the cores at this station whose Chl a profiles could be explained by the assumption of a local diffusion-analogue mixing process.

Figure 9 .
Figure 9. Fluxes between the sediment and bottom water of selected pore water species at mud stations.Positive values denote fluxes out of the sediment.Solid line: modelled fluxes between sediment and bottom water only.Dashed line: fluxes including mineralisation of the fluff layer material.Dots: measured fluxes by two benthic chambers (BC1 in red and BC2 in green).Vertical ranges: uncertainties of these fluxes estimated by a bootstrapping method.For phosphate: full circles are estimates based on phosphate determination by photometric methods, and open circles are estimates based on P quantification by the ICP-OES method.

Figure 10 .
Figure 10.Fluxes between the sediment and bottom water of selected pore water species at sand stations.Positive values denote fluxes out of the sediment.Solid line: modelled fluxes between sediment and bottom water only.Dashed line: fluxes including mineralisation of the fluff layer material.Dots: measured fluxes by two benthic chambers (BC1 in red and BC2 in green).Vertical ranges: uncertainties of these fluxes estimated by a bootstrapping method.For phosphate: full circles are estimates based on phosphate determination by photometric methods, and open circles are estimates based on P quantification by the ICP-OES method.

Figure C1 .
Figure C1.Pore water concentrations of several dissolved species at the silt station Tromper Wiek.Points and horizontal lines indicate the range of measurements.Solid curves and shading present the model results and indicate year-average concentrations and the seasonal range.Dashed curves show the same, but for a model version which neglects one of our improvements: (a) without correcting the diffusivity of total alkalinity for hydroxide ions; (b) without correcting the solute concentrations by activity coefficients; (c) without assuming adsorption to clay minerals.

Figure
Figure D1.(a) Porosity at the silt station Tromper Wiek as assumed in the model (solid line) and a porosity profile for a realistic model set-up derived from the April 2014 cruise (dashed line).(b) Pore water concentrations of several dissolved species at the silt station Tromper Wiek.Points and horizontal lines indicate the range of measurements.Solid curves and shading present the original model results and indicate year-average concentrations and the seasonal range.Dashed curves show the same, but for a model version with the realistic porosity profile.

Figure E1 .
Figure E1.Pore water concentrations of several dissolved species at the silt station Tromper Wiek.Points and horizontal lines indicate the range of measurements.Solid curves and shading present the model results and indicate year-average concentrations and the seasonal range.Dashed curves show the same, but for a model version with double vertical resolution.

Table 2 .
Reaction network table for the processes in the water column.See TableA1for the composition of state variables.Processes marked with * also take place in the pore water.

Table 3 .
Reaction network table for the primary redox reactions in the sediment and the fluff layer.See TableA1for the composition of state variables.

Table 4 .
Reaction network table for the secondary redox reactions in the sediment and in the fluff layer.

Table 5 .
Reaction network table for adsorption-desorption and precipitation-dissolution processes in the sediment and in the fluff layer.
) they have a value close to 1 at high concentrations of the corresponding oxidant and become zero if this oxidant is exhausted.Here, O 2,min denotes a threshold concentration at which the limitation occurs, but the Ivlev function generates a soft transition between the different oxidation pathways, so they can occur simultaneously.The product of the last five factors in Eq. (19) means this process will run at a substantial rate only if oxygen concentration is low, nitrate concentration is low, manganese oxides in the sediment are depleted and iron oxyhydroxides in the sediment are depleted, but reducible structural Fe (III) in the clay minerals is still abundant.

Table 6 .
Reaction network of secondary redox reactions in the sediment, giving the possible reoxidation processes in the presence of the oxidants listed in the first row.

Table 7 .
Porosity and sediment accumulation rate data used as model input and clay volume content estimated by the model based on an initial guess.Most of the observations which help constrain our model processes enter our model indirectly, since model constants are inherited from ancestor models.Especially in van Cappellen

Table A1 .
Stoichiometric composition of tracers.Tracer t_alk has been omitted since it just accumulates the changes to other tracers.