spring1sΒΆ

Purpose:

Compute spring force in a spring element.

_images/spring3.svg
Syntax:
es = spring1s(ep, ed)
Description:

spring1s computes the spring force in the spring element spring1e.

The input variable ep is defined in spring1e and the element nodal displacements ed are obtained by the function extract_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)\]