PrescribeInitialVelocity
IconPrescribeInitialVelocity
Prescribes the initial angular velocity to the associated connector
Usage
PrescribeInitialVelocity(w0)
Parameters:
Name | Description | Units | Default value |
---|---|---|---|
w0 | m/s |
Connectors
spline
- (Spline
)
Variables
Name | Description | Units |
---|---|---|
w | m/s |
Behavior
\[ \begin{align} \frac{\mathrm{d} \mathtt{spline.phi}\left( t \right)}{\mathrm{d}t} &= w\left( t \right) \\ \mathtt{spline.tau}\left( t \right) &= 0 \end{align} \]
Source
# Prescribes the initial angular velocity to the associated connector
component PrescribeInitialVelocity
spline = Spline() [{
"JuliaSim": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}
}]
parameter w0::Velocity
variable w::Velocity
relations
initial w = w0
der(spline.phi) = w
spline.tau = 0
metadata {
"JuliaSim": {
"labels": [{"label": "initial w=$(w0)", "x": 500, "y": 800, "rot": 0}],
"icons": {"default": "jsml://RotationalComponents/Pos-Speed-Acc-Move.svg"}
}
}
end
Flattened Source
# Prescribes the initial angular velocity to the associated connector component PrescribeInitialVelocity spline = Spline() [{ "JuliaSim": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}} }] parameter w0::Velocity variable w::Velocity relations initial w = w0 der(spline.phi) = w spline.tau = 0 metadata { "JuliaSim": { "labels": [{"label": "initial w=$(w0)", "x": 500, "y": 800, "rot": 0}], "icons": {"default": "jsml://RotationalComponents/Pos-Speed-Acc-Move.svg"} } } end
Test Cases
Related
- Examples
- Experiments
- Analyses