Skip to content
Translational.PowerSensor.md

Translational.PowerSensor

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

This component extends from PartialRelativeSensor

Usage

TranslatedComponents.Translational.PowerSensor()

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)

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

Behavior

0=flange_b.f(t)+flange_a.f(t)flange_a.s(t)=flange_b.s(t)power(t)=dflange_a.s(t)dtflange_a.f(t)

Source

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


Test Cases

No test cases defined.

  • Examples

  • Experiments

  • Analyses