---
url: /dyad/stable/stdlib/MultibodyComponents/components/PlanarMechanics.Fixed.md
description: >-
  Dyad PlanarMechanics.Fixed docs.  Frame fixed in the planar world frame at a
  given position and orientation.
---

# `PlanarMechanics.Fixed` {#PlanarMechanics.Fixed}

Frame fixed in the planar world frame at a given position and orientation.

## Usage {#Usage}

`MultibodyComponents.PlanarMechanics.Fixed(r=[0, 0], phi=0)`

## Parameters: {#Parameters:}

|  Name |                                               Description | Units | Default value |
| -----:| ---------------------------------------------------------:| -----:| -------------:|
|   `r` | Fixed absolute xy-position, resolved in planarWorld frame |     m |        \[0, 0] |
| `phi` |                                               Fixed angle |   rad |             0 |

## Connectors {#Connectors}

* `frame_b` - Coordinate system (2-dim.) fixed to the component with one cut-force and cut-torque.

All variables are resolved in the planar world frame. ([`Frame2D`](/stdlib/Dyad/connectors/Frame2D#Frame2D))

## Behavior {#Behavior}

$$ \begin{align}
\mathtt{frame_b.x}\left( t \right) &= r\_{1} \\
\mathtt{frame_b.y}\left( t \right) &= r\_{2} \\
\mathtt{frame_b.phi}\left( t \right) &= \mathtt{phi}
\end{align}
$$

## Source {#Source}

```dyad
"Frame fixed in the planar world frame at a given position and orientation."
component Fixed
  frame_b = Frame2D() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 450, "y1": 450, "x2": 550, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  "Fixed absolute xy-position, resolved in planarWorld frame"
  parameter r::Dyad.Position[2] = [0, 0]
  "Fixed angle"
  parameter phi::Angle = 0
relations
  [frame_b.x, frame_b.y] = r
  frame_b.phi = phi
metadata {"Dyad": {"icons": {"default": "dyad://MultibodyComponents/Fixed.svg"}}}
end
```

```dyad
"Frame fixed in the planar world frame at a given position and orientation."
component Fixed
  frame_b = Frame2D() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 450, "y1": 450, "x2": 550, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  "Fixed absolute xy-position, resolved in planarWorld frame"
  parameter r::Dyad.Position[2] = [0, 0]
  "Fixed angle"
  parameter phi::Angle = 0
relations
  [frame_b.x, frame_b.y] = r
  frame_b.phi = phi
metadata {"Dyad": {"icons": {"default": "dyad://MultibodyComponents/Fixed.svg"}}}
end
```

## Test Cases {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses

* Tests
  * [`CutForceTest`](PlanarMechanics.Fixed.md)

  * [`CutTorqueTest`](PlanarMechanics.Fixed.md)

  * [`RelativeForceTest`](PlanarMechanics.Fixed.md)

  * [`TestCableCut`](PlanarMechanics.Fixed.md)
