---
url: /dyad/dev/stdlib/MultibodyComponents/tests/PlanarMechanics.TestPlanarCableNoEndJoints.md
description: >-
  Dyad PlanarMechanics.TestPlanarCableNoEndJoints docs.  Planar cable test:
  World → Cable(end_joints=false, n=3) → Body. Tests the n-1 internal-joint
  topology (rigid attachment at both ends).
---

# `PlanarMechanics.TestPlanarCableNoEndJoints` {#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 {#Usage}

`MultibodyComponents.PlanarMechanics.TestPlanarCableNoEndJoints()`

## Parameters: {#Parameters:}

|              Name | Description | Units | Default value |
| -----------------:| -----------:| -----:| -------------:|
| `number_of_links` |             |     – |             3 |

## Behavior {#Behavior}

## Source {#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
  structural parameter number_of_links::Integer = 3
  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)
relations
  connect(world.frame_b, cable.frame_a)
  connect(cable.frame_b, load.frame_a)
metadata {"Dyad": {"tests": {"case1": {"stop": 2}}}}
end
```

```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
  structural parameter number_of_links::Integer = 3
  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)
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-Cases}

### Test Case `case1` {#Test-Case-case1}

## Related {#Related}

* Examples

* Experiments

* Analyses

* Tests
  * [`Body`](PlanarMechanics.TestPlanarCableNoEndJoints.md)

  * [`Cable`](PlanarMechanics.TestPlanarCableNoEndJoints.md)

  * [`World`](PlanarMechanics.TestPlanarCableNoEndJoints.md)
