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 Content

Name Description
Modelica.Mechanics.Translational.Examples.Utilities.GenerateStribeckFrictionTable GenerateStribeckFrictionTable Generate Stribeck friction table for example Friction for the SupportFriction
Modelica.Mechanics.Translational.Examples.Utilities.DirectMass DirectMass Input/output block of a direct mass model
Modelica.Mechanics.Translational.Examples.Utilities.InverseMass InverseMass Input/output block of an inverse mass model
Modelica.Mechanics.Translational.Examples.Utilities.SpringDamper SpringDamper Input/output block of a spring/damper model
Modelica.Mechanics.Translational.Examples.Utilities.Spring Spring Input/output block of a spring model
Modelica.Mechanics.Translational.Examples.Utilities.SpringDamperNoRelativeStates SpringDamperNoRelativeStates Linear 1D translational spring and damper in parallel (s and v are not used as states)

Modelica.Mechanics.Translational.Examples.Utilities.GenerateStribeckFrictionTable 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

NameDescription
F_propVelocity dependent friction coefficient [N.s/m]
F_CoulombConstant friction: Coulomb force [N]
F_StribeckStribeck effect [N]
fexpExponential decay [s/m]
v_maxGenerate table from v=0 ... v_max
nTableNumber of table points

Outputs

NameDescription
table[nTable, 2]Friction table

Modelica.Mechanics.Translational.Examples.Utilities.DirectMass 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

NameDescription
mMass [kg]

Connectors

NameDescription
fDriveAccelerating force acting at flange (= -flange.f) [N]
sMass moves with position s due to force f [m]
vMass moves with speed v due to force f [m/s]
aMass moves with acceleration a due to force f [m/s2]
fForce to drive the mass [N]

Modelica.Mechanics.Translational.Examples.Utilities.InverseMass 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

NameDescription
mMass [kg]

Connectors

NameDescription
sPosition to drive the mass [m]
vSpeed to drive the mass [m/s]
aAcceleration to drive the mass [m/s2]
fForce needed to drive the flange according to s, v, a [N]

Modelica.Mechanics.Translational.Examples.Utilities.SpringDamper 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

NameDescription
cSpring constant [N/m]
dDamping constant [N.s/m]
s_rel0Unstretched spring length [m]

Connectors

NameDescription
s1Position of left flange of force element [m]
v1Speed to left flange of force element [m/s]
f1Force generated by the force element [N]
s2Position of right flange of force element [m]
v2Speed to right flange of force element [m/s]
f2Force generated by the force element [N]

Modelica.Mechanics.Translational.Examples.Utilities.Spring 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

NameDescription
cSpring constant [N/m]
s_rel0Unstretched spring length [m]

Connectors

NameDescription
s1Position of left flange of force element [m]
f1Force generated by the force element [N]
s2Position of right flange of force element [m]
f2Force generated by the force element [N]

Modelica.Mechanics.Translational.Examples.Utilities.SpringDamperNoRelativeStates 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), 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

NameDescription
cSpring constant [N/m]
dDamping constant [N.s/m]
s_rel0Unstretched spring length [m]
useHeatPort=true, if heatPort is enabled
Initialization
s_relRelative distance (= flange_b.s - flange_a.s) [m]

Connectors

NameDescription
flange_aLeft flange of compliant 1-dim. translational component
flange_bRight flange of compliant 1-dim. translational component
heatPortOptional port to which dissipated losses are transported in form of heat
Automatically generated Thu Dec 19 17:20:09 2019.