---
url: /dyad/stable/stdlib/MultibodyComponents/tests/tests.TestCableCut.md
description: >-
  Dyad tests.TestCableCut docs.  Cable with a SphericalSpherical end rod (iscut
  = true) suspended between two fixed mounts, closing a kinematic loop between
  two rooted frame...
---

# `tests.TestCableCut` {#tests.TestCableCut}

Cable with a `SphericalSpherical` end rod (`iscut = true`) suspended between two fixed mounts, closing a kinematic loop between two rooted frames. The cable is longer than the distance between the mounts, so it sags under gravity and swings.

## Usage {#Usage}

`MultibodyComponents.tests.TestCableCut()`

## Parameters: {#Parameters:}

|              Name | Description | Units | Default value |
| -----------------:| -----------:| -----:| -------------:|
| `number_of_links` |             |     – |             4 |
|      `end_joints` |             |     – |          true |

## Behavior {#Behavior}

## Source {#Source}

```dyad
"""
Cable with a `SphericalSpherical` end rod (`iscut = true`) suspended between
two fixed mounts, closing a kinematic loop between two rooted frames. The
cable is longer than the distance between the mounts, so it sags under
gravity and swings.
"""
test component TestCableCut
  world = MultibodyComponents.World()
  mount = MultibodyComponents.Fixed(r = [1.5, 0, 0])
  cable = MultibodyComponents.Cable(n = number_of_links, iscut = true, end_joints = end_joints, l = 2, m = 4, dir = [1, 0, 0], radius = 0.02, initialize_orientation = false)
  structural parameter number_of_links::Integer = 4
  structural parameter end_joints::Boolean = true
relations
  connect(world.frame_b, cable.frame_a)
  connect(cable.frame_b, mount.frame_b)
end
```

```dyad
"""
Cable with a `SphericalSpherical` end rod (`iscut = true`) suspended between
two fixed mounts, closing a kinematic loop between two rooted frames. The
cable is longer than the distance between the mounts, so it sags under
gravity and swings.
"""
test component TestCableCut
  world = MultibodyComponents.World()
  mount = MultibodyComponents.Fixed(r = [1.5, 0, 0])
  cable = MultibodyComponents.Cable(n = number_of_links, iscut = true, end_joints = end_joints, l = 2, m = 4, dir = [1, 0, 0], radius = 0.02, initialize_orientation = false)
  structural parameter number_of_links::Integer = 4
  structural parameter end_joints::Boolean = true
relations
  connect(world.frame_b, cable.frame_a)
  connect(cable.frame_b, mount.frame_b)
metadata {}
end
```

## Test Cases {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses

* Tests
  * [`Cable`](tests.TestCableCut.md)

  * [`Fixed`](tests.TestCableCut.md)

  * [`World`](tests.TestCableCut.md)
