Skip to content

v0.91.7

Compare
Choose a tag to compare
@github-actions github-actions released this 07 Aug 20:50
· 37 commits to main since this release
3c4785c

Oceananigans v0.91.7

Diff since v0.91.6

This PR implements the infrastructure for open boundaries in NonhydrostaticModels 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:

Closed issues:

  • Adding Makie extension (#3178)