---
url: /dyad/stable/stdlib/TranslationalComponents/components/Sources.ConstantSpeed.md
description: Dyad Sources.ConstantSpeed docs.  Deprecated alias for ConstantVelocity.
---

# `Sources.ConstantSpeed` {#Sources.ConstantSpeed}

Deprecated alias for `ConstantVelocity`.

`ConstantSpeed` has been renamed to `ConstantVelocity` to align the Translational library naming with the Dyad mechanical libraries. This alias is retained so existing models keep working; use `TranslationalComponents.Sources.ConstantVelocity` in new models.

This component extends from [`TranslationalComponents.Sources.ConstantVelocity`](Sources.ConstantVelocity.md)

## Usage {#Usage}

`TranslationalComponents.Sources.ConstantSpeed(v_fixed)`

## Parameters: {#Parameters:}

|      Name |                                        Description | Units | Default value |
| ---------:| --------------------------------------------------:| -----:| -------------:|
| `v_fixed` | Fixed speed (if negative, force is acting as load) |   m/s |               |

## Connectors {#Connectors}

* `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` - 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` | Distance between flange and support (= flange.s - support.s) |     m |
|  `f` |             Accelerating force acting at flange (= flange.f) |     N |
|  `v` |        Velocity of flange with respect to support (= der(s)) |   m/s |

## Behavior {#Behavior}

$$ \begin{align}
s\left( t \right) &= \mathtt{flange.s}\left( t \right) - \mathtt{support.s}\left( t \right) \\
\mathtt{support.f}\left( t \right) &=  - \mathtt{flange.f}\left( t \right) \\
f\left( t \right) &= \mathtt{flange.f}\left( t \right) \\
v\left( t \right) &= \frac{\mathrm{d}s\left( t \right)}{\mathrm{d}t} \\
v\left( t \right) &= \mathtt{v_fixed}
\end{align}
$$

## Source {#Source}

```dyad
"""
Deprecated alias for `ConstantVelocity`.

`ConstantSpeed` has been renamed to `ConstantVelocity` to align the Translational library
naming with the Dyad mechanical libraries. This alias is retained so existing models keep
working; use `TranslationalComponents.Sources.ConstantVelocity` in new models.
"""
component ConstantSpeed
  extends TranslationalComponents.Sources.ConstantVelocity
relations
metadata {
  "Dyad": {
    "icons": {"default": "dyad://TranslationalComponents/ConstantVelocity.svg"},
    "deprecated": {
      "message": "`ConstantSpeed` has been renamed to `ConstantVelocity`. Use `TranslationalComponents.Sources.ConstantVelocity` instead.",
      "hotfix": {
        "action": "replace",
        "value": "TranslationalComponents.Sources.ConstantVelocity"
      }
    }
  }
}
end
```

```dyad
"""
Deprecated alias for `ConstantVelocity`.

`ConstantSpeed` has been renamed to `ConstantVelocity` to align the Translational library
naming with the Dyad mechanical libraries. This alias is retained so existing models keep
working; use `TranslationalComponents.Sources.ConstantVelocity` in new models.
"""
component ConstantSpeed
  "Flange of component"
  flange = Flange() {"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}
  "Support/housing of component"
  support = Flange() {"Dyad": {"placement": {"icon": {"x1": 450, "y1": 950, "x2": 550, "y2": 1050}}}}
  "Distance between flange and support (= flange.s - support.s)"
  variable s::Length
  "Accelerating force acting at flange (= flange.f)"
  variable f::Dyad.Force
  "Fixed speed (if negative, force is acting as load)"
  parameter v_fixed::Velocity
  "Velocity of flange with respect to support (= der(s))"
  variable v::Velocity
relations
  s = flange.s - support.s
  support.f = -flange.f
  f = flange.f
  v = der(s)
  v = v_fixed
metadata {
  "Dyad": {
    "icons": {"default": "dyad://TranslationalComponents/ConstantVelocity.svg"},
    "labels": [{"label": "$(instance)", "layer": "icon", "x": 500, "y": 1204, "rot": 0}],
    "deprecated": {
      "message": "`ConstantSpeed` has been renamed to `ConstantVelocity`. Use `TranslationalComponents.Sources.ConstantVelocity` instead.",
      "hotfix": {
        "action": "replace",
        "value": "TranslationalComponents.Sources.ConstantVelocity"
      }
    }
  }
}
end
```

## Test Cases {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses
