timflow.steady.model.Model.intnormflux_segment#
- timflow.steady.model.Model.intnormflux_segment(x1, y1, x2, y2, method='legendre', ndeg=10)#
Integrated normal (perpendicular) flux over specified line segment.
Flux to the left is positive when going from (x1, y1) to (x2, y2).
- Parameters:
x1 (float)
y1 (float)
x2 (float)
y2 (float)
method (str, optional) – integration method, either “quad” (numerical integration using scipy) or “legendre” (approximate integral using Gauss-Legendre quadrature), by default “legendre”.
ndeg (int, optional) – degree for legendre polynomial, by default 10, only used when method=”legendre”
- Returns:
Qn – integrated normal flux along specified line
- Return type:
np.array