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

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

Deprecated alias for `ConstantVelocity`.

This name is retained for backward compatibility. Use `RotationalComponents.Sources.ConstantVelocity` instead.

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

## Usage {#Usage}

`RotationalComponents.Sources.ConstantSpeed(w_fixed)`

## Parameters: {#Parameters:}

|      Name | Description | Units | Default value |
| ---------:| -----------:| -----:| -------------:|
| `w_fixed` | Fixed speed | rad/s |               |

## 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))

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

## Variables {#Variables}

|          Name |                                                     Description | Units |
| -------------:| ---------------------------------------------------------------:| -----:|
| `phi_support` |                            Absolute angle of the support spline |   rad |
|         `phi` |                         Angle of spline with respect to support |     – |
|           `w` | Angular velocity of spline with respect to support (= der(phi)) | rad/s |

## Behavior {#Behavior}

$$ \begin{align}
\mathtt{support.phi}\left( t \right) &= \mathtt{phi_support}\left( t \right) \\
\mathtt{support.tau}\left( t \right) &=  - \mathtt{spline.tau}\left( t \right) \\
\mathtt{phi}\left( t \right) &=  - \mathtt{phi_support}\left( t \right) + \mathtt{spline.phi}\left( t \right) \\
w\left( t \right) &= \frac{\mathrm{d}\mathtt{phi}\left( t \right)}{\mathrm{d}t} \\
w\left( t \right) &= \mathtt{w_fixed}
\end{align}
$$

## Source {#Source}

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

This name is retained for backward compatibility. Use
`RotationalComponents.Sources.ConstantVelocity` instead.
"""
component ConstantSpeed
  extends RotationalComponents.Sources.ConstantVelocity
relations
metadata {
  "Dyad": {
    "deprecated": {
      "message": "ConstantSpeed is deprecated; use ConstantVelocity instead.",
      "hotfix": {"action": "replace", "value": "RotationalComponents.Sources.ConstantVelocity"}
    }
  }
}
end
```

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

This name is retained for backward compatibility. Use
`RotationalComponents.Sources.ConstantVelocity` instead.
"""
component ConstantSpeed
  "Primary rotational shaft spline connector"
  spline = Spline() {"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}
  "Support spline connector"
  support = Spline() {
    "Dyad": {
      "placement": {"icon": {"iconName": "support", "x1": 450, "y1": 950, "x2": 550, "y2": 1050}}
    }
  }
  "Absolute angle of the support spline"
  variable phi_support::Angle
  "Angle of spline with respect to support"
  variable phi::Real
  "Fixed speed"
  parameter w_fixed::AngularVelocity
  "Angular velocity of spline with respect to support (= der(phi))"
  variable w::AngularVelocity
relations
  support.phi = phi_support
  support.tau = -spline.tau
  phi = spline.phi - phi_support
  w = der(phi)
  w = w_fixed
metadata {
  "Dyad": {
    "icons": {"default": "dyad://RotationalComponents/ConstantVelocity.svg"},
    "labels": [{"label": "$(instance)", "layer": "icon", "x": 500, "y": 1203, "rot": 0}],
    "deprecated": {
      "message": "ConstantSpeed is deprecated; use ConstantVelocity instead.",
      "hotfix": {"action": "replace", "value": "RotationalComponents.Sources.ConstantVelocity"}
    }
  }
}
end
```

## Test Cases {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses
