POV-Ray : Newsgroups : povray.advanced-users : Springs : Re: Springs Server Time
28 Jul 2024 22:29:17 EDT (-0400)
  Re: Springs  
From: Mikael Pohjola
Date: 8 Nov 2003 04:21:27
Message: <oprybax7zv0x9foi@news.povray.org>
On Sat, 08 Nov 2003 09:22:19 +0100, Christoph Hormann 
<chr### [at] gmxde> wrote:
>
> For (linear) springs the force is:
>


No, the force is:

   F = -k*dx,
where dx is the displacement from the equilibrium. For a spring with 
length l it gives:

   F = -k*abs(x-l)

The energy of the spring is on the other hand given by:

   E = 1/2*k*(x-l)^2

-Mikael Pohjola

-- 
light_source{20*y,1}#macro _(M,X,Y,P)#macro L(N,D)#if(N)#declare 
P=P+D;box{-
0.5,0.5translate z*mod(9*P.gray,4)pigment{rgb P}rotate 45*x+clock*y 
translate
P}L(N-1,D)#end#end#if(M)L(mod(M,8)<mod(X,3)mod(Y,3)1>-1)_(div(M,8)div(X,3)div
(Y,3)P)#end#end _(2301603551,12850,60365,20*z-5*x)plane{y,-9pigment{rgb 1}}


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.