Pulga Springs Force =================== .. image:: https://github.com/nortikin/sverchok/assets/14288520/f26739ab-e00d-4f19-8f59-c050f68a9e6b :target: https://github.com/nortikin/sverchok/assets/14288520/f26739ab-e00d-4f19-8f59-c050f68a9e6b Functionality ------------- This node creates a force to be applied with the [:doc:`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 .. image:: https://github.com/nortikin/sverchok/assets/14288520/27685dc7-d85c-4101-a4b8-4d26f3285ebc :target: 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. .. image:: https://github.com/nortikin/sverchok/assets/14288520/353b8c64-0a3c-4dde-aa99-2ee2bafd1f17 :target: https://github.com/nortikin/sverchok/assets/14288520/353b8c64-0a3c-4dde-aa99-2ee2bafd1f17 * **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 .. _PULGA_SPRINGS_FORCE_EXAMPLES: Examples -------- Example in description: .. image:: https://github.com/nortikin/sverchok/assets/14288520/e8c76f03-518a-458d-a2d5-3f7edf8ffb77 :target: https://github.com/nortikin/sverchok/assets/14288520/e8c76f03-518a-458d-a2d5-3f7edf8ffb77 * Generator-> :doc:`Cylinder ` * Spatial-> :doc:`Populate Mesh ` * Spatial-> :doc:`Voronoi on Mesh ` * Modifiers->Modifier Change-> :doc:`Mesh Join ` * Modifiers->Modifier Change-> :doc:`Merge by Distance ` * Analyzers->Component Analyzer **Vertices->Sharpness**: :ref:`Vertices Sharpness` * Analyzers->Component Analyzer **Vertices->Is Boundary**: :ref:`Vertices Is Boundary` * List->List Main-> :doc:`List Zip ` * List->List Main-> :doc:`List Math ` * List-> :doc:`List Mask (Out) ` * List->List Main-> :doc:`List Length ` * List->List Struct-> :doc:`List Repeater ` * List->List Main-> :doc:`List Zip ` * BIG_EQ: Logic-> :doc:`Logic Functions ` * Logic-> :doc:`Switch ` * Color-> :doc:`Color Input ` * Viz-> :doc:`Viewer Draw ` * Pulga Physics-> :doc:`Pulga Physics Solver ` * Pulga Physics-> :doc:`Pulga Pin Force ` * Pulga Physics-> :doc:`Pulga Drag Force ` Example with Cylinder: .. image:: https://github.com/nortikin/sverchok/assets/14288520/3f80e648-2000-40ee-b87b-f064f476ba56 :target: https://github.com/nortikin/sverchok/assets/14288520/3f80e648-2000-40ee-b87b-f064f476ba56 Example with Torus: .. image:: https://github.com/nortikin/sverchok/assets/14288520/5c5f48fd-f612-4f8f-924a-85f0d0c9ada2 :target: https://github.com/nortikin/sverchok/assets/14288520/5c5f48fd-f612-4f8f-924a-85f0d0c9ada2 --------- .. image:: https://github.com/nortikin/sverchok/assets/14288520/ca855c7e-d4c1-4ebb-b7bf-e087d5da2e30 :target: https://github.com/nortikin/sverchok/assets/14288520/ca855c7e-d4c1-4ebb-b7bf-e087d5da2e30 * Generator-> :doc:`Plane ` * Analyzers->Component Analyzer: :ref:`Adjacent Edges num` * Logic-> :doc:`Logic Functions ` * List-> :doc:`Mask To Index ` * List->List Main-> :doc:`List Join ` * Viz-> :doc:`Viewer Draw ` * Pulga Physics-> :doc:`Pulga Physics Solver ` * Pulga Physics-> :doc:`Pulga Vector Force ` * Pulga Physics-> :doc:`Pulga Pin Force ` .. image:: https://github.com/nortikin/sverchok/assets/14288520/fa53b414-91e1-49b3-bfca-c46c49c72f83 :target: https://github.com/nortikin/sverchok/assets/14288520/fa53b414-91e1-49b3-bfca-c46c49c72f83 --------- .. image:: https://github.com/nortikin/sverchok/assets/14288520/b6725122-effc-4338-ba2e-9937b9396ff9 :target: https://github.com/nortikin/sverchok/assets/14288520/b6725122-effc-4338-ba2e-9937b9396ff9 * Generator-> :doc:`Box ` * Analyzers->Component Analyzer **Vertices->Sharpness**: :ref:`Vertices Sharpness` * Fields-> :doc:`Attractor Field ` * List-> :doc:`Mask To Index ` * List->List Main-> :doc:`List Join ` * Logic-> :doc:`Logic Functions ` * Viz-> :doc:`Viewer Draw ` * Pulga Physics-> :doc:`Pulga Physics Solver ` * Pulga Physics-> :doc:`Pulga Vector Force ` * Pulga Physics-> :doc:`Pulga Pin Force ` .. image:: https://github.com/nortikin/sverchok/assets/14288520/16dd65d0-b235-4a76-aa14-69cc6aff0273 :target: https://github.com/nortikin/sverchok/assets/14288520/16dd65d0-b235-4a76-aa14-69cc6aff0273