Skip to content

馃摨 Oceananigans v0.27.0

Compare
Choose a tag to compare
@github-actions github-actions released this 16 Mar 21:01
8e3c275

Oceananigans v0.27.0

Diff since v0.26.0

Breaking changes:

  • in FieldBoundaryConditions(grid, location), the argument location is now be a 3-tuple of uninstantiated types, eg: (Face, Cell, Cell) for a field at the location of the u-velocity field. Previously, location was a 3-tuple of instantiated types.

Release notes:

  • has_velocities was fixed so that show works for models with no tracers
  • BoundaryFunction can now have parameters: use BoundaryFunction(func, parameters) if func(尉, 味, t, parameters) takes a final argument parameters. (parameters=nothing by default.)
  • four new wrapper functions were defined for specifying 'simple' boundary condition functions:
    1. TracerBoundaryCondition
    2. UVelocityBoundaryCondition
    3. VVelocityBoundaryCondition
    4. WVelocityBoundaryCondition
  • All four functions take three (optionally four) arguments: (bctype, boundary, func, [parameters=nothing]), where bctype is Value, Gradient, or Flux and boundary is :x, :y, or :z. If parameters=nothing, func(尉, 味, t) is a function of the on-boundary coordinates (尉, 味) and time t. If parameters is set, it is passed to func(尉, 味, t, parameters).

Closed issues:

  • API divergence for abstract operations versus boundary conditions (#659)
  • "show" method throws an error for models with no tracers (#700)

Merged pull requests: