---
url: /dyad/stable/stdlib/TranslationalComponents/components/Components.IdealGearR2T.md
description: >-
  Dyad Components.IdealGearR2T docs.  Gearbox transforming rotational into
  translational motion.
---

# `Components.IdealGearR2T` {#Components.IdealGearR2T}

Gearbox transforming rotational into translational motion.

Couples rotational and translational motion, like a toothed wheel with a toothed rack, specifying the ratio of rotational / translational motion.

Matches MSL `Modelica.Mechanics.Translational.Components.IdealGearR2T`. This is a re-export of `RotationalComponents.Components.IdealGearR2T`.

This component extends from [`RotationalComponents.Components.IdealGearR2T`](../../RotationalComponents/components/Components.IdealGearR2T.md)

## Usage {#Usage}

`TranslationalComponents.Components.IdealGearR2T(ratio)`

## Parameters: {#Parameters:}

|    Name |                                                                                                                                                                       Description | Units | Default value |
| -------:| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:| -----:| -------------:|
| `ratio` | Gear ratio defining the conversion from relative angular displacement (spline.phi - support_r.phi) to relative translational displacement (flange.s - support_t.s). Units: rad/m. | rad/m |               |

## Connectors {#Connectors}

* `spline` - This connector represents a rotational spline with angle and torque as the potential and flow variables, respectively. ([`Spline`](/stdlib/Dyad/connectors/Spline#Spline))

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

* `support_r` - This connector represents a rotational spline with angle and torque as the potential and flow variables, respectively. ([`Spline`](/stdlib/Dyad/connectors/Spline#Spline))

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

## Behavior {#Behavior}

$$ \begin{align}
\mathtt{support_r.tau}\left( t \right) &=  - \mathtt{spline.tau}\left( t \right) \\
\mathtt{support_t.f}\left( t \right) &=  - \mathtt{flange.f}\left( t \right) \\
\mathtt{spline.phi}\left( t \right) - \mathtt{support_r.phi}\left( t \right) &= \left( \mathtt{flange.s}\left( t \right) - \mathtt{support_t.s}\left( t \right) \right) ~ \mathtt{ratio} \\
0 &= \mathtt{flange.f}\left( t \right) + \mathtt{ratio} ~ \mathtt{spline.tau}\left( t \right)
\end{align}
$$

## Source {#Source}

```dyad
"""
Gearbox transforming rotational into translational motion.

Couples rotational and translational motion, like a toothed wheel with
a toothed rack, specifying the ratio of rotational / translational motion.

Matches MSL `Modelica.Mechanics.Translational.Components.IdealGearR2T`.
This is a re-export of `RotationalComponents.Components.IdealGearR2T`.
"""
component IdealGearR2T
  extends RotationalComponents.Components.IdealGearR2T
relations
metadata {
  "Dyad": {
    "icons": {"default": "dyad://RotationalComponents/IdealGearR2T.svg"},
    "labels": [{"label": "$(instance)", "layer": "icon", "x": 500, "y": 1162, "rot": 0}]
  }
}
end
```

```dyad
"""
Gearbox transforming rotational into translational motion.

Couples rotational and translational motion, like a toothed wheel with
a toothed rack, specifying the ratio of rotational / translational motion.

Matches MSL `Modelica.Mechanics.Translational.Components.IdealGearR2T`.
This is a re-export of `RotationalComponents.Components.IdealGearR2T`.
"""
component IdealGearR2T
  "Flange of rotational shaft"
  spline = Spline() {"Dyad": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}}
  "Flange of translational rod"
  flange = Flange() {"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}
  "Rotational support/housing of component"
  support_r = Spline() {"Dyad": {"placement": {"icon": {"x1": 100, "y1": 950, "x2": 200, "y2": 1050}}}}
  "Translational support/housing of component"
  support_t = Flange() {"Dyad": {"placement": {"icon": {"x1": 800, "y1": 950, "x2": 900, "y2": 1050}}}}
  "Gear ratio defining the conversion from relative angular displacement (spline.phi - support_r.phi) to relative translational displacement (flange.s - support_t.s). Units: rad/m."
  parameter ratio::Real(units = "rad/m")
relations
  support_r.tau = -spline.tau
  support_t.f = -flange.f
  spline.phi - support_r.phi = ratio * (flange.s - support_t.s)
  0 = ratio * spline.tau + flange.f
metadata {
  "Dyad": {
    "icons": {"default": "dyad://RotationalComponents/IdealGearR2T.svg"},
    "labels": [{"label": "$(instance)", "layer": "icon", "x": 500, "y": 1162, "rot": 0}]
  }
}
end
```

## Test Cases {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses
