PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800

◆ compute_conductivity()

void pism::hydrology::Routing::compute_conductivity ( const array::Staggered W,
const array::Scalar P,
const array::Scalar bed_elevation,
array::Staggered result,
double &  KW_max 
) const
protected

Compute the nonlinear conductivity at the center of cell edges.

Computes

\[ K = K(W, \nabla P, \nabla b) = k W^{\alpha-1} |\nabla R|^{\beta-2} \]

on the staggered grid, where \(R = P+\rho_w g b\). We denote

\[ \Pi = |\nabla R|^2 \]

internally; this is computed on a staggered grid by a Mahaffy-like ([Mahaffy]) scheme. This requires \(R\) to be defined on a box stencil of width 1.

Also returns the maximum over all staggered points of \( K W \).

Definition at line 436 of file Routing.cc.

References pism::array::Array2D< T >::add(), pism::GlobalMax(), pism::k, pism::Component::m_config, m_dx, m_dy, pism::Component::m_grid, m_R, m_rg, pism::array::max(), and pism::array::Array::update_ghosts().

Referenced by pism::hydrology::Distributed::update_impl(), and update_impl().