---
url: /dyad/dev/stdlib/TranslationalComponents/types/Interfaces.PartialRigid.md
description: >-
  Dyad Interfaces.PartialRigid docs.  Models a massless, rigid connection of a
  defined length between two translational 1D flanges.
---

# `Interfaces.PartialRigid` {#Interfaces.PartialRigid}

Models a massless, rigid connection of a defined length between two translational 1D flanges.

This partial component defines an ideal rigid bar of length `L` that connects two translational 1D mechanical flanges, `flange_a` and `flange_b`. The component's position is characterized by the absolute coordinate `s` of its center point. The positions of the flanges are then kinematically constrained relative to this center point and the length `L`. The key equations governing these positions are:

$$flange_a.s = s - \frac{L}{2}$$

$$flange_b.s = s + \frac{L}{2}$$

This also implies that the distance between the flanges is fixed:

$$flange_b.s - flange_a.s = L$$

As a `partial component`, it is intended to be used as a base for other, more complete components.

## Usage {#Usage}

`TranslationalComponents.Interfaces.PartialRigid(L=0.0)`

## Parameters: {#Parameters:}

| Name |                                           Description | Units | Default value |
| ----:| -----------------------------------------------------:| -----:| -------------:|
|  `L` | Length of component, from left flange to right flange |     m |           0.0 |

## Connectors {#Connectors}

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

* `flange_b` - 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` | Absolute position of center of component |     m |

## Source {#Source}

````dyad
"""
Models a massless, rigid connection of a defined length between two translational 1D flanges.

This partial component defines an ideal rigid bar of length `L` that connects two
translational 1D mechanical flanges, `flange_a` and `flange_b`. The component's
position is characterized by the absolute coordinate `s` of its center point.
The positions of the flanges are then kinematically constrained relative to this
center point and the length `L`. The key equations governing these positions are:
```math
flange\_a.s = s - \frac{L}{2}
```
```math
flange\_b.s = s + \frac{L}{2}
```
This also implies that the distance between the flanges is fixed:
```math
flange\_b.s - flange\_a.s = L
```
As a `partial component`, it is intended to be used as a base for other, more complete components.
"""
partial component PartialRigid
  "Left translational 1D flange"
  flange_a = Flange() {"Dyad": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}}
  "Right translational 1D flange"
  flange_b = Flange() {"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}
  "Absolute position of center of component"
  variable s::Dyad.Position
  "Length of component, from left flange to right flange"
  parameter L::Length = 0.0
relations
  flange_a.s = s - L / 2
  flange_b.s = s + L / 2
end
````

````dyad
"""
Models a massless, rigid connection of a defined length between two translational 1D flanges.

This partial component defines an ideal rigid bar of length `L` that connects two
translational 1D mechanical flanges, `flange_a` and `flange_b`. The component's
position is characterized by the absolute coordinate `s` of its center point.
The positions of the flanges are then kinematically constrained relative to this
center point and the length `L`. The key equations governing these positions are:
```math
flange\_a.s = s - \frac{L}{2}
```
```math
flange\_b.s = s + \frac{L}{2}
```
This also implies that the distance between the flanges is fixed:
```math
flange\_b.s - flange\_a.s = L
```
As a `partial component`, it is intended to be used as a base for other, more complete components.
"""
partial component PartialRigid
  "Left translational 1D flange"
  flange_a = Flange() {"Dyad": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}}
  "Right translational 1D flange"
  flange_b = Flange() {"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}
  "Absolute position of center of component"
  variable s::Dyad.Position
  "Length of component, from left flange to right flange"
  parameter L::Length = 0.0
relations
  flange_a.s = s - L / 2
  flange_b.s = s + L / 2
metadata {}
end
````

## Test Cases {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses
