heateqn_nb

Functions used to solve the heat equation using NumbaMinpack’s hybrd function. This gives significant performance boosts over scipy’s fsolve(hybrd = True).

For the version of heateqn used with Scipy’s optimize.fsolve, see /physics/heateqn.

These are kept separate as there is significantly more complexity required to get the inputs in the correct format for this version, and the requirement to not return anything (whereas scipy.optimize.fsolve requires a return value)

Attributes

heateqn

heateqn_lid

Functions

get_k_and_kappa(T, sfrac, lfrac, cp_air, cp_water, ...)

heateqn

heateqn_lid

propagate_temperature(cell, dz, dt, T_bc_top[, N])

solve_tridiagonal(a, b, c, d)

a: sub-diagonal (len n-1), A[i, i-1]

Module Contents

heateqn_nb.heateqn
heateqn_nb.heateqn_lid