PartialElementaryOneSplineAndSupport
A base model for a mechanical component with a primary rotational spline and an interconnected support spline.
This partial component models the fundamental interaction between a primary rotational shaft spline and a support spline. The support spline's angle is explicitly defined by the variable phi_support
. The key dynamic relationship is that the torque experienced by the support spline is equal in magnitude but opposite in direction to the torque on the primary shaft spline, representing a common mechanical reaction. This model is intended as a foundational element for more complex textual models. The defining equations are:
Usage
PartialElementaryOneSplineAndSupport()
Connectors
Variables
Name | Description | Units |
---|---|---|
phi_support | Absolute angle of the support spline | rad |
Source
# A base model for a mechanical component with a primary rotational spline and an interconnected support spline.
#
# This partial component models the fundamental interaction between a primary rotational shaft spline
# and a support spline. The support spline's angle is explicitly defined by the variable `phi_support`.
# The key dynamic relationship is that the torque experienced by the support spline is equal in
# magnitude but opposite in direction to the torque on the primary shaft spline, representing a common
# mechanical reaction. This model is intended as a foundational element for more complex textual models.
# The defining equations are:
# ```math
# \text{support}.\phi = \phi_{support}
# ```
# ```math
# \text{support}.\tau = -\text{spline}.\tau
# ```
partial component PartialElementaryOneSplineAndSupport
# Primary rotational shaft spline connector
spline = Spline() [{"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}]
# Support spline connector
support = Spline() [{
"Dyad": {
"placement": {"icon": {"iconName": "support", "x1": 450, "y1": 950, "x2": 550, "y2": 1050}}
}
}]
# Absolute angle of the support spline
variable phi_support::Angle
relations
support.phi = phi_support
support.tau = -spline.tau
end
Flattened Source
# A base model for a mechanical component with a primary rotational spline and an interconnected support spline.
#
# This partial component models the fundamental interaction between a primary rotational shaft spline
# and a support spline. The support spline's angle is explicitly defined by the variable `phi_support`.
# The key dynamic relationship is that the torque experienced by the support spline is equal in
# magnitude but opposite in direction to the torque on the primary shaft spline, representing a common
# mechanical reaction. This model is intended as a foundational element for more complex textual models.
# The defining equations are:
# ```math
# \text{support}.\phi = \phi_{support}
# ```
# ```math
# \text{support}.\tau = -\text{spline}.\tau
# ```
partial component PartialElementaryOneSplineAndSupport
# Primary rotational shaft spline connector
spline = Spline() [{"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}]
# Support spline connector
support = Spline() [{
"Dyad": {
"placement": {"icon": {"iconName": "support", "x1": 450, "y1": 950, "x2": 550, "y2": 1050}}
}
}]
# Absolute angle of the support spline
variable phi_support::Angle
relations
support.phi = phi_support
support.tau = -spline.tau
metadata {}
end
Test Cases
This is setup code, that must be run before each test case.
using RotationalComponents
using ModelingToolkit, OrdinaryDiffEqDefault
using Plots
using CSV, DataFrames
snapshotsdir = joinpath(dirname(dirname(pathof(RotationalComponents))), "test", "snapshots")
"/home/actions-runner-10/.julia/packages/RotationalComponents/0VPxm/test/snapshots"
Related
Examples
Experiments
Analyses