You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enforce total buoyancy flux BC in tilted geometry example (#3581)
* Enforce total buoyancy flux BC in tilted geometry example
This example includes no explicit modification to the BCs on buoyancy,
meaning that it defaults to a no-flux BC (or `FluxBoundaryCondition()`)
on buoyancy.
Following equation (6) of Wenegrat and Thomas (2020), we instead enforce
a no-normal diffusive flux boundary condition on the *total* buoyancy, i.e.
the perturbation plus the constantly-stratified `BackgroundField`. Because
Oceananigans.jl does not allow diffusion to act on `BackgroundField`s, the
background part of the no-flux BC is missing. However, we here can enforce it
by specifying a perturbation flux BC that matches the implied background flux.
Other minor changes:
- Added equally-spaced buoyancy surfaces to movie panels
- Guess timestep by minimum of advective and diffusive timescales,
instead of just the advective timescale
* Update examples/tilted_bottom_boundary_layer.jl
Co-authored-by: Gregory L. Wagner <[email protected]>
* Imeplement Greg's suggestions
* Add equations to explain the choice of bottom BC on buoyancy
* More intentional phrasing to explain perturbation BC
Co-authored-by: Gregory L. Wagner <[email protected]>
* More transparent assignment of bottom BC
Co-authored-by: Gregory L. Wagner <[email protected]>
* Rename background field to match mathematical notation
Co-authored-by: Gregory L. Wagner <[email protected]>
* Rename background field to match mathematical notation, follow-up
Co-authored-by: Gregory L. Wagner <[email protected]>
---------
Co-authored-by: Henri Drake <[email protected]>
Co-authored-by: Gregory L. Wagner <[email protected]>
Co-authored-by: Gregory L. Wagner <[email protected]>
# where ``N^2 = 10^{-5} \rm{s}^{-2}`` is the background buoyancy gradient.
101
+
# We choose to impose a bottom boundary condition of zero *total* diffusive buoyancy
102
+
# flux across the seafloor,
103
+
# ```math
104
+
# ∂_z B = ∂_z b + N^{2} \cos{\theta} = 0.
105
+
# ```
106
+
# This shows that to impose a no-flux boundary condition on the total buoyancy field ``B``, we must apply a boundary condition to the perturbation buoyancy ``b``,
0 commit comments