Pulga Physics Solver

https://github.com/nortikin/sverchok/assets/14288520/2dc0b37e-3267-48c0-b022-0b197c8e90d5

Functionality

This node creates simulations from input parameters, it is meant to be used in form-finding purposes. It creates the simulation using the inputted vertices as spherical particles that react to applied forces.

The node is a basic NumPy implementation of basic physics system heavily inspired in “The Nature of Code” by Daniel Shiffman and the Kangoroo Plug-in for Grasshopper. Due the nature of the algorithm it can get very intensive, handle with responsibility

Input & Output

Input

Type

Description

Initial_Pos

Vertices

Vertices in original state

Iterations

Integer

Number of iterations of the process

Radius

Float

Radius of virtual sphere, used to calculate intersections, mass and surface

Initial Velocity

Vertices

Initial vertices velocity

Max Velocity

Float

Maximum vertices velocity

Density

Float

Particles Density

Forces

Force

System forces

Output

Type

Description

Vertices

Vertices

Vertices in original state

Radius

Strings

Radius of virtual sphere, used to calculate intersections, mass and surface

Velocity

Vertices

Velocity at the end of iterations

Pin Reactions | Strings

Reactions at Pinned Vertices

Accumulative:

When activated every nodeTree update will use the previous update as the starting point. The update can be triggered by the Update button or by any other event that triggers regular updates (like playing animation or changing any value).

It offers some options:

Reset: Takes back the system to the initial state.

Update: Runs one Node-Tree update.

Pause: Pauses nodes calculations and ignores ui changes.

Examples

Arranging circles with attraction and collision.

https://github.com/nortikin/sverchok/assets/14288520/f03b8e4e-a78e-4f50-9986-c3aa3a7067e7

Getting result in animation:

https://github.com/nortikin/sverchok/assets/14288520/7a1022a6-c1b2-40be-a3f9-ab84a6b6bc21

Inflating a cube simulating a pillow.

https://github.com/nortikin/sverchok/assets/14288520/4c51f66c-bc37-4391-aeff-f41d43f5c48b

Animated:

https://github.com/nortikin/sverchok/assets/14288520/99dffb12-6355-472a-965f-f56c55c6de9f

Tensile structures can be studied with pinned points.

https://github.com/nortikin/sverchok/assets/14288520/b0a35c32-9daa-4047-9df8-3ceb9e20ab2b

Animated:

https://github.com/nortikin/sverchok/assets/14288520/fd2b45f9-60e4-4499-a001-83775f265469

Using the caternary as a structural modeling tool:

https://github.com/nortikin/sverchok/assets/14288520/279c74b2-8303-4d54-98b5-0cf1b5285b3f

Animated:

https://github.com/nortikin/sverchok/assets/14288520/7b64dea0-6699-4e9b-9a55-9a9bfc0d4e2a

Variable spring stiffness can be used to simulate sewing springs inflatable structures.

https://github.com/nortikin/sverchok/assets/14288520/2a68b551-4d9e-49ad-b279-4b8050f219d2 https://github.com/nortikin/sverchok/assets/14288520/54853304-19cd-48f7-b88f-d403f2c0fc87

Shooting particles to a attractors field.

https://github.com/nortikin/sverchok/assets/14288520/5286a603-f72a-44dc-950d-2b8e404b11e9

Animated:

https://github.com/nortikin/sverchok/assets/14288520/6b9003a6-939b-4ad6-b760-58ce9d6023b0

The “Pins Reactions” output supply the resultant force on the pins. It can be use to model auxiliary structures.

https://github.com/nortikin/sverchok/assets/14288520/6cd54f5d-4ec9-4964-82a1-cc7b42be3f8e

Animated

https://github.com/nortikin/sverchok/assets/14288520/ef3685f0-fae4-4eb7-83d8-caf6b4ce8451