Divergence of a flow (source code)

= Divergence of a flow
{title2=$\operatorname{div}\theta$}

The divergence of a flow at a vertex is its total outward flow. Flow conservation means that this divergence vanishes at every interior vertex.