|
From: Julian S. <ju...@op...> - 2023-07-22 21:25:01
|
On Fri, 21 Jul 2023 19:36:48 +0100 Julian Smith <ju...@op...> wrote: > On Fri, 21 Jul 2023 14:04:25 +0100 > James Turner <ja...@fl...> wrote: > > > Maybe we could simply add a quadratic term scaled by a new > > > dimensionless constant `spring2` in the XML: > > > > > > force = _spring * compression * (_frac + spring2 * _frac**2) > > > > > > [One could view `spring2` has modifying the maximum force of the > > > spring at full compression, > > > > > > force_max -> force_max * (1 + spring2). > > > > > > For example `spring2=10` would result in 11x the force at maximum > > > compression compared to the default `spring2=0`.] > > > > > > I'm hopeful that this could address the original problem without the > > > danger of pathological behaviour. I think it would be pretty easy to > > > implement too. > > > > Definitely worth a shot, as far as I’m concerned. Again I’d be > > Ok, i might have a look at this, unless someone else gets there first. I've just pushed a commit to next that implements this. - Jules -- http://op59.net |