From 093cecfe277b09122ee87b3c77a5e05a524a5092 Mon Sep 17 00:00:00 2001 From: milankl Date: Tue, 5 Feb 2019 12:42:39 +0000 Subject: [PATCH] Wind forcing Fx,Fy of both u,v --- parameters.jl | 34 ++++++++++++++++++---------------- src/forcing.jl | 38 ++++++++++++++++++++++---------------- src/output.jl | 4 +++- src/rhs.jl | 18 +++++++++--------- src/time_integration.jl | 5 +++-- 5 files changed, 55 insertions(+), 44 deletions(-) diff --git a/parameters.jl b/parameters.jl index 6984025..6da6105 100644 --- a/parameters.jl +++ b/parameters.jl @@ -6,25 +6,27 @@ const Numtype = Float32 #setprecision(7) # DOMAIN RESOLUTION AND RATIO -const nx = 400 # number of grid cells in x-direction -const Lx = 10000e3 # length of the domain in x-direction -const L_ratio = 2 # Domain aspect ratio of Lx/Ly +const nx = 200 # number of grid cells in x-direction +const Lx = 6000e3 # length of the domain in x-direction +const L_ratio = 1 # Domain aspect ratio of Lx/Ly # PHYSICAL CONSTANTS const gravity = 0.032 # gravitational acceleration const water_depth = 125. # layer thickness at rest const ρ = 1e3 # density -const ϕ = 10. # central latitue of the domain (for coriolis) +const ϕ = 0. # central latitue of the domain (for coriolis) const ω = 2π/(24*3600) # Earth's angular frequency [s^-1] const R = 6.371e6 # Earth's radius [m] # WIND FORCING OPTIONS -const wind_forcing = "constant" # "channel", "double_gyre", "shear" or "none" -const Fx0 = 0.01 # wind stress strength [Pa], default 0.12 +const wind_forcing_x = "constant" # "channel", "double_gyre", "shear","constant" or "none" +const wind_forcing_y = "constant" # "channel", "double_gyre", "shear","constant" or "none" +const Fx0 = 0.0 # wind stress strength [Pa], default 0.12 +const Fy0 = 0.01 # BOTTOM TOPOGRAPHY OPTIONS const topography_feature = "flat" # "ridge", "seamount", "flat", "ridges", "bathtub" -const topofeat_height = 50. # height of seamount +const topofeat_height = 10. # height of seamount const topofeat_width = 300e3 # horizontal scale [m] of the seamount # NEWTONIAN COOLING OPTIONS @@ -35,14 +37,14 @@ const η_refw = 100e3 # width [m] of the tangent used for the int # TIME STEPPING OPTIONS const RKo = 4 # Order of the RK time stepping scheme (3 or 4) -const cfl = 0.9 # CFL number (1.0 recommended for RK4, 0.6 for RK3) -const Ndays = 600 # number of days to integrate for +const cfl = 1.0 # CFL number (1.0 recommended for RK4, 0.6 for RK3) +const Ndays = 1600 # number of days to integrate for const nstep_diff = 1 # diffusive part every nstep_diff time steps. const nstep_advcor = 1 # advection and coriolis every nstep_advcor time steps. # BOUNDARY CONDITION OPTIONS const bc_x = "nonperiodic" # "periodic" or anything else for nonperiodic -const lbc = 1. # lateral boundary condition parameter +const lbc = 0. # lateral boundary condition parameter # 0 free-slip, 0