Skip to content
Translational.RelPositionSensor.md

Translational.RelPositionSensor

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

This component extends from PartialRelativeSensor

Usage

TranslatedComponents.Translational.RelPositionSensor()

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)

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

Behavior

0=flange_b.f(t)+flange_a.f(t)s_rel(t)=flange_b.s(t)flange_a.s(t)0=flange_a.f(t)

Source

dyad
# Ideal sensor to measure the relative position between two flanges
# This component is translated by DyadAI
component RelPositionSensor
  extends PartialRelativeSensor
  s_rel = RealOutput()
relations
  s_rel = flange_b.s - flange_a.s
  0 = flange_a.f
end
Flattened Source
dyad
# Ideal sensor to measure the relative position between two flanges
# This component is translated by DyadAI
component RelPositionSensor
  flange_a = Flange()
  flange_b = Flange()
  s_rel = RealOutput()
relations
  0 = flange_a.f + flange_b.f
  s_rel = flange_b.s - flange_a.s
  0 = flange_a.f
metadata {}
end


Test Cases

No test cases defined.

  • Examples

  • Experiments

  • Analyses