---
url: /dyad/stable/stdlib/MultibodyComponents/tests/PlanarMechanics.CutForceTest.md
description: >-
  Dyad PlanarMechanics.CutForceTest docs.  Test for CutForce sensor: a damped
  pendulum with three CutForce sensors measuring reaction forces at different
  points in the chain, each res...
---

# `PlanarMechanics.CutForceTest` {#PlanarMechanics.CutForceTest}

Test for CutForce sensor: a damped pendulum with three CutForce sensors measuring reaction forces at different points in the chain, each resolved in a different frame.

Topology: World → CutForce(frame_a) → Revolute → CutForce(world) → FixedTranslation → CutForce(frame_b) → Body A rotational damper stabilizes the revolute joint via its flange.

Translated from PlanarMechanicsTest.Sensors.CutForces (line 633).

## Usage {#Usage}

`MultibodyComponents.PlanarMechanics.CutForceTest()`

## Behavior {#Behavior}

## Source {#Source}

```dyad
"""
Test for CutForce sensor: a damped pendulum with three CutForce sensors
measuring reaction forces at different points in the chain, each resolved
in a different frame.

Topology: World → CutForce(frame_a) → Revolute → CutForce(world) → FixedTranslation → CutForce(frame_b) → Body
A rotational damper stabilizes the revolute joint via its flange.

Translated from PlanarMechanicsTest.Sensors.CutForces (line 633).
"""
test component CutForceTest
  world = World() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 20, "y1": 20, "x2": 120, "y2": 120, "rot": 0}
      },
      "tags": []
    }
  }
  revolute = Revolute(phi(initial = 0), w(initial = 0)) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 280, "y1": 20, "x2": 380, "y2": 120, "rot": 0}
      },
      "tags": []
    }
  }
  rod = FixedTranslation(r = [1, 0]) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 521, "y1": 20, "x2": 621, "y2": 120, "rot": 0}
      },
      "tags": []
    }
  }
  body = Body(m = 1, I = 0.1) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 767, "y1": 20, "x2": 867, "y2": 120, "rot": 0}
      },
      "tags": []
    }
  }
  damper = RotationalComponents.Components.Damper(d = 0.1) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 280, "y1": 190, "x2": 380, "y2": 290, "rot": 270}
      },
      "tags": []
    }
  }
  fixed = RotationalComponents.Components.Fixed() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 280, "y1": 340, "x2": 380, "y2": 440, "rot": 0}
      },
      "tags": []
    }
  }
  "CutForce resolved in frame_a (between world and revolute)"
  cut_force_frame_a = CutForce(resolve_in_frame = MultibodyComponents.ResolveInFrame.FrameA()) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 150, "y1": 20, "x2": 250, "y2": 120, "rot": 0}
      },
      "tags": []
    }
  }
  "CutForce resolved in world frame (between revolute and rod)"
  cut_force_world = CutForce(resolve_in_frame = MultibodyComponents.ResolveInFrame.World()) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 395, "y1": 20, "x2": 495, "y2": 120, "rot": 0}
      },
      "tags": []
    }
  }
  "CutForce resolved in frame_b (between rod and body)"
  cut_force_frame_b = CutForce(resolve_in_frame = MultibodyComponents.ResolveInFrame.FrameB()) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 641, "y1": 20, "x2": 741, "y2": 120, "rot": 0}
      },
      "tags": []
    }
  }
relations
  # Main chain: World → CutForce(A) → Revolute → CutForce(W) → Rod → CutForce(B) → Body
  connect(world.frame_b, cut_force_frame_a.frame_a) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
  connect(cut_force_frame_a.frame_b, revolute.frame_a) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
  connect(revolute.frame_b, cut_force_world.frame_a) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
  connect(cut_force_world.frame_b, rod.frame_a) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
  connect(rod.frame_b, cut_force_frame_b.frame_a) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
  connect(cut_force_frame_b.frame_b, body.frame_a) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
  # Rotational damper on revolute flange
  connect(damper.spline_b, revolute.flange_a) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
  connect(damper.spline_a, fixed.spline) {"Dyad": {"renderStyle": "standard", "edges": [{"S": 1, "E": 2, "M": []}]}}
metadata {"Dyad": {"tests": {"case1": {"stop": 3}}}}
end
```

