Skip to content

Commit 28ed2de

Browse files
Update PZ_column.jl
removed sinking velocity
1 parent c0e565a commit 28ed2de

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

Project4/PZ_column.jl

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,12 @@ include("PZ.jl")
1212
# define the grid
1313
grid = RectilinearGrid(topology = (Flat, Flat, Bounded), size = (100, ), extent = (1, ))
1414

15-
λ = 0.1
16-
w₀ = 0.01
17-
18-
w_sinking(z) = - w₀ * (tanh(z/λ) - tanh((-z - 1)/λ) - 1)
19-
20-
sinking_velocity = Oceananigans.Fields.FunctionField{Center, Center, Center}(w_sinking, grid)
21-
2215
# Specify the biogeochemical model
23-
biogeochemistry = PhytoplanktonZooplankton(sinking_velocity = sinking_velocity)
16+
biogeochemistry = PhytoplanktonZooplankton()
2417
# To change the e-folding decay length for the light, replace with the following
2518
#biogeochemistry = PhytoplanktonZooplankton(light_decay_length=0.1)
19+
# If you want to add sinking of phytoplankton, first define a function called sinking_velocity as explained in the instructions, then call the model like this:
20+
# biogeochemistry = PhytoplanktonZooplankton(sinking_velocity = sinking_velocity)
2621

2722
# Construct the model using Oceananigans with the biogeochemistry handled by OceanBioME
2823
model = NonhydrostaticModel(; grid,

0 commit comments

Comments
 (0)