SpringDamper

Linear 2D translational spring damper model

    SpringDamper

Library

PlanarMechanics/Parts

Description

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

Parameters

SpringDamper_0

NameLabelDescriptionData TypeValid Values

mo_animate

animate

Enable animation

Scalar

true
false

mo_useHeatPort

useHeatPort

= true, if heatPort is enabled

Number

0
1

mo_T

T

Fixed device temperature if useHeatPort = false

Scalar

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 in phi dir

Scalar

mo_d_x

d_x

Damping constant in x dir

Scalar

mo_d_y

d_y

Damping constant in y dir

Scalar

mo_d_phi

d_phi

Damping constant in phi dir

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_TheatPort

TheatPort

TheatPort

Structure

mo_TheatPort/fixed

fixed

Cell of scalars

true
false

mo_TheatPort/start

start

Cell of scalars

mo_w_rel

w_rel

w_rel

Structure

mo_w_rel/fixed

fixed

Cell of scalars

true
false

mo_w_rel/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

SpringDamper_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

mo_length_a

length_a

Length of cylinder at frame_a side

Scalar

mo_diameter_a

diameter_a

Diameter of cylinder at frame_a side

Scalar

mo_diameter_b

diameter_b

Diameter of cylinder at frame_b side

Scalar

mo_color_a

color_a

Color of cylinder at frame_a side

Vector of size 3

mo_color_b

color_b

Color of cylinder at frame_b side

Vector of size 3

SpringDamper_2

NameLabelDescriptionData TypeValid Values

mo_stateSelect

stateSelect

Priority to use phi, w and a 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

SpringDamper_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

'lossPower'
'v_relx'
'v_rely'
's_relx'
's_rely'
'f_x'
'f_y'
'tau'
'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

Port 3

implicit

Optional port to which dissipated losses are transported in form of heat

input

mo_useHeatPort

See Also