Package Modelica.​Mechanics.​Translational.​Examples.​Utilities
Utility classes used by translational example models

Information

This package contains utility models and functions used by some of the example models from the translational mechanics package.

Extends from Modelica.​Icons.​UtilitiesPackage (Icon for utility packages).

Package Contents

NameDescription
DirectMassInput/output block of a direct mass model
GenerateStribeckFrictionTableGenerate Stribeck friction table for example Friction for the SupportFriction
InverseMassInput/output block of an inverse mass model
SpringInput/output block of a spring model
SpringDamperInput/output block of a spring/damper model
SpringDamperNoRelativeStatesLinear 1D translational spring and damper in parallel (s and v are not used as states)

Function Modelica.​Mechanics.​Translational.​Examples.​Utilities.​GenerateStribeckFrictionTable
Generate Stribeck friction table for example Friction for the SupportFriction

Information

Returns a table with the friction characteristic table[nTable,2] = [0, f1; ....; v_max, fn], where the first column is the velocity v in the range 0..v_max and the second column is the friction force according to the Stribeck curve:

  F_Coulomb + F_prop*v + F_Stribeck*exp(-fexp*v);

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
RealF_propVelocity dependent friction coefficient
ForceF_CoulombConstant friction: Coulomb force
ForceF_StribeckStribeck effect
RealfexpExponential decay
Realv_maxGenerate table from v=0 ... v_max
IntegernTableNumber of table points

Outputs

TypeNameDescription
Realtable[nTable,2]Friction table

Model Modelica.​Mechanics.​Translational.​Examples.​Utilities.​DirectMass
Input/output block of a direct mass model

Information

A translational component with pure signal interface which can be applied for a FMU (Functional Mock-up Unit) exchange. The input force fDrive is applied on one side of a sliding mass whereby the input force f is applied on the other side of it.

See also

InverseMass.

Extends from Modelica.​Blocks.​Icons.​Block (Basic graphical layout of input/output block).

Parameters

TypeNameDefaultDescription
Massm1Mass

Connectors

TypeNameDescription
input RealInputfDriveAccelerating force acting at flange (= -flange.f)
output RealOutputsMass moves with position s due to force f
output RealOutputvMass moves with speed v due to force f
output RealOutputaMass moves with acceleration a due to force f
input RealInputfForce to drive the mass

Model Modelica.​Mechanics.​Translational.​Examples.​Utilities.​InverseMass
Input/output block of an inverse mass model

Information

A translational component with pure signal interface which can be applied for a FMU (Functional Mock-up Unit) exchange. Based on the kinematic inputs applied on a sliding mass the output force f is returned.

See also

DirectMass.

Extends from Modelica.​Blocks.​Icons.​Block (Basic graphical layout of input/output block).

Parameters

TypeNameDefaultDescription
Massm1Mass

Connectors

TypeNameDescription
input RealInputsPosition to drive the mass
input RealInputvSpeed to drive the mass
input RealInputaAcceleration to drive the mass
output RealOutputfForce needed to drive the flange according to s, v, a

Model Modelica.​Mechanics.​Translational.​Examples.​Utilities.​SpringDamper
Input/output block of a spring/damper model

Information

A linear 1D translational spring and damper in parallel with pure signal interface which can be applied for a FMU (Functional Mock-up Unit) exchange.

Extends from Modelica.​Blocks.​Icons.​Block (Basic graphical layout of input/output block).

Parameters

TypeNameDefaultDescription
TranslationalSpringConstantc10000Spring constant
TranslationalDampingConstantd1Damping constant
Lengths_rel00Unstretched spring length

Connectors

TypeNameDescription
input RealInputs1Position of left flange of force element
input RealInputv1Speed to left flange of force element
output RealOutputf1Force generated by the force element
input RealInputs2Position of right flange of force element
input RealInputv2Speed to right flange of force element
output RealOutputf2Force generated by the force element

Model Modelica.​Mechanics.​Translational.​Examples.​Utilities.​Spring
Input/output block of a spring model

Information

A linear 1D translational spring with pure signal interface which can be applied for a FMU (Functional Mock-up Unit) exchange.

Extends from Modelica.​Blocks.​Icons.​Block (Basic graphical layout of input/output block).

Parameters

TypeNameDefaultDescription
TranslationalSpringConstantc10000Spring constant
Lengths_rel00Unstretched spring length

Connectors

TypeNameDescription
input RealInputs1Position of left flange of force element
output RealOutputf1Force generated by the force element
input RealInputs2Position of right flange of force element
output RealOutputf2Force generated by the force element

Model Modelica.​Mechanics.​Translational.​Examples.​Utilities.​SpringDamperNoRelativeStates
Linear 1D translational spring and damper in parallel (s and v are not used as states)

Information

A spring and damper element connected in parallel. The component can be connected either between two masses to describe the joint elasticity and damping, or between a mass and the housing (component Fixed), to describe a coupling of the element with the housing via a spring/damper.

This is the same element as Translational.Components.SpringDamper but with the only difference, that the relative quantities are not used as states. If the relative states are potentially used as states, "a_rel = der(v_rel)" is present, and then exporting this model as FMU requires to also have the accelerations in the flanges as inputs, which is usually not desired for a force element.

Extends from Modelica.​Mechanics.​Translational.​Interfaces.​PartialCompliant (Compliant connection of two translational 1D flanges) 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
TranslationalSpringConstantc Spring constant
TranslationalDampingConstantd Damping constant
Lengths_rel00Unstretched spring length
BooleanuseHeatPortfalse=true, if heatPort is enabled

Connectors

TypeNameDescription
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