WOLFRAM SYSTEM MODELER

Spring

Linear 2D translational spring

Wolfram Language

In[1]:=
SystemModel["PlanarMechanics.Parts.Spring"]
Out[1]:=

Information

A linear translational spring. x- and y direction stiffness can be parameterized.

Parameters (15)

animate

Value: true

Type: Boolean

Description: Enable animation

zPosition

Value: planarWorld.defaultZPosition

Type: Length (m)

Description: Position z of cylinder representing the fixed translation

animateConnectors

Value: true

Type: Boolean

Description: =true, if connectors a and b should be animated as cylinders

diameterConnector_a

Value: planarWorld.defaultJointWidth

Type: Diameter (m)

Description: Diameter of connector at frame_a

diameterConnector_b

Value: planarWorld.defaultJointWidth

Type: Diameter (m)

Description: Diameter of connector at frame_b

stateSelect

Value: StateSelect.default

Type: StateSelect

Description: Priority to use phi and w as states

c_x

Value:

Type: TranslationalSpringConstant (N/m)

Description: Spring constant in x dir

c_y

Value:

Type: TranslationalSpringConstant (N/m)

Description: Spring constant in y dir

c_phi

Value:

Type: RotationalSpringConstant (N⋅m/rad)

Description: Spring constant

s_relx0

Value: 0

Type: Position (m)

Description: Unstretched spring length

s_rely0

Value: 0

Type: Position (m)

Description: Unstretched spring length

phi_rel0

Value: 0

Type: Angle (rad)

Description: Unstretched spring angle

s_small

Value: 1.E-10

Type: Position (m)

Description: Prevent zero-division if distance between frame_a and frame_b is zero

enableAssert

Value: true

Type: Boolean

Description: Cause an assert when the distance between frame_a and frame_b < s_small

numberOfWindings

Value: 5

Type: Integer

Description: Number of spring windings

Inputs (6)

specularCoefficient

Default Value: planarWorld.defaultSpecularCoefficient

Type: SpecularCoefficient

Description: Reflection of ambient light (= 0: light is completely absorbed)

colorConnector_a

Default Value: Types.Defaults.RodColor

Type: Color

Description: Color of connector at frame_a

colorConnector_b

Default Value: Types.Defaults.RodColor

Type: Color

Description: Color of connector at frame_a

width

Default Value: planarWorld.defaultJointWidth

Type: Length (m)

Description: Width of spring

coilWidth

Default Value: width / 10

Type: Length (m)

Description: Width of spring coil

color

Default Value: Types.Defaults.SpringColor

Type: Color

Description: Color of spring

Connectors (2)

frame_a

Type: Frame_a

Description: Coordinate system fixed to the component with one cut-force and cut-torque

frame_b

Type: Frame_b

Description: Coordinate system fixed to the component with one cut-force and cut-torque

Components (4)

planarWorld

Type: PlanarWorld

Description: Planar world model

contactA

Type: Shape

Description: Visualizing an elementary object with variable size; all data have to be set as modifiers (see info layer)

contactB

Type: Shape

Description: Visualizing an elementary object with variable size; all data have to be set as modifiers (see info layer)

shapeCoil

Type: Shape

Description: Visualizing an elementary object with variable size; all data have to be set as modifiers (see info layer)

Used in Examples (1)

SpringDemo

PlanarMechanics.Examples

Spring demo

Revisions

DLR logo Developed 2010 at the DLR Institute of System Dynamics and Control