hydromodpy.solver.boussinesq.smoothing#
Smooth C¹ approximations of the piecewise operators used in Boussinesq.
Replacing hard kinks (np.maximum, np.clip) with smooth counterparts
makes the Newton Jacobian continuous and improves solver convergence on fine
meshes where stiff ill-conditioned systems expose the non-differentiability.
All operators converge to their piecewise limits as ε → 0.
Functions
|
Derivative of |
|
Derivative of |
|
Smooth approximation of |
|
Smooth approximation of |
|
Smooth approximation of |