@@ -155,27 +155,39 @@ export DIVO, PFDO, FATO
155
155
# end # module
156
156
157
157
"""
158
- transportoperator(grd; kwargs )
158
+ transportoperator(grd, w )
159
159
160
- Returns the transportoperator corresponding to the arguments.
160
+ Returns the transportoperator for the given settling velocity `w`.
161
+
162
+ The settling velocity can be provided as either a scalar
163
+ (e.g., `w = 100.0` in units of meters per second)
164
+ or as a function of depth
165
+ (e.g., `w(z) = 2z + 1`).
161
166
162
167
# Examples
163
168
164
169
Create the particle flux divergence with settling velocity of 100m/s
165
170
166
171
```julia-repl
167
- julia> T = transportoperator(grd; w = 100.0)
172
+ julia> T = transportoperator(grd, 100.0)
168
173
```
169
174
170
175
Or with settling velocity function w(z) = 2z + 1
171
176
172
177
```julia-repl
173
- julia> T = transportoperator(grd; w = z -> 2z + 1)
178
+ julia> T = transportoperator(grd, z -> 2z + 1)
174
179
```
175
180
176
181
By default, the seafloor flux is set to zero, so that all the particles
177
182
that reach it are remineralized there. You can let particles go through
178
- by setting `fsedremin=0.0`.
183
+ by setting `fsedremin=0.0`, via, e.g.,
184
+
185
+ ```julia-repl
186
+ julia> T = transportoperator(grd, z -> 2z + 1; fsedremin=0.0)
187
+ ```
188
+
189
+ For finer control and advanced use, see the particle-flux divergence
190
+ operator function, `PFDO`.
179
191
"""
180
192
transportoperator (grd, w_top; DIVop= DIVO (grd), Iabove= buildIabove (grd)) = PFDO (w_top, DIVop, Iabove)
181
193
function transportoperator (grd, w:: Function ;
0 commit comments