ECCO.toy_problems.Enzyme_ex2Method
toy_problems.Enzyme_ex2()
  • air sea flux calculation derived using standard bulk formulae algorithm.
  • it's adjoint, obtained via Enzyme.
using ECCO
(f,f_ad,x)=toy_problems.Enzyme_ex2()
f(x...)
f_ad(x...)
source
ECCO.glacier_model.forward_problemFunction
forward_problem(M0=0.004; dt=1/12.0, nt=6*5000, dx = 1.0, nx = 30)

Simple, 1D mountain glacier model inspired from the book Fundamentals of Glacier Dynamics, by CJ van der Veen, and which was translated to Julia by S Gaikwad.

See https://sicopolis.readthedocs.io/en/latest/AD/tutorial_tapenade.html#mountain-glacier-model

V=glacier_model.forward_problem(0.002)
source
ECCO.Lorenz_models.L63Method
L63(; nt=10000)

See https://en.wikipedia.org/wiki/Lorenz_system

using ECCO, CairoMakie
x,y,z=Lorenz_models.L63()
lines(x,y,z)
source
ECCO.Lorenz_models.L96Method
L96(; N=5, F=8)

See https://en.wikipedia.org/wiki/Lorenz96model

using ECCO, CairoMakie
xyz=Lorenz_models.L96()
lines(xyz[1,:],xyz[2,:],xyz[end,:])
source
ECCO.Budyko_Sellers_models.paramsConstant

Budyko-Sellers Energy Balance Model

Parameter Choices

From B. Rose notebook :

R = 10^7 J/m2/K

From Walsh and Rackauckas :

  • Figure 3. Equilibrium solutions (7) with albedo function (9) for five η-values. Note T∗ ηi (ηi) = Tc only for i = 2,5.
    • Parameters: Q = 343, A = 202, B = 1.9, C = 3.04, αw = 0.32, αs = 0.62, Tc =−10.
  • Figure 9. Equilibrium solutions of (2) with albedo function (34). Solid: η= 0.1. Dashed: η= 0.25. Dash-Dot: η= 0.4.
    • Parameters: Q = 321,A = 167,B = 1.5,C = 2.25,M = 50,αw = 0.32,αi = 0.46,αs = 0.72,ρ= 0.35.
source
ECCO.Budyko_Sellers_models.dTdt_demoFunction
dTdt_demo(par=[Q])
using ECCO, CairoMakie

(; Q, y) = Budyko_Sellers_models.params
Tsol,Tini,dTdt_ini,incr_t,incr=Budyko_Sellers_models.dTdt_demo(Q)

fig=Figure()
Axis(fig[1,1]); lines!(y,dTdt_ini)
Axis(fig[2,1]); lines!(y,Tini); lines!(y,Tsol,color=:red)
Axis(fig[3,1]); lines!(incr_t,incr)	
fig
source