PartialElementaryRotationalToTranslational
Base model defining the mechanical interfaces for transforming rotational motion into translational motion.
This partial component establishes the fundamental mechanical ports for components that convert rotational motion to translational motion. It provides a rotational input/output (spline
), a translational input/output (flange
), and corresponding support connectors (support_r
, support_t
). As a partial model, it does not contain any equations defining the motion transformation itself but serves as a structural base to be extended by more specific components. The Spline
connectors represent rotational mechanical interfaces, typically characterized by angle (Flange
connectors represent translational mechanical interfaces, typically characterized by position (
Usage
PartialElementaryRotationalToTranslational()
Connectors
Source
# Base model defining the mechanical interfaces for transforming rotational motion into translational motion.
#
# This partial component establishes the fundamental mechanical ports for components
# that convert rotational motion to translational motion. It provides a rotational
# input/output (`spline`), a translational input/output (`flange`), and corresponding
# support connectors (`support_r`, `support_t`). As a partial model, it does not
# contain any equations defining the motion transformation itself but serves as a
# structural base to be extended by more specific components. The `Spline` connectors
# represent rotational mechanical interfaces, typically characterized by angle
# ($\phi$) and torque ($\tau$), while `Flange` connectors
# represent translational mechanical interfaces, typically characterized by position
# ($s$) and force ($f$).
partial component PartialElementaryRotationalToTranslational
# Primary rotational mechanical interface
spline = Spline() [{"Dyad": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}}]
# Primary translational mechanical interface
flange = Flange() [{"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}]
# Rotational mechanical support interface (e.g., for housing)
support_r = Spline() [{"Dyad": {"placement": {"icon": {"x1": 100, "y1": 950, "x2": 200, "y2": 1050}}}}]
# Translational mechanical support interface (e.g., for housing)
support_t = Flange() [{"Dyad": {"placement": {"icon": {"x1": 800, "y1": 950, "x2": 900, "y2": 1050}}}}]
end
Flattened Source
# Base model defining the mechanical interfaces for transforming rotational motion into translational motion.
#
# This partial component establishes the fundamental mechanical ports for components
# that convert rotational motion to translational motion. It provides a rotational
# input/output (`spline`), a translational input/output (`flange`), and corresponding
# support connectors (`support_r`, `support_t`). As a partial model, it does not
# contain any equations defining the motion transformation itself but serves as a
# structural base to be extended by more specific components. The `Spline` connectors
# represent rotational mechanical interfaces, typically characterized by angle
# ($\phi$) and torque ($\tau$), while `Flange` connectors
# represent translational mechanical interfaces, typically characterized by position
# ($s$) and force ($f$).
partial component PartialElementaryRotationalToTranslational
# Primary rotational mechanical interface
spline = Spline() [{"Dyad": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}}]
# Primary translational mechanical interface
flange = Flange() [{"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}]
# Rotational mechanical support interface (e.g., for housing)
support_r = Spline() [{"Dyad": {"placement": {"icon": {"x1": 100, "y1": 950, "x2": 200, "y2": 1050}}}}]
# Translational mechanical support interface (e.g., for housing)
support_t = Flange() [{"Dyad": {"placement": {"icon": {"x1": 800, "y1": 950, "x2": 900, "y2": 1050}}}}]
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