Skip to content

Joint Springs

Development after RC4 adds massless axial springs between two existing joints in planar and spatial models. Open Tools > Joint Springs…, add a spring, choose its start/end joints, enter positive axial stiffness in the displayed force/length units, and choose Bilateral, Tension only or Compression only. Stiffness is entered directly: the spring uses no material, section or EA/L calculation. Multiple explicitly named springs between the same joints act in parallel and their stiffnesses add when active.

The dialog stages all changes. OK creates one undo step; Cancel discards changes. The Structure tree lists the definitions, and the 2D/3D canvas and example browser show zigzag symbols. Edit springs through this dialog; their symbols and tree rows do not participate in node/member selection or member station probes. Supports and nodal loads are still edited on their joints.

Staged joint spring definitions

The small-displacement law uses the original unit chord n from start to end: extension = n · (u_end − u_start), and active force is k × extension. Extension and reported spring force are tension positive. Reversing the endpoint order preserves both quantities and the response. This differs from compression-positive frame member N. Inactive springs report zero actual force and retain their signed trial extension for inspection. The zigzag is a symbol; its bends do not change the axial stiffness or create intermediate joints.

Bilateral links support Linear elastic and Iterative elastic. One-way links require Iterative elastic: the axial force switch tolerance applies, not the displacement tolerance used by global ground springs. Every combination starts independently; contacts may deactivate and reactivate. Zero-force contacts receive the same directional stability check as unilateral bars, without residual stiffness. Two opposing one-way springs can restrain both signs of motion; a single unloaded one-way spring with a free opening direction is a mechanism.

Spring-only networks are allowed. Translational stability remains a physical requirement; unsupported rotations with no incident rotational stiffness are reported as undefined, and loads on those rotations are rejected. Springs have zero initial force and no mass or self-weight. Nodal forces may be applied at endpoints; loads cannot be assigned along a spring. Initial gap/slack, damping, rotational links, large-displacement axes and spring rest-position movement are not implemented. Joint springs with P-Delta, modal analysis, steel pushover, surfaces or spatial frame end releases are rejected pending separate validation.

After analysis, the Joint springs result tab lists stiffness, action, active state, extension and tension-positive force for the selected snapshot/combination. Active state and Iterations also describe one-way switching. Export the joint-spring CSV through File > Export Results, or include member and joint-spring results in a printable report. Units follow the selected display system without rerunning analysis. Active symbols are green and inactive symbols are grey/dashed. Spring forces are tabular; member force diagrams and member curve probes apply to frame/truss members.

One-way spring results, including inactive link force

File > Examples > Joint springs contains three independent hand checks:

Example Check
Series Network k = 100, 200 kip/in, 10 kip at C: B DX = +0.1 in, C DX = +0.15 in, both forces +10 kip.
Opposing One-Way Pair Parallel tension k=200 and compression k=300 kip/in: +10 kip gives +0.05 in; Reverse gives −0.0333333 in; Zero is stable with zero force.
3D Oblique Network Three orthogonal oblique directions with k=100/200/300 kip/in; independently solve R diag(k) Rᵀ u = (10,20,−30) kip and balance all reactions.

Definitions belong to their endpoint IDs. Moving a joint changes the original chord but keeps the entered k. Native joint deletion deletes incident links; undo restores them. Copy/repeat/rotate/mirror includes links when both endpoints are copied and shows them in the geometry preview. Reusing both existing endpoints can deliberately create additional parallel stiffness: review the new spring count before Apply. Two-node merging rewrites link endpoints and rejects any collapsed spring. Crossing a spring or placing a node on its interior does not split or connect it. 2D-to-3D conversion preserves the definitions and explicit support mapping. Spring IDs must differ from node/member IDs.

MCP exposes typed joint_springs in read_schema/read_model and atomic apply_batch puts/deletes. A full new value is, in canonical inch-kip units:

{"name":"S1","start":"A","end":"B","stiffness":100.0,"behavior":"bilateral"}

Use read_results(kind="joint_springs") with the usual snapshot, combination and pagination checks. Atomic node deletions must explicitly remove or update every incident spring in the same batch. Native and MCP edits share validation, revision checks, undo and analysis identity. Memberless spring-only networks also support static deformation animation (Tools > Animate Static Deformation…), orthographic 3D report rendering, and opening the Diagrams dialog for combination comparisons and drift checks.

Programmatic Python example for creating and solving a 2D joint-spring network:

from pynitegui.qt.analysis import analyze
from pynitegui.qt.joint_springs import JointSpring, result_table
from pynitegui.qt.model import Load, Project

project = Project()
a = project.node_at(0.0, 0.0)
b = project.node_at(60.0, 0.0)
c = project.node_at(120.0, 0.0)
project.nodes[a].support = "pin"
project.nodes[b].support = "roller"
project.nodes[c].support = "roller"
project.joint_springs["S1"] = JointSpring("S1", a, b, stiffness=100.0, behavior="bilateral")
project.joint_springs["S2"] = JointSpring("S2", b, c, stiffness=200.0, behavior="bilateral")
project.loads["L1"] = Load("L1", c, "FX", 10.0)
project.validate()

result = analyze(project)
headers, rows = result_table(project, result)
for row in rows:
    print(dict(zip(headers, row)))

Source: GUIDE.md. This manual follows the current repository; the published rc1 wheel has a smaller feature set.