spring1sΒΆ
- Purpose:
Compute spring force in a spring element.
- Syntax:
es = spring1s(ep, ed)- Description:
spring1scomputes the spring force in the spring elementspring1e.The input variable
epis defined inspring1eand the element nodal displacementsedare obtained by the functionextract_ed.The output variable
es\(= [N]\)contains the spring force, or the analog quantity.
- Theory:
The spring force \(N\), or analog quantity, is computed according to
\[N = k \left(u_2 - u_1\right)\]