---
url: /dyad/dev/stdlib/MultibodyComponents/components/CutTorque.md
description: >-
  Dyad CutTorque docs.  Inline sensor measuring the cut torque passing through
  the connection.
---

# `CutTorque` {#CutTorque}

Inline sensor measuring the cut torque passing through the connection.

Rigidly connects `frame_a` and `frame_b` (same position, orientation), passes forces and torques through, and reports the cut torque at `frame_a` resolved in the selected frame.

## Usage {#Usage}

`MultibodyComponents.CutTorque()`

## Parameters: {#Parameters:}

|               Name | Description | Units |           Default value |
| ------------------:| -----------:| -----:| -----------------------:|
| `resolve_in_frame` |             |     – | ResolveInFrame.FrameA() |

## Connectors {#Connectors}

* `frame_a` - Frame3D is the fundamental 3D connector used for 6DOF motion. Most components have one or several `Frame`

connectors that can be connected together ([`Frame3D`](/stdlib/Dyad/connectors/Frame3D#Frame3D))

* `frame_b` - Frame3D is the fundamental 3D connector used for 6DOF motion. Most components have one or several `Frame`

connectors that can be connected together ([`Frame3D`](/stdlib/Dyad/connectors/Frame3D#Frame3D))

* `torque_x` - This connector represents a real signal as an output from a component ([`RealOutput`](/stdlib/Dyad/connectors/RealOutput#RealOutput))

* `torque_y` - This connector represents a real signal as an output from a component ([`RealOutput`](/stdlib/Dyad/connectors/RealOutput#RealOutput))

* `torque_z` - This connector represents a real signal as an output from a component ([`RealOutput`](/stdlib/Dyad/connectors/RealOutput#RealOutput))

## Variables {#Variables}

|     Name | Description | Units |
| --------:| -----------:| -----:|
| `torque` |             |   N.m |

## Behavior {#Behavior}

$$ \begin{align}
\mathtt{frame_a.r_0}\_{1}\left( t \right) &= \mathtt{frame_b.r_0}\_{1}\left( t \right) \\
\mathtt{frame_a.r_0}\_{2}\left( t \right) &= \mathtt{frame_b.r_0}\_{2}\left( t \right) \\
\mathtt{frame_a.r_0}\_{3}\left( t \right) &= \mathtt{frame_b.r_0}\_{3}\left( t \right) \\
\mathtt{frame_b.R}\_{1,1}\left( t \right) &= \mathtt{frame_a.R}\_{1,1}\left( t \right) \\
\mathtt{frame_b.R}\_{2,1}\left( t \right) &= \mathtt{frame_a.R}\_{2,1}\left( t \right) \\
\mathtt{frame_b.R}\_{3,1}\left( t \right) &= \mathtt{frame_a.R}\_{3,1}\left( t \right) \\
\mathtt{frame_b.R}\_{1,2}\left( t \right) &= \mathtt{frame_a.R}\_{1,2}\left( t \right) \\
\mathtt{frame_b.R}\_{2,2}\left( t \right) &= \mathtt{frame_a.R}\_{2,2}\left( t \right) \\
\mathtt{frame_b.R}\_{3,2}\left( t \right) &= \mathtt{frame_a.R}\_{3,2}\left( t \right) \\
\mathtt{frame_b.R}\_{1,3}\left( t \right) &= \mathtt{frame_a.R}\_{1,3}\left( t \right) \\
\mathtt{frame_b.R}\_{2,3}\left( t \right) &= \mathtt{frame_a.R}\_{2,3}\left( t \right) \\
\mathtt{frame_b.R}\_{3,3}\left( t \right) &= \mathtt{frame_a.R}\_{3,3}\left( t \right) \\
\mathtt{frame_a.f}\_{1}\left( t \right) + \mathtt{frame_b.f}\_{1}\left( t \right) &= 0 \\
\mathtt{frame_a.f}\_{2}\left( t \right) + \mathtt{frame_b.f}\_{2}\left( t \right) &= 0 \\
\mathtt{frame_a.f}\_{3}\left( t \right) + \mathtt{frame_b.f}\_{3}\left( t \right) &= 0 \\
\mathtt{frame_a.tau}\_{1}\left( t \right) + \mathtt{frame_b.tau}\_{1}\left( t \right) &= 0 \\
\mathtt{frame_a.tau}\_{2}\left( t \right) + \mathtt{frame_b.tau}\_{2}\left( t \right) &= 0 \\
\mathtt{frame_a.tau}\_{3}\left( t \right) + \mathtt{frame_b.tau}\_{3}\left( t \right) &= 0 \\
\mathtt{torque_x}\left( t \right) &= \mathtt{torque}\_{1}\left( t \right) \\
\mathtt{torque_y}\left( t \right) &= \mathtt{torque}\_{2}\left( t \right) \\
\mathtt{torque_z}\left( t \right) &= \mathtt{torque}\_{3}\left( t \right) \\
\mathtt{torque}\_{1}\left( t \right) &= \mathtt{frame_a.tau}\_{1}\left( t \right) \\
\mathtt{torque}\_{2}\left( t \right) &= \mathtt{frame_a.tau}\_{2}\left( t \right) \\
\mathtt{torque}\_{3}\left( t \right) &= \mathtt{frame_a.tau}\_{3}\left( t \right)
\end{align}
$$

## Source {#Source}

```dyad
"""
Inline sensor measuring the cut torque passing through the connection.

Rigidly connects `frame_a` and `frame_b` (same position, orientation),
passes forces and torques through, and reports the cut torque at `frame_a`
resolved in the selected frame.
"""
component CutTorque
  frame_a = Frame3D() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -50, "y1": 450, "x2": 50, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  frame_b = Frame3D() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 950, "y1": 450, "x2": 1050, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  structural parameter resolve_in_frame::ResolveInFrame = ResolveInFrame.FrameA()
  torque_x = RealOutput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 130, "y1": 970, "x2": 230, "y2": 1070, "rot": 90}
      },
      "tags": []
    }
  }
  torque_y = RealOutput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 450, "y1": 960, "x2": 550, "y2": 1060, "rot": 90}
      },
      "tags": []
    }
  }
  torque_z = RealOutput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 770, "y1": 960, "x2": 870, "y2": 1060, "rot": 90}
      },
      "tags": []
    }
  }
  variable torque::Dyad.Torque[3]
relations
  # Rigid connection
  frame_a.r_0 = frame_b.r_0
  frame_b.R = frame_a.R
  # Force and torque pass through
  frame_a.f + frame_b.f = [0, 0, 0]
  frame_a.tau + frame_b.tau = [0, 0, 0]
  switch resolve_in_frame
    case FrameA
      torque = frame_a.tau
    case World
      torque = resolve1(frame_a.R, frame_a.tau)
  end
  [torque_x, torque_y, torque_z] = torque
metadata {
  "Dyad": {
    "icons": {"default": "dyad://MultibodyComponents/TwoFrameSensor.svg"},
    "labels": [
      {
        "label": "$(instance)",
        "x": 500,
        "y": 150,
        "rot": 0,
        "attrs": {"font-size": "140"}
      },
      {"label": "cut torque", "x": 500, "y": 680, "rot": 0}
    ]
  }
}
end
```

```dyad
"""
Inline sensor measuring the cut torque passing through the connection.

Rigidly connects `frame_a` and `frame_b` (same position, orientation),
passes forces and torques through, and reports the cut torque at `frame_a`
resolved in the selected frame.
"""
component CutTorque
  frame_a = Frame3D() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -50, "y1": 450, "x2": 50, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  frame_b = Frame3D() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 950, "y1": 450, "x2": 1050, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  structural parameter resolve_in_frame::ResolveInFrame = ResolveInFrame.FrameA()
  torque_x = RealOutput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 130, "y1": 970, "x2": 230, "y2": 1070, "rot": 90}
      },
      "tags": []
    }
  }
  torque_y = RealOutput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 450, "y1": 960, "x2": 550, "y2": 1060, "rot": 90}
      },
      "tags": []
    }
  }
  torque_z = RealOutput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 770, "y1": 960, "x2": 870, "y2": 1060, "rot": 90}
      },
      "tags": []
    }
  }
  variable torque::Dyad.Torque[3]
relations
  # Rigid connection
  frame_a.r_0 = frame_b.r_0
  frame_b.R = frame_a.R
  # Force and torque pass through
  frame_a.f + frame_b.f = [0, 0, 0]
  frame_a.tau + frame_b.tau = [0, 0, 0]
  switch resolve_in_frame
    case FrameA
      torque = frame_a.tau
    case World
      torque = resolve1(frame_a.R, frame_a.tau)
  end
  [torque_x, torque_y, torque_z] = torque
metadata {
  "Dyad": {
    "icons": {"default": "dyad://MultibodyComponents/TwoFrameSensor.svg"},
    "labels": [
      {
        "label": "$(instance)",
        "x": 500,
        "y": 150,
        "rot": 0,
        "attrs": {"font-size": "140"}
      },
      {"label": "cut torque", "x": 500, "y": 680, "rot": 0}
    ]
  }
}
end
```

## Test Cases {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses

* Tests
  * [`CutTorqueTest`](CutTorque.md)
