Spring

Linear 2D translational spring

    Spring

Library

PlanarMechanics/Parts

Description

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

Parameters

Spring_0

NameLabelDescriptionData TypeValid Values

mo_animate

animate

Enable animation

Scalar

true
false

mo_c_x

c_x

Spring constant in x dir

Scalar

mo_c_y

c_y

Spring constant in y dir

Scalar

mo_c_phi

c_phi

Spring constant

Scalar

mo_s_relx0

s_relx0

Unstretched spring length

Scalar

mo_s_rely0

s_rely0

Unstretched spring length

Scalar

mo_phi_rel0

phi_rel0

Unstretched spring angle

Scalar

mo_s_relx

s_relx

s_relx

Structure

mo_s_relx/fixed

fixed

Cell of scalars

true
false

mo_s_relx/start

start

Cell of scalars

mo_s_rely

s_rely

s_rely

Structure

mo_s_rely/fixed

fixed

Cell of scalars

true
false

mo_s_rely/start

start

Cell of scalars

mo_phi_rel

phi_rel

phi_rel

Structure

mo_phi_rel/fixed

fixed

Cell of scalars

true
false

mo_phi_rel/start

start

Cell of scalars

Spring_1

NameLabelDescriptionData TypeValid Values

mo_zPosition

zPosition

Position z of cylinder representing the fixed translation

Scalar

mo_specularCoefficient

specularCoefficient

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

Scalar

mo_animateConnectors

animateConnectors

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

Scalar

true
false

mo_diameterConnector_a

diameterConnector_a

Diameter of connector at frame_a

Scalar

mo_diameterConnector_b

diameterConnector_b

Diameter of connector at frame_b

Scalar

mo_colorConnector_a

colorConnector_a

Color of connector at frame_a

Vector of size 3

mo_colorConnector_b

colorConnector_b

Color of connector at frame_a

Vector of size 3

mo_numberOfWindings

numberOfWindings

Number of spring windings

Scalar

mo_width

width

Width of spring

Scalar

mo_coilWidth

coilWidth

Width of spring coil

Scalar

mo_color

color

Color of spring

Vector of size 3

Spring_2

NameLabelDescriptionData TypeValid Values

mo_stateSelect

stateSelect

Priority to use phi and w as states

Structure

mo_stateSelect/choice1

StateSelect.never

Number

0
1

mo_stateSelect/choice2

StateSelect.avoid

Number

0
1

mo_stateSelect/choice3

StateSelect.default

Number

0
1

mo_stateSelect/choice4

StateSelect.prefer

Number

0
1

mo_stateSelect/choice5

StateSelect.always

Number

0
1

mo_s_small

s_small

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

Scalar

mo_enableAssert

enableAssert

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

Scalar

true
false

Spring_3

NameLabelDescriptionData TypeValid Values

mo__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

'f_x'
'f_y'
'length'
'r_rel_0'
'e_rel_0'

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

frame_a

implicit

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

input

1

frame_b

implicit

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

input

2

See Also