$(instance)PartialCompliant Icon

PartialCompliant

Base model for the compliant connection of two translational 1D shaft flanges where the relative position and relative velocities are used as states

Usage

PartialCompliant()

Connectors

Variables

NameDescriptionUnits
s_relRelative distance between flange_b and flange_am
fForces between the flangesN

Source

# Base model for the compliant connection of two translational 1D shaft flanges
# where the relative position and relative velocities are used as states
partial component PartialCompliant
  flange_a = Flange() [{
    "JuliaSim": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}
  }]
  flange_b = Flange() [{
    "JuliaSim": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}
  }]
  # Relative distance between `flange_b` and `flange_a`
  variable s_rel::Distance
  # Forces between the flanges
  variable f::JSML.Force
relations
  s_rel = flange_b.s-flange_a.s
  flange_b.f = f
  flange_a.f = -f
end
Flattened Source
# Base model for the compliant connection of two translational 1D shaft flanges
# where the relative position and relative velocities are used as states
partial component PartialCompliant
  flange_a = Flange() [{
    "JuliaSim": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}
  }]
  flange_b = Flange() [{
    "JuliaSim": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}
  }]
  # Relative distance between `flange_b` and `flange_a`
  variable s_rel::Distance
  # Forces between the flanges
  variable f::JSML.Force
relations
  s_rel = flange_b.s-flange_a.s
  flange_b.f = f
  flange_a.f = -f
metadata {}
end

Test Cases

  • Examples
  • Experiments
  • Analyses