```dyad
"""
Test for CutForce sensor: a damped pendulum with three CutForce sensors
measuring reaction forces at different points in the chain, each resolved
in a different frame.

Topology: World → CutForce(frame_a) → Revolute → CutForce(world) → FixedTranslation → CutForce(frame_b) → Body
A rotational damper stabilizes the revolute joint via its flange.

Translated from PlanarMechanicsTest.Sensors.CutForces (line 633).
"""
test component CutForceTest
  world = World() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 20, "y1": 20, "x2": 120, "y2": 120, "rot": 0}
      },
      "tags": []
    }
  }
  revolute = Revolute(phi(initial = 0), w(initial = 0)) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 280, "y1": 20, "x2": 380, "y2": 120, "rot": 0}
      },
      "tags": []
    }
  }
  rod = FixedTranslation(r = [1, 0]) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 521, "y1": 20, "x2": 621, "y2": 120, "rot": 0}
      },
      "tags": []
    }
  }
  body = Body(m = 1, I = 0.1) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 767, "y1": 20, "x2": 867, "y2": 120, "rot": 0}
      },
      "tags": []
    }
  }
  damper = RotationalComponents.Components.Damper(d = 0.1) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 280, "y1": 190, "x2": 380, "y2": 290, "rot": 270}
      },
      "tags": []
    }
  }
  fixed = RotationalComponents.Components.Fixed() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 280, "y1": 340, "x2": 380, "y2": 440, "rot": 0}
      },
      "tags": []
    }
  }
  "CutForce resolved in frame_a (between world and revolute)"
  cut_force_frame_a = CutForce(resolve_in_frame = MultibodyComponents.ResolveInFrame.FrameA()) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 150, "y1": 20, "x2": 250, "y2": 120, "rot": 0}
      },
      "tags": []
    }
  }
  "CutForce resolved in world frame (between revolute and rod)"
  cut_force_world = CutForce(resolve_in_frame = MultibodyComponents.ResolveInFrame.World()) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 395, "y1": 20, "x2": 495, "y2": 120, "rot": 0}
      },
      "tags": []
    }
  }
  "CutForce resolved in frame_b (between rod and body)"
  cut_force_frame_b = CutForce(resolve_in_frame = MultibodyComponents.ResolveInFrame.FrameB()) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 641, "y1": 20, "x2": 741, "y2": 120, "rot": 0}
      },
      "tags": []
    }
  }
relations
  # Main chain: World → CutForce(A) → Revolute → CutForce(W) → Rod → CutForce(B) → Body
  connect(world.frame_b, cut_force_frame_a.frame_a) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
  connect(cut_force_frame_a.frame_b, revolute.frame_a) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
  connect(revolute.frame_b, cut_force_world.frame_a) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
  connect(cut_force_world.frame_b, rod.frame_a) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
  connect(rod.frame_b, cut_force_frame_b.frame_a) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
  connect(cut_force_frame_b.frame_b, body.frame_a) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
  # Rotational damper on revolute flange
  connect(damper.spline_b, revolute.flange_a) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
  connect(damper.spline_a, fixed.spline) {"Dyad": {"renderStyle": "standard", "edges": [{"S": 1, "E": 2, "M": []}]}}
metadata {"Dyad": {"tests": {"case1": {"stop": 3}}}}
end
```

## Test Cases {#Test-Cases}

### Test Case `case1` {#Test-Case-case1}

## Related {#Related}

* Examples

* Experiments

* Analyses

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

  * [`CutForce`](PlanarMechanics.CutForceTest.md)

  * [`Damper`](PlanarMechanics.CutForceTest.md)

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

  * [`FixedTranslation`](PlanarMechanics.CutForceTest.md)

  * [`Revolute`](PlanarMechanics.CutForceTest.md)

  * [`World`](PlanarMechanics.CutForceTest.md)
