Skip to content

Commit

Permalink
Merge branch 'main' into vartup2
Browse files Browse the repository at this point in the history
  • Loading branch information
navidcy authored Jan 19, 2025
2 parents c978e9b + 234bc98 commit ff56a3e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion validation/z_star_coordinate/lock_release.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ using Oceananigans.Advection: WENOVectorInvariant
using Oceananigans.AbstractOperations: GridMetricOperation
using Printf

z_faces = MutableVerticalDiscretization(-20, 0)
z_faces = MutableVerticalDiscretization((-20, 0))

grid = RectilinearGrid(size = (128, 20),
x = (0, 64kilometers),
Expand All @@ -22,6 +22,7 @@ model = HydrostaticFreeSurfaceModel(; grid,
buoyancy = BuoyancyTracer(),
closure = nothing,
tracers = :b,
vertical_coordinate = Oceananigans.Models.ZStar(),
free_surface = SplitExplicitFreeSurface(grid; substeps = 10))

g = model.free_surface.gravitational_acceleration
Expand Down Expand Up @@ -78,3 +79,5 @@ for t in 1:length(b.times)
push!(drift, sum(dz[t] * b[t]) / sum(dz[t]) - init)
end

using CairoMakie
lines(drift)

0 comments on commit ff56a3e

Please sign in to comment.