-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running the NPZD with BuoyancyTracer()
#241
Comments
A way you could do it with a buoyancy tracer is to manually set the tracers like |
I guess we could also make If we changed the model to be discrete form we could just add a parameter like Q_10 = compute_temperature_sensetivity(bgc, fields) and dispatch like compute_temperature_sensetivity(::NPZD{Nothing}, fields) = 1 |
I tried that and it still returns the same error probably because of this line?
Example: #--------------- Instantiate Model
forcing = (;
u=mom_sponge, v=mom_sponge, w=mom_sponge,
)
#eventually, try different buoyancy
model = NonhydrostaticModel(grid = grid,
biogeochemistry=biogeochemistry,
advection = WENO(; grid),
coriolis = coriolis,
closure = (horizontal_closure,vertical_closure),
tracers = (:b, :N, :P, :Z, :D),
buoyancy = BuoyancyTracer(),
forcing = forcing,
boundary_conditions = (u=u_bcs, v=v_bcs),
auxiliary_fields = (; T = ConstantField(10))) |
@jagoosw OceanBioME.jl/src/Models/AdvectedPopulations/NPZD.jl Lines 216 to 217 in db05016
|
The current documentation mention that the temperature sensitivity in the list of equations that are solved for NPZD model. Therefore, the model does not run without
:T
.Returning:
On the code:
OceanBioME.jl/src/Models/AdvectedPopulations/NPZD.jl
Line 221 in db05016
Can we do a straightforward implementation for NPZD with constant temperature or no temperature sensitivity?
Maybe something like
NutrientPhytoplanktonZooplanktonDetritus(; grid, T=10)
There are reasons why we should be able to run the simulation on buoyancy only, especially for expensive process model simulations. A workaround could be to run with the temperature only and use
SeawaterBuoyancy(constant_salinity = true)
.What do you all think?
Edit: I was previously saying that the docs were not mentioning it, but I just realized it is mentioning, but it is not explicit that there is no way to set a constant temperature or run with
BuoyancyTracer()
The text was updated successfully, but these errors were encountered: