Skip to content
Translational.RelAccSensor.md

Translational.RelAccSensor ​

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_relm
v_relm/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
component RelAccSensor
  extends PartialRelativeSensor
  a_rel = RealOutput()
  variable s_rel::Dyad.Position
  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
component RelAccSensor
  flange_a = Flange()
  flange_b = Flange()
  a_rel = RealOutput()
  variable s_rel::Dyad.Position
  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