LIBRARY
MultiSensor
Ideal sensor to measure the absolute angular velocity, torque and power between two splines
This component extends from PartialRelativeSensor
Usage
MultiSensor()
Connectors
spline_a- (Spline)spline_b- (Spline)power- This connector represents a real signal as an output from a component (RealOutput)tau- This connector represents a real signal as an output from a component (RealOutput)w- This connector represents a real signal as an output from a component (RealOutput)
Behavior
Source
dyad
# Ideal sensor to measure the absolute angular velocity, torque and power between two splines
component MultiSensor
extends PartialRelativeSensor
# Power in spline `spline_a` as output signal
power = RealOutput() [{
"JuliaSim": {
"placement": {"icon": {"x1": 175, "y1": 950, "x2": 275, "y2": 1050, "rot": 90}}
}
}]
# Torque in spline `spline_`a as output signal
tau = RealOutput() [{
"JuliaSim": {
"placement": {"icon": {"x1": 450, "y1": 950, "x2": 550, "y2": 1050, "rot": 90}}
}
}]
# Absolute angular velocity of spline `spline_a` as output signal
w = RealOutput() [{
"JuliaSim": {
"placement": {"icon": {"x1": 725, "y1": 950, "x2": 825, "y2": 1050, "rot": 90}}
}
}]
relations
spline_a.phi = spline_b.phi
w = der(spline_a.phi)
tau = spline_a.tau
power = tau*w
endFlattened Source
# Ideal sensor to measure the absolute angular velocity, torque and power between two splines
component MultiSensor
# Left spline of shaft
spline_a = Spline() [{
"JuliaSim": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}
}]
# Right spline of shaft
spline_b = Spline() [{
"JuliaSim": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}
}]
# Power in spline `spline_a` as output signal
power = RealOutput() [{
"JuliaSim": {
"placement": {"icon": {"x1": 175, "y1": 950, "x2": 275, "y2": 1050, "rot": 90}}
}
}]
# Torque in spline `spline_`a as output signal
tau = RealOutput() [{
"JuliaSim": {
"placement": {"icon": {"x1": 450, "y1": 950, "x2": 550, "y2": 1050, "rot": 90}}
}
}]
# Absolute angular velocity of spline `spline_a` as output signal
w = RealOutput() [{
"JuliaSim": {
"placement": {"icon": {"x1": 725, "y1": 950, "x2": 825, "y2": 1050, "rot": 90}}
}
}]
relations
0 = spline_a.tau+spline_b.tau
spline_a.phi = spline_b.phi
w = der(spline_a.phi)
tau = spline_a.tau
power = tau*w
metadata {}
end
Test Cases
Related
Examples
Experiments
Analyses