pyLBM.elements.Sphere.distance

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

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

../../_images/Sphere.png
Parameters:

x : x coordinates of the points

y : y coordinates of the points

z : z coordinates of the points

v : direction of interest

Returns:

array of distances