Package ModelicaExtras.​Mechanics.​Translational
Additional components to model 1-dimensional, translational mechanical systems

Information

Standard package icon.

Extends from Modelica.​Icons.​Package (Icon for standard packages).

Package Contents

NameDescription
VariableDamper1D translational damper with variable damping factor
VariableMassSliding mass with variable inertia
VariableSpring1D translational spring with variable stiffness

Model ModelicaExtras.​Mechanics.​Translational.​VariableMass
Sliding mass with variable inertia

Information

Sliding mass with variable inertia, without friction and two rigidly connected flanges.

The sliding mass has the length L, the position coordinate s is in the middle. Sign convention: A positive force at flange flange_a moves the sliding mass in the positive direction. A negative force at flange flange_a moves the sliding mass to the negative direction.

Extends from Modelica.​Mechanics.​Translational.​Interfaces.​PartialRigid (Rigid connection of two translational 1D flanges).

Parameters

TypeNameDefaultDescription
StateSelectstateSelectStateSelect.​defaultPriority to use s and v as states
LengthL0Length of component, from left flange to right flange (= flange_b.s - flange_a.s)

Connectors

TypeNameDescription
input RealInputmVariable mass of the sliding mass
Flange_aflange_aLeft flange of translational component
Flange_bflange_bRight flange of translational component

Model ModelicaExtras.​Mechanics.​Translational.​VariableSpring
1D translational spring with variable stiffness

Information

A linear 1D translational spring. The component can be connected either between two sliding masses, or between a sliding mass and the housing (model Fixed), to describe a coupling of the sliding mass with the housing via a spring.

Extends from Modelica.​Mechanics.​Translational.​Interfaces.​PartialCompliant (Compliant connection of two translational 1D flanges).

Parameters

TypeNameDefaultDescription
Distances_rel00Unstretched spring length

Connectors

TypeNameDescription
input RealInputcVariable spring constant
Flange_aflange_aLeft flange of compliant 1-dim. translational component
Flange_bflange_bRight flange of compliant 1-dim. translational component

Model ModelicaExtras.​Mechanics.​Translational.​VariableDamper
1D translational damper with variable damping factor

Information

Linear, velocity dependent damper element. It can be either connected between a sliding mass and the housing (model Fixed), or between two sliding masses.

Extends from Modelica.​Mechanics.​Translational.​Interfaces.​PartialCompliantWithRelativeStates (Base model for the compliant connection of two translational 1-dim. shaft flanges where the relative position and relative velocities are used as states) and Modelica.​Thermal.​HeatTransfer.​Interfaces.​PartialElementaryConditionalHeatPortWithoutT (Partial model to include a conditional HeatPort in order to dissipate losses, used for textual modeling, i.e., for elementary models).

Parameters

TypeNameDefaultDescription
StateSelectstateSelectStateSelect.​preferPriority to use s_rel and v_rel as states
Distances_nominal1e-4Nominal value of s_rel (used for scaling)
BooleanuseHeatPortfalse=true, if heatPort is enabled

Connectors

TypeNameDescription
input RealInputdVariable damping factor
Flange_aflange_aLeft flange of compliant 1-dim. translational component
Flange_bflange_bRight flange of compliant 1-dim. translational component
HeatPort_aheatPortOptional port to which dissipated losses are transported in form of heat