LIBRARY
Inertia
1D-rotational component with inertia.
This component extends from PartialTwoSplines
Usage
Inertia(J)
Parameters:
| Name | Description | Units | Default value |
|---|---|---|---|
J | Moment of inertia | kg.m2 |
Connectors
Variables
| Name | Description | Units |
|---|---|---|
phi | Absolute rotation angle | rad |
w | Absolute angular velocity | rad/s |
a | Absolute angular acceleration | rad/s2 |
Behavior
Source
dyad
# 1D-rotational component with inertia.
component Inertia
extends PartialTwoSplines
# Moment of inertia
parameter J::MomentOfInertia
# Absolute rotation angle
variable phi::Angle
# Absolute angular velocity
variable w::AngularVelocity
# Absolute angular acceleration
variable a::AngularAcceleration
relations
phi = spline_a.phi
phi = spline_b.phi
D(phi) = w
D(w) = a
J*a = spline_a.tau+spline_b.tau
metadata {"JuliaSim": {"icons": {"default": "jsml://RotationalComponents/Inertia.svg"}}}
endFlattened Source
# 1D-rotational component with inertia.
component Inertia
spline_a = Spline() [{
"JuliaSim": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}
}]
spline_b = Spline() [{
"JuliaSim": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}
}]
# Moment of inertia
parameter J::MomentOfInertia
# Absolute rotation angle
variable phi::Angle
# Absolute angular velocity
variable w::AngularVelocity
# Absolute angular acceleration
variable a::AngularAcceleration
relations
phi = spline_a.phi
phi = spline_b.phi
D(phi) = w
D(w) = a
J*a = spline_a.tau+spline_b.tau
metadata {"JuliaSim": {"icons": {"default": "jsml://RotationalComponents/Inertia.svg"}}}
end
Test Cases
Related
Examples
Experiments
Analyses
Tests