Evaluate Vector Field

https://github.com/nortikin/sverchok/assets/14288520/11055b4a-b9c1-406d-9c56-c7c7054b6d9b

Functionality

This node calculates the values of the provided Vector Field at the given points. More precisely, given the field VF (which is a function from vectors to vectors), and point X, it calculates the vector VF(X).

https://github.com/nortikin/sverchok/assets/14288520/3b015573-a8c3-4724-8c32-396169b70eb8 https://github.com/nortikin/sverchok/assets/14288520/5b6ebc53-29a8-46d2-9698-03c15bc98cd0

Inputs

This node has the following inputs:

  • Field. The vector field to be evaluated. This input is mandatory.

  • Vertices. The points at which to evaluate the field. The default value is (0, 0, 0).

Parameters

  • Output NumPy. Outputs NumPy arrays in stead of regular python lists. Improves performance

    https://github.com/nortikin/sverchok/assets/14288520/84b5166d-092f-4ff3-8802-a2da38f4b25d

Outputs

This node has the following output:

  • Vectors. The vectors calculated at the provided points.

Performance Notes

This node works faster when the vertices list are NumPy Arrays

Examples of usage

Example of description:

https://github.com/nortikin/sverchok/assets/14288520/ba8e4458-cc1a-444b-b1ef-413ea28b89a7

Replace each point of straight line segment with the result of noise vector field evaluation at that point:

https://user-images.githubusercontent.com/284644/79476391-5c0fbc80-8022-11ea-9457-1babe56f4388.png

Visualize vector field vectors by connecting original points of the line segment and the points obtained by moving the original points by the results of vector field evaluation:

https://user-images.githubusercontent.com/284644/79476395-5d40e980-8022-11ea-846b-68da09ed2e41.png