Skip to content
Translational.RelAccSensor.md

Translational.RelAccSensor

Ideal sensor to measure the relative acceleration between two flanges This component is translated by DyadAI

This component extends from PartialRelativeSensor

Usage

TranslatedComponents.Translational.RelAccSensor()

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)

  • a_rel - This connector represents a real signal as an output from a component (RealOutput)

Variables

NameDescriptionUnits
s_relRelative distance between two flanges (flange_b.s - flange_a.s)m
v_relRelative velocity between two flanges (der(flange_b.s) - der(flange_a.s))m/s

Behavior

0=flange_b.f(t)+flange_a.f(t)s_rel(t)=flange_b.s(t)flange_a.s(t)v_rel(t)=ds_rel(t)dta_rel(t)=dv_rel(t)dt0=flange_a.f(t)

Source

dyad
# Ideal sensor to measure the relative acceleration between two flanges
# This component is translated by DyadAI
component RelAccSensor
  extends PartialRelativeSensor
  a_rel = RealOutput()
  # Relative distance between two flanges (flange_b.s - flange_a.s)
  variable s_rel::Dyad.Position
  # Relative velocity between two flanges (der(flange_b.s) - der(flange_a.s))
  variable v_rel::Dyad.Velocity
relations
  s_rel = flange_b.s - flange_a.s
  v_rel = der(s_rel)
  a_rel = der(v_rel)
  0 = flange_a.f
end
Flattened Source
dyad
# Ideal sensor to measure the relative acceleration between two flanges
# This component is translated by DyadAI
component RelAccSensor
  flange_a = Flange()
  flange_b = Flange()
  a_rel = RealOutput()
  # Relative distance between two flanges (flange_b.s - flange_a.s)
  variable s_rel::Dyad.Position
  # Relative velocity between two flanges (der(flange_b.s) - der(flange_a.s))
  variable v_rel::Dyad.Velocity
relations
  0 = flange_a.f + flange_b.f
  s_rel = flange_b.s - flange_a.s
  v_rel = der(s_rel)
  a_rel = der(v_rel)
  0 = flange_a.f
metadata {}
end


Test Cases

No test cases defined.

  • Examples

  • Experiments

  • Analyses