v0.91.7
Oceananigans v0.91.7
This PR implements the infrastructure for open boundaries in NonhydrostaticModel
s by differentiating the filling of halos for BoundaryCondition{Open}
boundaries so they are not refilled after the pressure correction step, as this would result in the interior field becoming divergent. This means that if the boundary value is not known a priori (e.g. it depends on the interior values), then the condition will not be enforced exactly. However, since open boundary conditions are already unphysical, it was decided that this was the preferable non-physicality.
To allow more sophisticated boundary conditions this PR adds a matching_scheme
property to the Open
boundary classification, and as an example, a matching scheme named FlatExtrapolation
is implemented.
Finally, it introduces update_boundary_condition!(boundary_condition, field, model)
which can be dispatched on boundary_condition
to allow more complex boundary conditions to be implemented (e.g. to compute the mean outflow at the boundary and store it in the condition).
Merged pull requests:
- (0.91.7) Open boundary conditions for
NonhydrostaticModel
(#3482) (@jagoosw) - Implement Makie extension (#3686) (@glwagner)
Closed issues:
- Adding Makie extension (#3178)