Pulga Springs Force

https://github.com/nortikin/sverchok/assets/14288520/f26739ab-e00d-4f19-8f59-c050f68a9e6b

Functionality

This node creates a force to be applied with the [Pulga Physics->Pulga Physics Solver] node.

The springs are defined as edges indices.

The force direction the direction of the edge.

The force magnitude will be: (Spring Length - Spring Rest Length) * Stiffness

https://github.com/nortikin/sverchok/assets/14288520/27685dc7-d85c-4101-a4b8-4d26f3285ebc

Input

  • Springs: Edges Indices referring to the particle system vertices.

  • Stiffness: Stiffness of the springs, if multiple values are given the will be use as stiffness per spring.

  • Rest Length: Springs rest length, if set to 0 the rest length will be calculated from the initial position.

  • Clamp: Constrain maximum difference each iteration. If set to 0 no clap will be applied

Examples

Example in description:

https://github.com/nortikin/sverchok/assets/14288520/e8c76f03-518a-458d-a2d5-3f7edf8ffb77

Example with Cylinder:

https://github.com/nortikin/sverchok/assets/14288520/3f80e648-2000-40ee-b87b-f064f476ba56

Example with Torus:

https://github.com/nortikin/sverchok/assets/14288520/5c5f48fd-f612-4f8f-924a-85f0d0c9ada2
https://github.com/nortikin/sverchok/assets/14288520/ca855c7e-d4c1-4ebb-b7bf-e087d5da2e30 https://github.com/nortikin/sverchok/assets/14288520/fa53b414-91e1-49b3-bfca-c46c49c72f83
https://github.com/nortikin/sverchok/assets/14288520/b6725122-effc-4338-ba2e-9937b9396ff9 https://github.com/nortikin/sverchok/assets/14288520/16dd65d0-b235-4a76-aa14-69cc6aff0273