馃摨 Oceananigans v0.27.0
Oceananigans v0.27.0
Breaking changes:
- in
FieldBoundaryConditions(grid, location)
, the argumentlocation
is now be a 3-tuple of uninstantiated types, eg:(Face, Cell, Cell)
for a field at the location of theu
-velocity field. Previously,location
was a 3-tuple of instantiated types.
Release notes:
has_velocities
was fixed so thatshow
works for models with no tracersBoundaryFunction
can now have parameters: useBoundaryFunction(func, parameters)
iffunc(尉, 味, t, parameters)
takes a final argumentparameters
. (parameters=nothing
by default.)- four new wrapper functions were defined for specifying 'simple' boundary condition functions:
TracerBoundaryCondition
UVelocityBoundaryCondition
VVelocityBoundaryCondition
WVelocityBoundaryCondition
- All four functions take three (optionally four) arguments:
(bctype, boundary, func, [parameters=nothing])
, wherebctype
isValue
,Gradient
, orFlux
and boundary is:x
,:y
, or:z
. Ifparameters=nothing
,func(尉, 味, t)
is a function of the on-boundary coordinates(尉, 味)
and timet
. Ifparameters
is set, it is passed tofunc(尉, 味, 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: