Skip to content
LIBRARY
PlanarMechanics.TestPlanarCableNoEndJoints.md

PlanarMechanics.TestPlanarCableNoEndJoints

Planar cable test: World → Cable(end_joints=false, n=3) → Body. Tests the n-1 internal-joint topology (rigid attachment at both ends).

Usage

MultibodyComponents.PlanarMechanics.TestPlanarCableNoEndJoints()

Parameters:

NameDescriptionUnitsDefault value
number_of_links3

Behavior

Source

dyad
"""
Planar cable test: World → Cable(end_joints=false, n=3) → Body.
Tests the n-1 internal-joint topology (rigid attachment at both ends).
"""
test component TestPlanarCableNoEndJoints
  world = World()
  cable = Cable(n = number_of_links, dir = [1, 0], end_joints = false, l = 1, m = 1, radius = 0.02)
  load = Body(m = 0.5, I = 0.01)
  structural parameter number_of_links::Integer = 3
relations
  connect(world.frame_b, cable.frame_a)
  connect(cable.frame_b, load.frame_a)
metadata {"Dyad": {"tests": {"case1": {"stop": 2}}}}
end
Flattened Source
dyad
"""
Planar cable test: World → Cable(end_joints=false, n=3) → Body.
Tests the n-1 internal-joint topology (rigid attachment at both ends).
"""
test component TestPlanarCableNoEndJoints
  world = World()
  cable = Cable(n = number_of_links, dir = [1, 0], end_joints = false, l = 1, m = 1, radius = 0.02)
  load = Body(m = 0.5, I = 0.01)
  structural parameter number_of_links::Integer = 3
relations
  connect(world.frame_b, cable.frame_a)
  connect(cable.frame_b, load.frame_a)
metadata {"Dyad": {"tests": {"case1": {"stop": 2}}}}
end


Test Cases

Test Case case1