From d844478a43bccb2c21333cfd988817a7871bb6dc Mon Sep 17 00:00:00 2001 From: Navid Constantinou Date: Wed, 11 Nov 2020 08:50:39 +1100 Subject: [PATCH 1/2] fix erroneous double hashes; thanks @francispoulin --- examples/two_dimensional_turbulence.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/two_dimensional_turbulence.jl b/examples/two_dimensional_turbulence.jl index 4e7996025b..2f0388a2fd 100644 --- a/examples/two_dimensional_turbulence.jl +++ b/examples/two_dimensional_turbulence.jl @@ -41,8 +41,8 @@ set!(model, u=u₀, v=u₀) using Oceananigans.Fields, Oceananigans.AbstractOperations -## To make our equations prettier, we unpack `u`, `v`, and `w` from -## the `NamedTuple` model.velocities: +# To make our equations prettier, we unpack `u`, `v`, and `w` from +# the `NamedTuple` model.velocities: u, v, w = model.velocities # Next we create two objects called `ComputedField`s that calculate From a580bee8bd5fa4ec4bc2cdf02179088cdc294bc2 Mon Sep 17 00:00:00 2001 From: Navid Constantinou Date: Wed, 11 Nov 2020 14:10:20 +1100 Subject: [PATCH 2/2] some rephrasing --- examples/two_dimensional_turbulence.jl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/two_dimensional_turbulence.jl b/examples/two_dimensional_turbulence.jl index 2f0388a2fd..d2c4e8a4b5 100644 --- a/examples/two_dimensional_turbulence.jl +++ b/examples/two_dimensional_turbulence.jl @@ -46,7 +46,8 @@ using Oceananigans.Fields, Oceananigans.AbstractOperations u, v, w = model.velocities # Next we create two objects called `ComputedField`s that calculate -# _(i)_ vorticity, defined as +# _(i)_ vorticity that measures the rate at which the fluid rotates +# and is defined as # # ```math # ω = ∂_x v - ∂_y u \, , @@ -56,7 +57,6 @@ u, v, w = model.velocities ω_field = ComputedField(ω) -# "Vorticity" measures the rate at which the fluid rotates. # We also calculate _(ii)_ the _speed_ of the flow, # # ```math @@ -107,8 +107,9 @@ using Oceananigans.Grids xω, yω, zω = nodes(ω_field) xs, ys, zs = nodes(s_field) +nothing # hide -# and animate the vorticity. +# and animate the vorticity and fluid speed. using Plots