Skip to content
Translational.Rod.md

Translational.Rod

Rod without inertia This component is translated by DyadAI

This component extends from PartialRigid

Usage

TranslatedComponents.Translational.Rod(L=0)

Parameters:

NameDescriptionUnitsDefault value
LLength of component, from left flange to right flange (= flange_b.s - flange_a.s)m0

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 component (s = flange_a.s + L/2 = flange_b.s - L/2)m

Behavior

flange_a.s(t)=12L+s(t)flange_b.s(t)=12L+s(t)0=flange_b.f(t)+flange_a.f(t)

Source

dyad
# Rod without inertia
# This component is translated by DyadAI
component Rod
  extends PartialRigid
relations
  0 = flange_a.f + flange_b.f
end
Flattened Source
dyad
# Rod without inertia
# This component is translated by DyadAI
component Rod
  flange_a = Flange()
  flange_b = Flange()
  # Length of component, from left flange to right flange (= flange_b.s - flange_a.s)
  parameter L::Dyad.Length = 0
  # Absolute position of center of component (s = flange_a.s + L/2 = flange_b.s - L/2)
  variable s::Dyad.Position
relations
  flange_a.s = s - L / 2
  flange_b.s = s + L / 2
  0 = flange_a.f + flange_b.f
metadata {}
end


Test Cases

No test cases defined.

  • Examples

  • Experiments

  • Analyses