---
url: /dyad/stable/stdlib/MultibodyComponents/tests/PlanarMechanics.OneDOFSlippingWheelSpinningTest.md
description: >-
  Dyad PlanarMechanics.OneDOFSlippingWheelSpinningTest docs.  Test for
  OneDOFSlippingWheelJoint: a wheel spinning in place.
---

# `PlanarMechanics.OneDOFSlippingWheelSpinningTest` {#PlanarMechanics.OneDOFSlippingWheelSpinningTest}

Test for OneDOFSlippingWheelJoint: a wheel spinning in place.

A body (m=0.1, I=0.1) with initial angular velocity w=30 rad/s on a slip-based wheel of radius 1. The wheel starts spinning and eventually the rotational speed matches the linear speed. Translates the spinning wheel test from test_OneDOFWheelJoint.jl.

## Usage {#Usage}

`MultibodyComponents.PlanarMechanics.OneDOFSlippingWheelSpinningTest()`

## Behavior {#Behavior}

## Source {#Source}

```dyad
"""
Test for OneDOFSlippingWheelJoint: a wheel spinning in place.

A body (m=0.1, I=0.1) with initial angular velocity w=30 rad/s on a slip-based
wheel of radius 1. The wheel starts spinning and eventually the rotational speed
matches the linear speed.
Translates the spinning wheel test from test_OneDOFWheelJoint.jl.
"""
test component OneDOFSlippingWheelSpinningTest
  world = World(g = 9.82)
  body = Body(m = 0.1, I = 0.1, phi(initial = 0.0), w(initial = 30.0)) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 260, "y1": 20, "x2": 460, "y2": 220, "rot": 0}
      },
      "tags": []
    }
  }
  wheelJoint = OneDOFSlippingWheelJoint(radius = 1, mu_A = 0.95, mu_S = 0.7, sAdhesion = 0.04, sSlide = 0.12, vAdhesion_min = 0.05, vSlide_min = 0.15, x(initial = 0.0), v(initial = 0.0)) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 20, "y1": 190, "x2": 220, "y2": 390, "rot": 0}
      },
      "tags": []
    }
  }
relations
  connect(wheelJoint.frame_a, body.frame_a) {
    "Dyad": {
      "edges": [{"S": 1, "M": [{"x": 120, "y": 120}], "E": 2}],
      "renderStyle": "standard"
    }
  }
metadata {"Dyad": {"tests": {"case1": {"stop": 3}}}}
end
```

```dyad
"""
Test for OneDOFSlippingWheelJoint: a wheel spinning in place.

A body (m=0.1, I=0.1) with initial angular velocity w=30 rad/s on a slip-based
wheel of radius 1. The wheel starts spinning and eventually the rotational speed
matches the linear speed.
Translates the spinning wheel test from test_OneDOFWheelJoint.jl.
"""
test component OneDOFSlippingWheelSpinningTest
  world = World(g = 9.82)
  body = Body(m = 0.1, I = 0.1, phi(initial = 0.0), w(initial = 30.0)) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 260, "y1": 20, "x2": 460, "y2": 220, "rot": 0}
      },
      "tags": []
    }
  }
  wheelJoint = OneDOFSlippingWheelJoint(radius = 1, mu_A = 0.95, mu_S = 0.7, sAdhesion = 0.04, sSlide = 0.12, vAdhesion_min = 0.05, vSlide_min = 0.15, x(initial = 0.0), v(initial = 0.0)) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 20, "y1": 190, "x2": 220, "y2": 390, "rot": 0}
      },
      "tags": []
    }
  }
relations
  connect(wheelJoint.frame_a, body.frame_a) {
    "Dyad": {
      "edges": [{"S": 1, "M": [{"x": 120, "y": 120}], "E": 2}],
      "renderStyle": "standard"
    }
  }
metadata {"Dyad": {"tests": {"case1": {"stop": 3}}}}
end
```

## Test Cases {#Test-Cases}

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

## Related {#Related}

* Examples

* Experiments

* Analyses

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

  * [`OneDOFSlippingWheelJoint`](PlanarMechanics.OneDOFSlippingWheelSpinningTest.md)

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