SpringDamper
Linear 1D translational spring and damper in parallel

Library
Mechanics/Translational/Components
Description
A spring and damper element connected in parallel. The component can be connected either between two sliding masses to describe the elasticity and damping, or between a sliding mass and the housing (model Fixed), to describe a coupling of the sliding mass with the housing via a spring/damper.
Parameters

| Name | Label | Description | Data Type | Valid Values | 
|---|---|---|---|---|
| mo_c | c | Spring constant | Scalar | |
| mo_d | d | Damping constant | Scalar | |
| mo_s_rel0 | s_rel0 | Unstretched spring length | Scalar | |
| mo_useHeatPort | useHeatPort | =true, if heatPort is enabled | Number | 0 | 

| Name | Label | Description | Data Type | Valid Values | 
|---|---|---|---|---|
| mo_stateSelect | stateSelect | Priority to use s_rel and v_rel as states | Structure | |
| mo_stateSelect/choice1 | StateSelect.never | Number | 0 | |
| mo_stateSelect/choice2 | StateSelect.avoid | Number | 0 | |
| mo_stateSelect/choice3 | StateSelect.default | Number | 0 | |
| mo_stateSelect/choice4 | StateSelect.prefer | Number | 0 | |
| mo_stateSelect/choice5 | StateSelect.always | Number | 0 | |
| mo_s_nominal | s_nominal | Nominal value of s_rel (used for scaling) | Scalar | 

| Name | Label | Description | Data Type | Valid Values | 
|---|---|---|---|---|
| mo_s_rel | s_rel | s_rel | Structure | |
| mo_s_rel/fixed | fixed | Cell of scalars | true | |
| mo_s_rel/start | start | Cell of scalars | ||
| mo_v_rel | v_rel | v_rel | Structure | |
| mo_v_rel/fixed | fixed | Cell of scalars | true | |
| mo_v_rel/start | start | Cell of scalars | ||
| mo_f | f | f | Structure | |
| mo_f/fixed | fixed | Cell of scalars | true | |
| mo_f/start | start | Cell of scalars | ||
| mo_lossPower | lossPower | lossPower | Structure | |
| mo_lossPower/fixed | fixed | Cell of scalars | true | |
| mo_lossPower/start | start | Cell of scalars | 
Ports
| Name | Type | Description | IO Type | Number | 
|---|---|---|---|---|
| flange_a | implicit | Left flange of compliant 1-dim. translational component | input | 1 | 
| flange_b | implicit | Right flange of compliant 1-dim. translational component | output | 1 | 
| Port 3 | implicit | Optional port to which dissipated losses are transported in form of heat | input | mo_useHeatPort |