RBF Vector Field

https://github.com/nortikin/sverchok/assets/14288520/91843f6d-fe55-4a20-b48b-f062ce73b28f

Dependencies

This node optionally uses SciPy library to work.

Functionality

This node generates a Vector Field for given set of points in 3D space and corresponding vector field values (vectors), by use of RBF method. Depending on node parameters, the field can be interpolating, i.e. have exactly the provided values in the provided points, or only approximating.

https://github.com/nortikin/sverchok/assets/14288520/f329b42f-367c-43cf-93f4-afce5f944492

Inputs

This node has the following inputs:

  • VerticesFrom. The set of points where the values of the vector field are known. This input is mandatory.

  • VerticesTo. The values of the vector field (i.e. vectors) in points defined by VerticesFrom input. This input is mandatory.

    https://github.com/nortikin/sverchok/assets/14288520/8b9e9bbb-aa10-494e-a96b-8e0681a8bee4
  • Epsilon. Epsilon parameter of used RBF function; it affects the shape of generated field. The default value is 1.0.

  • Smooth. Smoothness parameter of used RBF function. If this is zero, then the field will have exactly the specified values in all provided points; otherwise, it will be only an approximating field. The default value is 0.0.

    https://github.com/nortikin/sverchok/assets/14288520/1e639272-7a9b-4c5f-9749-5ed969a4feb6

Parameters

This node has the following parameters:

  • Field type. The available options are:

    https://github.com/nortikin/sverchok/assets/14288520/06c34294-1f26-44d7-b46d-b884a51073b6
    • Relative. The node will output a “relative” vector field, i.e. it will be supposed to work with Fields->Apply Vector Field node. The vectors in VerticesTo input are supposed to be “force vectors”, i.e. vectors that should be added to points in VectorsFrom input.

    • Absolute. The node will output an “absolute” vector field, i.e. it will be supposed to work with Fields->Evaluate Vector Field node. The vectors in VerticesTo input are supposed to be points where points from VerticesFrom input should be mapped to.

    The default option is Relative.

  • Function. The specific function used by the node. The available values are:

    • Multi Quadric

    • Inverse

    • Gaussian

    • Cubic

    • Quintic

    • Thin Plate

      https://github.com/nortikin/sverchok/assets/14288520/da412d29-d035-4dcf-b2eb-a4413dbd50f3

    The default function is Multi Quadric.

Outputs

This node has the following output:

  • Field. The generated vector field.

Example of usage

Define eight “force” vectors for each of eight vertices of a cube. Build an interpolating vector field for such vectors. Then apply it to better subdivided cube:

https://user-images.githubusercontent.com/284644/87243779-19f3ec80-c452-11ea-8570-b95db6e11efb.png
https://github.com/nortikin/sverchok/assets/14288520/e1035edc-cec7-47b1-8fb6-f6b3e01827d6