pyLBM.elements.Triangle.distance

Triangle.distance(grid, v, dmax=None)

Compute the distance in the v direction between the triangle and the points defined by (x, y).

../../_images/Triangle.png
Parameters:

x : x coordinates of the points

y : y coordinates of the points

v : direction of interest

Returns:

array of distances