Skip to content
PartialTorque.md

PartialTorque

Partial model of torque that accelerates the flange.

This component extends from PartialElementaryOneSplineAndSupport

Usage

PartialTorque()

Connectors

Variables

NameDescriptionUnits
phi_supportAbsolute angle of the support splinerad
phiAngle of spline with respect to support

Source

dyad
# Partial model of torque that accelerates the flange.
partial component PartialTorque
  extends PartialElementaryOneSplineAndSupport
  # Angle of spline with respect to support
  variable phi::Real
relations
  phi = spline.phi-phi_support
end
Flattened Source
dyad
# Partial model of torque that accelerates the flange.
partial component PartialTorque
  # 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
  # Angle of spline with respect to support
  variable phi::Real
relations
  support.phi = phi_support
  support.tau = -spline.tau
  phi = spline.phi-phi_support
metadata {}
end


Test Cases

This is setup code, that must be run before each test case.

julia
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"
  • Examples

  • Experiments

  • Analyses