AccelerationSource
IconAccelerationSource
Forced movement of a spline according to an acceleration signal
This component extends from PartialElementaryOneSplineAndSupport
Usage
AccelerationSource()
Connectors
spline
- (Spline
)support
- (Spline
)a_ref
- This connector represents a real signal as an input to a component (RealInput
)
Variables
Name | Description | Units |
---|---|---|
phi_support | Absolute angle of support spline | rad |
phi | Rotation angle of spline with respect to support | rad |
w | Angular velocity of spline with respect to support | rad/s |
a | Angular acceleration of spline with respect to support | rad/s2 |
Behavior
\[ \begin{align} \mathtt{support.phi}\left( t \right) &= \mathtt{phi\_support}\left( t \right) \\ \mathtt{support.tau}\left( t \right) &= - \mathtt{spline.tau}\left( t \right) \\ \mathtt{phi}\left( t \right) &= \mathtt{spline.phi}\left( t \right) - \mathtt{phi\_support}\left( t \right) \\ w\left( t \right) &= \frac{\mathrm{d} \mathtt{phi}\left( t \right)}{\mathrm{d}t} \\ a\left( t \right) &= \frac{\mathrm{d} w\left( t \right)}{\mathrm{d}t} \\ a\left( t \right) &= \mathtt{a\_ref}\left( t \right) \end{align} \]
Source
# Forced movement of a spline according to an acceleration signal
component AccelerationSource
extends PartialElementaryOneSplineAndSupport
# Absolute angular acceleration of spline with respect to support as input signal
a_ref = RealInput() [{
"JuliaSim": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}
}]
# Rotation angle of spline with respect to support
variable phi::Angle
# Angular velocity of spline with respect to support
variable w::AngularVelocity
# Angular acceleration of spline with respect to support
variable a::AngularAcceleration
relations
phi = spline.phi-phi_support
w = der(phi)
a = der(w)
a = a_ref
metadata {
"JuliaSim": {"icons": {"default": "jsml://RotationalComponents/Pos-Speed-Acc-Move.svg"}}
}
end
Flattened Source
# Forced movement of a spline according to an acceleration signal component AccelerationSource spline = Spline() [{ "JuliaSim": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}} }] support = Spline() [{ "JuliaSim": { "placement": {"icon": {"iconName": "support", "x1": 450, "y1": 950, "x2": 550, "y2": 1050}} } }] # Absolute angle of support spline variable phi_support::Angle # Absolute angular acceleration of spline with respect to support as input signal a_ref = RealInput() [{ "JuliaSim": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}} }] # Rotation angle of spline with respect to support variable phi::Angle # Angular velocity of spline with respect to support variable w::AngularVelocity # Angular acceleration of spline with respect to support variable a::AngularAcceleration relations support.phi = phi_support support.tau = -spline.tau phi = spline.phi-phi_support w = der(phi) a = der(w) a = a_ref metadata { "JuliaSim": {"icons": {"default": "jsml://RotationalComponents/Pos-Speed-Acc-Move.svg"}} } end
Test Cases
Related
- Examples
- Experiments
- Analyses