---
url: /dyad/stable/stdlib/TranslationalComponents/components/Components.Rod.md
description: Dyad Components.Rod docs.  Rod without inertia.
---

# `Components.Rod` {#Components.Rod}

Rod without inertia.

A translational rod **without inertia** and two rigidly connected flanges. The rod transmits force without any mass effect:

$$0 = flange_a.f + flange_b.f$$

The rod length `L` (inherited from `PartialRigid`) sets the fixed distance between flanges:

$$flange_b.s - flange_a.s = L$$

This component extends from [`TranslationalComponents.Interfaces.PartialRigid`](../types/Interfaces.PartialRigid.md)

## Usage {#Usage}

`TranslationalComponents.Components.Rod(L=0.0)`

## Parameters: {#Parameters:}

| Name |                                           Description | Units | Default value |
| ----:| -----------------------------------------------------:| -----:| -------------:|
|  `L` | Length of component, from left flange to right flange |     m |           0.0 |

## Connectors {#Connectors}

* `flange_a` - This connector represents a mechanical flange with position and force as the potential and flow variables, respectively. ([`Flange`](/stdlib/Dyad/connectors/Flange#Flange))

* `flange_b` - This connector represents a mechanical flange with position and force as the potential and flow variables, respectively. ([`Flange`](/stdlib/Dyad/connectors/Flange#Flange))

## Variables {#Variables}

| Name |                              Description | Units |
| ----:| ----------------------------------------:| -----:|
|  `s` | Absolute position of center of component |     m |

## Behavior {#Behavior}

$$ \begin{align}
\mathtt{flange_a.s}\left( t \right) &=  - \frac{1}{2} ~ L + s\left( t \right) \\
\mathtt{flange_b.s}\left( t \right) &= \frac{L}{2} + s\left( t \right) \\
0 &= \mathtt{flange_a.f}\left( t \right) + \mathtt{flange_b.f}\left( t \right)
\end{align}
$$

## Source {#Source}

````dyad
"""
Rod without inertia.

A translational rod **without inertia** and two rigidly connected flanges.
The rod transmits force without any mass effect:
```math
0 = flange\_a.f + flange\_b.f
```
The rod length `L` (inherited from `PartialRigid`) sets the fixed distance between flanges:
```math
flange\_b.s - flange\_a.s = L
```
"""
component Rod
  extends TranslationalComponents.Interfaces.PartialRigid
relations
  0 = flange_a.f + flange_b.f
metadata {
  "Dyad": {
    "icons": {"default": "dyad://TranslationalComponents/Rod.svg"},
    "labels": [{"label": "$(instance)", "layer": "icon", "x": 500, "y": 990, "rot": 0}]
  }
}
end
````

````dyad
"""
Rod without inertia.

A translational rod **without inertia** and two rigidly connected flanges.
The rod transmits force without any mass effect:
```math
0 = flange\_a.f + flange\_b.f
```
The rod length `L` (inherited from `PartialRigid`) sets the fixed distance between flanges:
```math
flange\_b.s - flange\_a.s = L
```
"""
component Rod
  "Left translational 1D flange"
  flange_a = Flange() {"Dyad": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}}
  "Right translational 1D flange"
  flange_b = Flange() {"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}
  "Absolute position of center of component"
  variable s::Dyad.Position
  "Length of component, from left flange to right flange"
  parameter L::Length = 0.0
relations
  flange_a.s = s - L / 2
  flange_b.s = s + L / 2
  0 = flange_a.f + flange_b.f
metadata {
  "Dyad": {
    "icons": {"default": "dyad://TranslationalComponents/Rod.svg"},
    "labels": [{"label": "$(instance)", "layer": "icon", "x": 500, "y": 990, "rot": 0}]
  }
}
end
````

## Test Cases {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses

* Tests
  * [`AllComponents`](Components.Rod.md)
