---
url: /dyad/stable/stdlib/RotationalComponents/components/Components.Fixed.md
description: >-
  Dyad Components.Fixed docs.  Represents a mechanical rotational element fixed
  at a specified angle.
---

# `Components.Fixed` {#Components.Fixed}

Represents a mechanical rotational element fixed at a specified angle.

This component models a shaft that is rigidly clamped or fixed in its housing, preventing any rotation. The angle of this fixed shaft, `phi0`, is a configurable parameter. It effectively acts as an angular boundary condition in a 1D rotational mechanical system. The core behavior is defined by the equation that sets the angle of its connection spline (`spline.phi`) to this fixed parameter `phi0`:

$$spline.phi = phi0$$

## Usage {#Usage}

`RotationalComponents.Components.Fixed(phi0=0.0)`

## Parameters: {#Parameters:}

|   Name |                                                          Description | Units | Default value |
| ------:| --------------------------------------------------------------------:| -----:| -------------:|
| `phi0` | The prescribed fixed angle of the shaft with respect to the housing. |   rad |           0.0 |

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

## Behavior {#Behavior}

$$ \begin{align}
\mathtt{spline.phi}\left( t \right) &= \mathtt{phi0}
\end{align}
$$

## Source {#Source}

````dyad
"""
Represents a mechanical rotational element fixed at a specified angle.

This component models a shaft that is rigidly clamped or fixed in its housing,
preventing any rotation. The angle of this fixed shaft, `phi0`, is a
configurable parameter. It effectively acts as an angular boundary
condition in a 1D rotational mechanical system. The core behavior is
defined by the equation that sets the angle of its connection spline
(`spline.phi`) to this fixed parameter `phi0`:
```math
spline.phi = phi0
```
"""
component Fixed
  "Rotational connector representing the mechanical interface of the fixed shaft."
  spline = Spline() {"Dyad": {"placement": {"icon": {"x1": 450, "y1": -50, "x2": 550, "y2": 50}}}}
  "The prescribed fixed angle of the shaft with respect to the housing."
  parameter phi0::Angle = 0.0
relations
  spline.phi = phi0
metadata {
  "Dyad": {
    "icons": {"default": "dyad://RotationalComponents/Fixed.svg"},
    "labels": [{"label": "$(instance)", "layer": "icon", "x": 500, "y": 906, "rot": 0}]
  }
}
end
````

````dyad
"""
Represents a mechanical rotational element fixed at a specified angle.

This component models a shaft that is rigidly clamped or fixed in its housing,
preventing any rotation. The angle of this fixed shaft, `phi0`, is a
configurable parameter. It effectively acts as an angular boundary
condition in a 1D rotational mechanical system. The core behavior is
defined by the equation that sets the angle of its connection spline
(`spline.phi`) to this fixed parameter `phi0`:
```math
spline.phi = phi0
```
"""
component Fixed
  "Rotational connector representing the mechanical interface of the fixed shaft."
  spline = Spline() {"Dyad": {"placement": {"icon": {"x1": 450, "y1": -50, "x2": 550, "y2": 50}}}}
  "The prescribed fixed angle of the shaft with respect to the housing."
  parameter phi0::Angle = 0.0
relations
  spline.phi = phi0
metadata {
  "Dyad": {
    "icons": {"default": "dyad://RotationalComponents/Fixed.svg"},
    "labels": [{"label": "$(instance)", "layer": "icon", "x": 500, "y": 906, "rot": 0}]
  }
}
end
````

## Test Cases {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses

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

  * [`ConstantVelocity`](Components.Fixed.md)

  * [`Position`](Components.Fixed.md)

  * [`TestBraking`](Components.Fixed.md)

  * [`Torque2`](Components.Fixed.md)

  * [`TorqueStep`](Components.Fixed.md)

  * [`VelocitySource`](Components.Fixed.md)
