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
| Name | Description | Units |
|---|---|---|
s_rel | Relative distance between two flanges (flange_b.s - flange_a.s) | m |
v_rel | Relative velocity between two flanges (der(flange_b.s) - der(flange_a.s)) | m/s |
Behavior
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
endFlattened 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 {}
endTest Cases
No test cases defined.
Related
Examples
Experiments
Analyses