@DanielPiker
Is it possible to define non-linear springs in Kangaroo. I see that there is a Plastic Length
and a Constant Tension
spring already implemented…
Would be great if the spring-“constant” could be changed depending on the applied force, or applied deformation (?).
I am experimenting with the micro modeling of woven membranes in Kangaroo, as studied here:
https://elib.uni-stuttgart.de/handle/11682/3769
Thanks a lot,
Rudi
p.s.: If the answer is C# again, I will freakin start learning it
Tom_P
June 19, 2023, 3:55pm
2
check out this example:
You can control the strength of the Length goals as some function of distance from the sharp corners like this:
[image]
InflateEdge.gh (309.0 KB)
When you have a curved surface coming down to a sharp corner like this, it has to form a cone right at the corner, so the bending radius goes to zero, which physical materials don’t really like doing.
I do wonder as well if there might be a way to make this sort of shape with NURBS. It’s a tricky one, but maybe possible.
or
adapt this
using System.Collections.Generic;
using Rhino.Geometry;
namespace KangarooSolver.Goals
{
public class Spring : GoalObject
{
public double RestLength, Stiffness;
public Spring()
{
}
public Spring(int s, int e, double l, double k)
{
PIndex = new int[2] { s, e };
Move = new Vector3d[2];
Weighting = new double[2];
RestLength = l;
Stiffness = k;
This file has been truncated. show original
or maybe this
… or search this forum for custom goal
Hope this helps - kind regards - tom
1 Like