---
url: /dyad/dev/stdlib/MultibodyComponents/examples/examples.LinearPend.md
description: Dyad examples.LinearPend docs.  MultibodyComponents.examples.LinearPend()
---

# `examples.LinearPend` {#examples.LinearPend}

## Usage {#Usage}

`MultibodyComponents.examples.LinearPend()`

## Behavior {#Behavior}

## Source {#Source}

```dyad
example component LinearPend
  world = MultibodyComponents.World() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 320, "y1": 450, "x2": 420, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  body = MultibodyComponents.Body(orientation_state = OrientationState.Quaternion(), r_0(initial = [0, -1e-3, 0])) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 450, "y1": 630, "x2": 550, "y2": 730, "rot": 90}
      },
      "tags": []
    }
  }
  spring = MultibodyComponents.Spring() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 450, "y1": 500, "x2": 550, "y2": 600, "rot": 90}
      },
      "tags": []
    }
  }
relations
  # initial body.w_a = [0, 0, 0]
  # initial body.r_0 = [0, 0, 0]
  # initial body.v_0 = [0, 0, 0]
  connect(world.frame_b, spring.frame_a) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
  connect(spring.frame_b, body.frame_a) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
end
```

```dyad
example component LinearPend
  world = MultibodyComponents.World() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 320, "y1": 450, "x2": 420, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  body = MultibodyComponents.Body(orientation_state = OrientationState.Quaternion(), r_0(initial = [0, -1e-3, 0])) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 450, "y1": 630, "x2": 550, "y2": 730, "rot": 90}
      },
      "tags": []
    }
  }
  spring = MultibodyComponents.Spring() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 450, "y1": 500, "x2": 550, "y2": 600, "rot": 90}
      },
      "tags": []
    }
  }
relations
  # initial body.w_a = [0, 0, 0]
  # initial body.r_0 = [0, 0, 0]
  # initial body.v_0 = [0, 0, 0]
  connect(world.frame_b, spring.frame_a) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
  connect(spring.frame_b, body.frame_a) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
metadata {}
end
```

## Test Cases {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses
