Rotational.IdealGear
This component extends from PartialElementaryTwoFlangesAndSupport2
Usage
TranslatedComponents.Rotational.IdealGear(ratio=1)
Parameters:
| Name | Description | Units | Default value |
|---|---|---|---|
useSupport | = true, if support flange enabled, otherwise implicitly grounded | – | false |
ratio | Transmission ratio (flange_a.phi/flange_b.phi) | – | 1 |
Connectors
flange_a- This connector represents a rotational spline with angle and torque as the potential and flow variables, respectively. (Spline)flange_b- This connector represents a rotational spline with angle and torque as the potential and flow variables, respectively. (Spline)support- This connector represents a rotational spline with angle and torque as the potential and flow variables, respectively. (Spline)
Variables
| Name | Description | Units |
|---|---|---|
phi_support | Absolute angle of support flange | rad |
phi_a | Angle between left shaft flange and support | rad |
phi_b | Angle between right shaft flange and support | rad |
Behavior
Source
dyad
component IdealGear
extends PartialElementaryTwoFlangesAndSupport2
# Transmission ratio (flange_a.phi/flange_b.phi)
parameter ratio::Real = 1
# Angle between left shaft flange and support
variable phi_a::Dyad.Angle
# Angle between right shaft flange and support
variable phi_b::Dyad.Angle
relations
phi_a = flange_a.phi - phi_support
phi_b = flange_b.phi - phi_support
phi_a = ratio * phi_b
0 = ratio * flange_a.tau + flange_b.tau
endFlattened Source
dyad
component IdealGear
flange_a = Spline()
flange_b = Spline()
support = Spline() if useSupport
# = true, if support flange enabled, otherwise implicitly grounded
structural parameter useSupport::Boolean = false
# Absolute angle of support flange
variable phi_support::Dyad.Angle
# Transmission ratio (flange_a.phi/flange_b.phi)
parameter ratio::Real = 1
# Angle between left shaft flange and support
variable phi_a::Dyad.Angle
# Angle between right shaft flange and support
variable phi_b::Dyad.Angle
relations
if !useSupport
phi_support = 0
else
initial support.phi = phi_support
end
if useSupport
initial support.tau = -flange_a.tau - flange_b.tau
end
phi_a = flange_a.phi - phi_support
phi_b = flange_b.phi - phi_support
phi_a = ratio * phi_b
0 = ratio * flange_a.tau + flange_b.tau
metadata {}
endTest Cases
No test cases defined.
Related
Examples
Experiments
Analyses