I have a problem to understand a passage in the article "Modeling the dynamics of pressure propagation and diameter variation in tree sapwood" that you can find here: ftp://ftp.bgc.mpg.de/pub/outgoing/athuille/Publications/2005/Peraemaeki_TP_2005.pdf
I haven't understood how equation (3) is obtained from conservation of water mass. In particular, let us consider a tree stem as tapering pipe of elastic porous material with permeability $k=k(h)$, where $h$ is stem height, and sapwood area $A_{sw}=\pi (r^2-r_{hw}^2)$, where $r=r(h)$ is the stem radius and $r_{hw}=r_{hw}(h)$ is radius of the heartwood (notice that: heartwood is the inner part of stem, without water, while sapwood is the part through the which water flows). So, authors claim that conservation of water mass of a stem segment of length $\partial h$ gives the equation of the continuity:
$\dfrac{\partial A_{sw}}{\partial t}+\dfrac{\partial Q}{\partial h}+S=0$
where $S$ is the sink caused by transpiration and $Q$ is sap flow in $m^3/s$. Any ideas?
Thank you in advance!