effluent.numerics

The module contains numerical helper functions.

Functions

bilin_inv(f, g, F, G[, maxiter, tol])

Inverse bilinear interpolation

Module Contents

effluent.numerics.bilin_inv(f, g, F, G, maxiter=7, tol=1e-07)

Inverse bilinear interpolation

f, g should be scalars or arrays of same shape

F, G should be 2D arrays of the same shape

Parameters:
  • f – Desired f value

  • g – Desired g value

  • F – Tabulated f values

  • G – Tabulated g values

  • maxiter – Maximum number of Newton iterations

  • tol – Maximum residual value

Returns:

A tuple (x, y) such that F[x, y] = f and G[x, y] = g, when linearly interpolated