climlab.dynamicsΒΆ
Modules for simple dynamics, mostly for use in Energy Balance Models.
BudykoTransport
is a relaxation to global mean.
Other modules are 1D advection-diffusion solvers (implemented using implicit timestepping).
AdvectionDiffusion
is a general-purpose 1D
advection-diffusion process. It can be used out-of-the-box for models with
Cartesian grid geometry, but also accepts weighting functions for the
divergence operator on curvilinear grids.
MeridionalAdvectionDiffusion
implements the
1D advection-diffusion process on the sphere (flux in the north-south direction).
Subclass MeridionalHeatDiffusion
is the appropriate class
for the traditional diffusive EBM, in which transport is parameterized as a
meridional diffusion process down the zonal-mean surface temperature gradient.
MeridionalMoistDiffusion
implements the moist EBM,
with transport down an approximate gradient in near-surface moist static energy.
- BudykoTransport
- AdvectionDiffusion
- MeridionalAdvectionDiffusion
- MeridionalHeatDiffusion
- MeridionalMoistDiffusion
- Numerical core for the advection-diffusion solver (climlab.dynamics.adv_diff_numerics)
- The 1D advection-diffusion problem
- Spatial discretization
- Centered difference formulas for the flux
- Centered difference formulas for the flux convergence
- Implicit time discretization
- Analytical benchmark
- Module function reference
advdiff_tridiag()
advective_flux()
compute_source()
compute_tendency()
diffusive_flux()
implicit_step_forward()
make_the_actual_tridiagonal_matrix()
total_flux()