Skip to content
LIBRARY
Components.Rod.md

Components.Rod

Rod without inertia.

A translational rod without inertia and two rigidly connected flanges. The rod transmits force without any mass effect:

0=flange_a.f+flange_b.f

The rod length L (inherited from PartialRigid) sets the fixed distance between flanges:

flange_b.sflange_a.s=L

This component extends from TranslationalComponents.Interfaces.PartialRigid

Usage

TranslationalComponents.Components.Rod(L=0.0)

Parameters:

NameDescriptionUnitsDefault value
LLength of component, from left flange to right flangem0.0

Connectors

  • flange_a - This connector represents a mechanical flange with position and force as the potential and flow variables, respectively. (Flange)

  • flange_b - This connector represents a mechanical flange with position and force as the potential and flow variables, respectively. (Flange)

Variables

NameDescriptionUnits
sAbsolute position of center of componentm

Behavior

julia
using TranslationalComponents #hide
using ModelingToolkit #hide
@variables L #hide
@named sys = TranslationalComponents.Components.Rod(L=L) #hide
full_equations(sys) #hide
<< @example-block not executed in draft mode >>

Source

dyad
"""
Rod without inertia.

A translational rod **without inertia** and two rigidly connected flanges.
The rod transmits force without any mass effect:
```math
0 = flange\_a.f + flange\_b.f
```
The rod length `L` (inherited from `PartialRigid`) sets the fixed distance between flanges:
```math
flange\_b.s - flange\_a.s = L
```
"""
component Rod
  extends TranslationalComponents.Interfaces.PartialRigid
relations
  0 = flange_a.f + flange_b.f
metadata {"Dyad": {"icons": {"default": "dyad://TranslationalComponents/Rod.svg"}}}
end
Flattened Source
dyad
"""
Rod without inertia.

A translational rod **without inertia** and two rigidly connected flanges.
The rod transmits force without any mass effect:
```math
0 = flange\_a.f + flange\_b.f
```
The rod length `L` (inherited from `PartialRigid`) sets the fixed distance between flanges:
```math
flange\_b.s - flange\_a.s = L
```
"""
component Rod
  "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
  0 = flange_a.f + flange_b.f
metadata {"Dyad": {"icons": {"default": "dyad://TranslationalComponents/Rod.svg"}}}
end


Test Cases

No test cases defined.