  A new analytical method for calculation the characteristics of the flow in
porous medium bounded by a rectangular polygonal path is proposed. The method
is based on the usage of high genus Riemann theta functions.
