Skip to content

Commit

Permalink
Update model_implementation.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jagoosw authored Aug 30, 2023
1 parent 6a1110a commit ea49268
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/src/model_implementation.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,17 +243,19 @@ grid = RectilinearGrid(topology = (Flat, Flat, Bounded), size = (32, ), extent =
# setup the biogeochemical model
light_attenuation_model = TwoBandPhotosyntheticallyActiveRadiation(; grid, surface_PAR)
light_attenuation = TwoBandPhotosyntheticallyActiveRadiation(; grid, surface_PAR)
sediment_model = InstantRemineralisation(; grid)
sediment = InstantRemineralisation(; grid)
sinking_velocity = ZFaceField(grid)
w_sink(x, y, z) = 2 / day * tanh(z / 5)
set!(sinking_velocity, w_sink)
biogeochemistry = NutrientPhytoplankton(; light_attenuation_model, sinking_velocity, sediment_model)
biogeochemistry = Biogeochemistry(NutrientPhytoplankton(; light_attenuation_model, sinking_velocity);
light_attenuation,
sediment)
# put the model together
Expand Down

0 comments on commit ea49268

Please sign in to comment.