Skip to content

Commit

Permalink
Updated documentation of intnormflux
Browse files Browse the repository at this point in the history
  • Loading branch information
mbakker7 committed Dec 5, 2023
1 parent 5282197 commit 965e478
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions timml/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ def intnormflux_segment(self, x1, y1, x2, y2, method="legendre", ndeg=10):
return L * qn / 2.0

def intnormflux(self, xy, method="legendre", ndeg=10):
"""Integrated normal (perpendicular) flux over polyline
"""Integrated normal (perpendicular) flux over polyline giving
the flux per segment and per aquifer.
Flux to the left is positive when going from (x1, y1) to (x2, y2).
Expand All @@ -196,8 +197,13 @@ def intnormflux(self, xy, method="legendre", ndeg=10):
Returns
-------
Qn : np.array of length naq
Qn : np.array of shape (naq, nsegments)
integrated normal flux along specified polyline
Example
-------
Total flow across polyline can be obtained using np.sum(Qn)
Total flow across segments summed over aquifers using np.sum(Qn, axis=0)
"""

xy = np.array(xy) # convert to array
Expand Down

0 comments on commit 965e478

Please sign in to comment.